Class NewCharacterInformation
java.lang.Object
com.realtime.crossfire.jxclient.character.NewCharacterInformation
Contains information for creating new characters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassInfo(@NotNull ClassRaceInfo classInfo) Sets or updates aclass info.voidaddNewCharacterInformationListener(@NotNull NewCharacterInformationListener newCharacterInformationListener) Registers aNewCharacterInformationListenerto be notified of changes.voidaddRaceInfo(@NotNull ClassRaceInfo classRaceInfo) Sets or updates aClassRaceInfo.Returns all defined classes available for character creation.@Nullable ClassRaceInfogetClassInfo(@NotNull String className) Returns aclass infoby class name.@NotNull NewCharInfoReturns theNewCharInfoinstance for character creation.@Nullable ClassRaceInfogetRaceInfo(@NotNull String race) Returns aClassRaceInfoby race name.Returns all defined races available for character creation.@Nullable StartingMapgetStartingMapInfo(@NotNull String name) Returns aStartingMapby map name.Returns all defined starting maps for character creation.voidremoveNewCharacterInformationListener(@NotNull NewCharacterInformationListener newCharacterInformationListener) Unregisters aNewCharacterInformationListenernot to be notified of changes.voidsetClassList(@NotNull String @NotNull [] classList) Sets the classes available for character creation.voidsetNewCharInfo(@NotNull NewCharInfo newCharInfo) Sets theNewCharInfoinstance for character creation.voidsetRaceList(@NotNull String @NotNull [] raceList) Sets the races available for character creation.voidsetStartingMapList(@NotNull Iterable<StartingMap> startingMaps) Sets theStartingMapentries available for character creation.
-
Constructor Details
-
NewCharacterInformation
public NewCharacterInformation()
-
-
Method Details
-
addNewCharacterInformationListener
public void addNewCharacterInformationListener(@NotNull @NotNull NewCharacterInformationListener newCharacterInformationListener) Registers aNewCharacterInformationListenerto be notified of changes.- Parameters:
newCharacterInformationListener- the listener to register
-
removeNewCharacterInformationListener
public void removeNewCharacterInformationListener(@NotNull @NotNull NewCharacterInformationListener newCharacterInformationListener) Unregisters aNewCharacterInformationListenernot to be notified of changes.- Parameters:
newCharacterInformationListener- the listener to unregister
-
setStartingMapList
Sets theStartingMapentries available for character creation.- Parameters:
startingMaps- the starting map entries
-
getStartingMapList
Returns all defined starting maps for character creation.- Returns:
- the starting map entries
-
getStartingMapInfo
Returns aStartingMapby map name.- Parameters:
name- the map name- Returns:
- the starting map info or
nullif no starting map info is defined
-
setRaceList
Sets the races available for character creation.- Parameters:
raceList- the races
-
getRaceList
Returns all defined races available for character creation.- Returns:
- the races
-
addRaceInfo
Sets or updates aClassRaceInfo.- Parameters:
classRaceInfo- the race info to set
-
getRaceInfo
Returns aClassRaceInfoby race name.- Parameters:
race- the race name- Returns:
- the race info or
nullif no race info is defined
-
setClassList
Sets the classes available for character creation.- Parameters:
classList- the classes
-
getClassesList
Returns all defined classes available for character creation.- Returns:
- the classes
-
addClassInfo
Sets or updates aclass info.- Parameters:
classInfo- the class info to set
-
getClassInfo
Returns aclass infoby class name.- Parameters:
className- the class name- Returns:
- the class race info or
nullif no such class info is defined
-
setNewCharInfo
Sets theNewCharInfoinstance for character creation.- Parameters:
newCharInfo- the new char info instance
-
getNewCharInfo
Returns theNewCharInfoinstance for character creation.- Returns:
- the new char info instance
-