Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.character.NewCharInfo Class Reference

General information for creating new characters. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.character.NewCharInfo:

Public Member Functions

int getMaxValue ()
 Returns the maximum stat value. More...
 
int getMinValue ()
 Returns the minimum stat value. More...
 
int getPoints ()
 Returns the number of points the character has to spend. More...
 
List< String > getStatNames ()
 Returns the stat names to spend on. More...
 
boolean isClassChoice ()
 Returns whether a class should be selected. More...
 
boolean isRaceChoice ()
 Returns whether a race should be selected. More...
 
boolean isStartingMapChoice ()
 Returns whether a starting map should be selected. More...
 
 NewCharInfo (final int points, final int minValue, final int maxValue, @NotNull final Collection< String > statNames, final boolean raceChoice, final boolean classChoice, final boolean startingMapChoice)
 Creates a new instance. More...
 
String toString ()
 

Private Attributes

final boolean classChoice
 Whether a class should be selected. More...
 
final int maxValue
 The maximum value for stats. More...
 
final int minValue
 The minimum value for stats. More...
 
final int points
 The total number of points the character has to spend. More...
 
final boolean raceChoice
 Whether a race should be selected. More...
 
final boolean startingMapChoice
 Whether a starting map should be selected. More...
 
final List< String > statNames = new ArrayList<>()
 The stat names to set. More...
 

Detailed Description

General information for creating new characters.

Author
Andreas Kirschbaum

Definition at line 34 of file NewCharInfo.java.

Constructor & Destructor Documentation

◆ NewCharInfo()

com.realtime.crossfire.jxclient.character.NewCharInfo.NewCharInfo ( final int  points,
final int  minValue,
final int  maxValue,
@NotNull final Collection< String >  statNames,
final boolean  raceChoice,
final boolean  classChoice,
final boolean  startingMapChoice 
)

Creates a new instance.

Parameters
pointsthe number of points the character has to spend
minValuethe minimum stat value
maxValuethe maximum stat value
statNamesthe stat names to spend on
raceChoicewhether a race should be selected
classChoicewhether a class should be selected
startingMapChoicewhether a starting map should be selected

Definition at line 82 of file NewCharInfo.java.

References com.realtime.crossfire.jxclient.character.NewCharInfo.classChoice, com.realtime.crossfire.jxclient.character.NewCharInfo.maxValue, com.realtime.crossfire.jxclient.character.NewCharInfo.minValue, com.realtime.crossfire.jxclient.character.NewCharInfo.points, com.realtime.crossfire.jxclient.character.NewCharInfo.raceChoice, and com.realtime.crossfire.jxclient.character.NewCharInfo.startingMapChoice.

Member Function Documentation

◆ getMaxValue()

int com.realtime.crossfire.jxclient.character.NewCharInfo.getMaxValue ( )

Returns the maximum stat value.

Returns
the maximum stat value

Definition at line 112 of file NewCharInfo.java.

References com.realtime.crossfire.jxclient.character.NewCharInfo.maxValue.

◆ getMinValue()

int com.realtime.crossfire.jxclient.character.NewCharInfo.getMinValue ( )

Returns the minimum stat value.

Returns
the minimum stat value

Definition at line 104 of file NewCharInfo.java.

References com.realtime.crossfire.jxclient.character.NewCharInfo.minValue.

◆ getPoints()

int com.realtime.crossfire.jxclient.character.NewCharInfo.getPoints ( )

Returns the number of points the character has to spend.

Returns
the number of points

Definition at line 96 of file NewCharInfo.java.

References com.realtime.crossfire.jxclient.character.NewCharInfo.points.

◆ getStatNames()

List<String> com.realtime.crossfire.jxclient.character.NewCharInfo.getStatNames ( )

Returns the stat names to spend on.

Returns
the stat names

Definition at line 121 of file NewCharInfo.java.

◆ isClassChoice()

boolean com.realtime.crossfire.jxclient.character.NewCharInfo.isClassChoice ( )

Returns whether a class should be selected.

Returns
whether a class should be selected

Definition at line 137 of file NewCharInfo.java.

References com.realtime.crossfire.jxclient.character.NewCharInfo.classChoice.

◆ isRaceChoice()

boolean com.realtime.crossfire.jxclient.character.NewCharInfo.isRaceChoice ( )

Returns whether a race should be selected.

Returns
whether a race should be selected

Definition at line 129 of file NewCharInfo.java.

References com.realtime.crossfire.jxclient.character.NewCharInfo.raceChoice.

◆ isStartingMapChoice()

boolean com.realtime.crossfire.jxclient.character.NewCharInfo.isStartingMapChoice ( )

Returns whether a starting map should be selected.

Returns
whether a starting map should be selected

Definition at line 145 of file NewCharInfo.java.

References com.realtime.crossfire.jxclient.character.NewCharInfo.startingMapChoice.

◆ toString()

String com.realtime.crossfire.jxclient.character.NewCharInfo.toString ( )

Member Data Documentation

◆ classChoice

final boolean com.realtime.crossfire.jxclient.character.NewCharInfo.classChoice
private

◆ maxValue

final int com.realtime.crossfire.jxclient.character.NewCharInfo.maxValue
private

◆ minValue

final int com.realtime.crossfire.jxclient.character.NewCharInfo.minValue
private

◆ points

final int com.realtime.crossfire.jxclient.character.NewCharInfo.points
private

The total number of points the character has to spend.

Definition at line 39 of file NewCharInfo.java.

Referenced by com.realtime.crossfire.jxclient.character.NewCharInfo.getPoints(), and com.realtime.crossfire.jxclient.character.NewCharInfo.NewCharInfo().

◆ raceChoice

final boolean com.realtime.crossfire.jxclient.character.NewCharInfo.raceChoice
private

◆ startingMapChoice

final boolean com.realtime.crossfire.jxclient.character.NewCharInfo.startingMapChoice
private

◆ statNames

final List<String> com.realtime.crossfire.jxclient.character.NewCharInfo.statNames = new ArrayList<>()
private

The stat names to set.

Definition at line 55 of file NewCharInfo.java.


The documentation for this class was generated from the following file: