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