public class NewCharacterInformation
extends java.lang.Object
Constructor and Description |
---|
NewCharacterInformation() |
Modifier and Type | Method and Description |
---|---|
void |
addClassInfo(@NotNull ClassRaceInfo classInfo)
Sets or updates a
class info . |
void |
addNewCharacterInformationListener(@NotNull NewCharacterInformationListener newCharacterInformationListener)
Registers a
NewCharacterInformationListener to be notified of
changes. |
void |
addRaceInfo(@NotNull ClassRaceInfo classRaceInfo)
Sets or updates a
ClassRaceInfo . |
@NotNull java.util.List<java.lang.String> |
getClassesList()
Returns all defined classes available for character creation.
|
@Nullable ClassRaceInfo |
getClassInfo(@NotNull java.lang.String className)
Returns a
class info by class name. |
@NotNull NewCharInfo |
getNewCharInfo()
Returns the
NewCharInfo instance for character creation. |
@Nullable ClassRaceInfo |
getRaceInfo(@NotNull java.lang.String race)
Returns a
ClassRaceInfo by race name. |
@NotNull java.util.List<java.lang.String> |
getRaceList()
Returns all defined races available for character creation.
|
@Nullable StartingMap |
getStartingMapInfo(@NotNull java.lang.String name)
Returns a
StartingMap by map name. |
@NotNull java.util.List<java.lang.String> |
getStartingMapList()
Returns all defined starting maps for character creation.
|
void |
removeNewCharacterInformationListener(@NotNull NewCharacterInformationListener newCharacterInformationListener)
Unregisters a
NewCharacterInformationListener not to be notified
of changes. |
void |
setClassList(@NotNull java.lang.String[] classList)
Sets the classes available for character creation.
|
void |
setNewCharInfo(@NotNull NewCharInfo newCharInfo)
Sets the
NewCharInfo instance for character creation. |
void |
setRaceList(@NotNull java.lang.String[] raceList)
Sets the races available for character creation.
|
void |
setStartingMapList(@NotNull java.lang.Iterable<StartingMap> startingMaps)
Sets the
StartingMap entries available for character creation. |
public void addNewCharacterInformationListener(@NotNull @NotNull NewCharacterInformationListener newCharacterInformationListener)
NewCharacterInformationListener
to be notified of
changes.newCharacterInformationListener
- the listener to registerpublic void removeNewCharacterInformationListener(@NotNull @NotNull NewCharacterInformationListener newCharacterInformationListener)
NewCharacterInformationListener
not to be notified
of changes.newCharacterInformationListener
- the listener to unregisterpublic void setStartingMapList(@NotNull @NotNull java.lang.Iterable<StartingMap> startingMaps)
StartingMap
entries available for character creation.startingMaps
- the starting map entries@NotNull public @NotNull java.util.List<java.lang.String> getStartingMapList()
@Nullable public @Nullable StartingMap getStartingMapInfo(@NotNull @NotNull java.lang.String name)
StartingMap
by map name.name
- the map namenull
if no starting map info is
definedpublic void setRaceList(@NotNull @NotNull java.lang.String[] raceList)
raceList
- the races@NotNull public @NotNull java.util.List<java.lang.String> getRaceList()
public void addRaceInfo(@NotNull @NotNull ClassRaceInfo classRaceInfo)
ClassRaceInfo
.classRaceInfo
- the race info to set@Nullable public @Nullable ClassRaceInfo getRaceInfo(@NotNull @NotNull java.lang.String race)
ClassRaceInfo
by race name.race
- the race namenull
if no race info is definedpublic void setClassList(@NotNull @NotNull java.lang.String[] classList)
classList
- the classes@NotNull public @NotNull java.util.List<java.lang.String> getClassesList()
public void addClassInfo(@NotNull @NotNull ClassRaceInfo classInfo)
class info
.classInfo
- the class info to set@Nullable public @Nullable ClassRaceInfo getClassInfo(@NotNull @NotNull java.lang.String className)
class info
by class name.className
- the class namenull
if no such class info is
definedpublic void setNewCharInfo(@NotNull @NotNull NewCharInfo newCharInfo)
NewCharInfo
instance for character creation.newCharInfo
- the new char info instance@NotNull public @NotNull NewCharInfo getNewCharInfo()
NewCharInfo
instance for character creation.