public class ClassRaceInfoBuilder
extends java.lang.Object
ClassRaceInfo
instances while parsing an "replyinfo
race_info" packet.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
archName
The name of the race being parsed.
|
private java.util.List<Choice> |
choices
The available choices.
|
private java.lang.String |
msg
The long description.
|
private java.lang.String |
name
The human readable race name.
|
private java.util.Map<java.lang.Integer,java.lang.Long> |
stats
The stat adjustments.
|
Constructor and Description |
---|
ClassRaceInfoBuilder(java.lang.String archName)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addChoice(Choice choice)
Adds a choice.
|
ClassRaceInfo |
finish()
Finishes parsing an entry an returns the
ClassRaceInfo for the
entry. |
void |
setMsg(java.lang.String msg)
Sets the long description.
|
void |
setName(java.lang.String name)
Sets the human readable stat name.
|
void |
setStatAdjustment(int statNo,
long adjustment)
Sets a stat adjustment.
|
@NotNull private final java.lang.String archName
@NotNull private final java.util.List<Choice> choices
@NotNull private java.lang.String msg
@NotNull private java.lang.String name
@NotNull private final java.util.Map<java.lang.Integer,java.lang.Long> stats
public ClassRaceInfoBuilder(@NotNull java.lang.String archName)
archName
- the archetype name of the race being parsedpublic void addChoice(@NotNull Choice choice)
choice
- the choice@NotNull public ClassRaceInfo finish()
ClassRaceInfo
for the
entry.public void setMsg(@NotNull java.lang.String msg)
msg
- the long descriptionpublic void setName(@NotNull java.lang.String name)
name
- the stat namepublic void setStatAdjustment(int statNo, long adjustment)
statNo
- the stat numberadjustment
- the adjustment