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

Public Member Functions

 ClassRaceInfo (@NotNull final String archName, @NotNull final String name, @NotNull final String msg, @NotNull final Map< Integer, Long > stats, @NotNull final Collection< Choice > choices)
 
String getArchName ()
 
List< ChoicegetChoices ()
 
String getMsg ()
 
String getName ()
 
long getStatAdjustment (final int statNo)
 
String toString ()
 

Private Attributes

final String archName
 
final List< Choicechoices = new ArrayList<>()
 
final String msg
 
final String name
 
final Map< Integer, Long > stats = new HashMap<>()
 

Detailed Description

One possible class or race for character creation.

Author
Andreas Kirschbaum

Definition at line 37 of file ClassRaceInfo.java.

Constructor & Destructor Documentation

◆ ClassRaceInfo()

com.realtime.crossfire.jxclient.character.ClassRaceInfo.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.

Parameters
archNamethe archetype name
namethe human-readable race name
msgthe long description
statsthe stat adjustments
choicesthe available choices

Definition at line 77 of file ClassRaceInfo.java.

References com.realtime.crossfire.jxclient.character.ClassRaceInfo.archName, com.realtime.crossfire.jxclient.character.ClassRaceInfo.choices, com.realtime.crossfire.jxclient.character.ClassRaceInfo.msg, com.realtime.crossfire.jxclient.character.ClassRaceInfo.name, and com.realtime.crossfire.jxclient.character.ClassRaceInfo.stats.

Member Function Documentation

◆ getArchName()

String com.realtime.crossfire.jxclient.character.ClassRaceInfo.getArchName ( )

Returns the archetype name.

Returns
the archetype name

Definition at line 90 of file ClassRaceInfo.java.

References com.realtime.crossfire.jxclient.character.ClassRaceInfo.archName.

◆ getChoices()

List<Choice> com.realtime.crossfire.jxclient.character.ClassRaceInfo.getChoices ( )

Returns the available choices.

Returns
the available choices

Definition at line 130 of file ClassRaceInfo.java.

References com.realtime.crossfire.jxclient.character.ClassRaceInfo.choices.

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

Here is the caller graph for this function:

◆ getMsg()

String com.realtime.crossfire.jxclient.character.ClassRaceInfo.getMsg ( )

Returns the long description.

Returns
the long description

Definition at line 108 of file ClassRaceInfo.java.

References com.realtime.crossfire.jxclient.character.ClassRaceInfo.msg.

Referenced by com.realtime.crossfire.jxclient.gui.combobox.GUIClassesComboBox.getDescription(), and com.realtime.crossfire.jxclient.gui.combobox.GUIRacesComboBox.getDescription().

Here is the caller graph for this function:

◆ getName()

String com.realtime.crossfire.jxclient.character.ClassRaceInfo.getName ( )

◆ getStatAdjustment()

long com.realtime.crossfire.jxclient.character.ClassRaceInfo.getStatAdjustment ( final int  statNo)

Returns a stat adjustment.

Parameters
statNothe stat number
Returns
the adjustment

Definition at line 117 of file ClassRaceInfo.java.

References com.realtime.crossfire.jxclient.character.ClassRaceInfo.stats.

Referenced by com.realtime.crossfire.jxclient.gui.label.NewCharModel.getClassStatAdjustment(), and com.realtime.crossfire.jxclient.gui.label.NewCharModel.getRaceStatAdjustment().

Here is the caller graph for this function:

◆ toString()

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

Member Data Documentation

◆ archName

final String com.realtime.crossfire.jxclient.character.ClassRaceInfo.archName
private

◆ choices

final List<Choice> com.realtime.crossfire.jxclient.character.ClassRaceInfo.choices = new ArrayList<>()
private

◆ msg

final String com.realtime.crossfire.jxclient.character.ClassRaceInfo.msg
private

◆ name

final String com.realtime.crossfire.jxclient.character.ClassRaceInfo.name
private

◆ stats

final Map<Integer, Long> com.realtime.crossfire.jxclient.character.ClassRaceInfo.stats = new HashMap<>()
private

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