Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.character.NewCharInfo Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.character.NewCharInfo:
Collaboration graph

Public Member Functions

int getMaxValue ()
 
int getMinValue ()
 
int getPoints ()
 
List< String > getStatNames ()
 
boolean isClassChoice ()
 
boolean isRaceChoice ()
 
boolean isStartingMapChoice ()
 
 NewCharInfo (final int points, final int minValue, final int maxValue, @NotNull final Collection< String > statNames, final boolean raceChoice, final boolean classChoice, final boolean startingMapChoice)
 
String toString ()
 

Private Attributes

final boolean classChoice
 
final int maxValue
 
final int minValue
 
final int points
 
final boolean raceChoice
 
final boolean startingMapChoice
 
final List< String > statNames = new ArrayList<>()
 

Detailed Description

General information for creating new characters.

Author
Andreas Kirschbaum

Definition at line 35 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 83 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, com.realtime.crossfire.jxclient.character.NewCharInfo.startingMapChoice, and com.realtime.crossfire.jxclient.character.NewCharInfo.statNames.

Member Function Documentation

◆ getMaxValue()

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

◆ getMinValue()

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

◆ 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 97 of file NewCharInfo.java.

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

Referenced by com.realtime.crossfire.jxclient.gui.label.NewCharModel.getUnusedPoints().

Here is the caller graph for this function:

◆ getStatNames()

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

Returns the stat names to spend on.

Returns
the stat names

Definition at line 122 of file NewCharInfo.java.

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

◆ 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 138 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 130 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 146 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

◆ 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 documentation for this class was generated from the following file: