 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.server.crossfire;
27 import java.util.ArrayList;
28 import java.util.HashMap;
29 import java.util.List;
31 import org.jetbrains.annotations.NotNull;
56 private String
msg =
"";
62 private final Map<Integer, Long>
stats =
new HashMap<>();
68 private final List<Choice>
choices =
new ArrayList<>();
110 stats.put(statNo, adjustment);
void setMsg(@NotNull final String msg)
Sets the long description.
ClassRaceInfo finish()
Finishes parsing an entry a returns the ClassRaceInfo for the entry.
One possible class or race for character creation.
final String archName
The name of the race being parsed.
String name
The human-readable race name.
void setName(@NotNull final String name)
Sets the human-readable stat name.
A choice for character creation.
ClassRaceInfoBuilder(@NotNull final String archName)
Creates a new instance.
void addChoice(@NotNull final Choice choice)
Adds a choice.
Builder for ClassRaceInfo instances while parsing a "replyinfo race_info" packet.
final List< Choice > choices
The available choices.
String msg
The long description.
final Map< Integer, Long > stats
The stat adjustments.
void setStatAdjustment(final int statNo, final long adjustment)
Sets a stat adjustment.