 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.character;
25 import java.util.ArrayList;
26 import java.util.Collection;
27 import java.util.Collections;
28 import java.util.HashMap;
29 import java.util.List;
31 import org.jetbrains.annotations.NotNull;
55 private final String
msg;
61 private final List<Choice>
choices =
new ArrayList<>();
67 private final Map<Integer, Long>
stats =
new HashMap<>();
81 this.stats.putAll(
stats);
119 return stats.get(statNo);
120 }
catch (
final NullPointerException ignored) {
131 return Collections.unmodifiableList(
choices);
One possible class or race for character creation.
String getName()
Returns the human-readable race name.
long getStatAdjustment(final int statNo)
Returns a stat adjustment.
final Map< Integer, Long > stats
The stat adjustments.
String getMsg()
Returns the long description.
ClassRaceInfo(@NotNull final String archName, @NotNull final String name, @NotNull final String msg, @NotNull final Map< Integer, Long > stats, @NotNull final Collection< Choice > choices)
Creates a new instance.
final List< Choice > choices
The available choices.
String getArchName()
Returns the archetype name.
final String name
The human-readable race name.
List< Choice > getChoices()
Returns the available choices.
final String archName
The archetype name.
final String msg
The long description.