public class ClassRaceInfoBuilder
extends java.lang.Object
ClassRaceInfo
instances while parsing an "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 com.realtime.crossfire.jxclient.character.Choice choice)
Adds a choice.
|
@NotNull com.realtime.crossfire.jxclient.character.ClassRaceInfo |
finish()
Finishes parsing an entry an 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 com.realtime.crossfire.jxclient.character.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 com.realtime.crossfire.jxclient.character.Choice choice)
choice
- the choice