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

One possible class or race for character creation. More...

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

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)
 Creates a new instance. More...
 
String getArchName ()
 Returns the archetype name. More...
 
List< ChoicegetChoices ()
 Returns the available choices. More...
 
String getMsg ()
 Returns the long description. More...
 
String getName ()
 Returns the human readable race name. More...
 
long getStatAdjustment (final int statNo)
 Returns a stat adjustment. More...
 
String toString ()
 

Private Attributes

final String archName
 The archetype name. More...
 
final List< Choicechoices = new ArrayList<>()
 The available choices. More...
 
final String msg
 The long description. More...
 
final String name
 The human readable race name. More...
 
final Map< Integer, Long > stats = new HashMap<>()
 The stat adjustments. More...
 

Detailed Description

One possible class or race for character creation.

Author
Andreas Kirschbaum

Definition at line 36 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 76 of file ClassRaceInfo.java.

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

Member Function Documentation

◆ getArchName()

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

Returns the archetype name.

Returns
the archetype name

Definition at line 89 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 129 of file ClassRaceInfo.java.

◆ getMsg()

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

Returns the long description.

Returns
the long description

Definition at line 107 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 ( )

Returns the human readable race name.

Returns
the human readable race name

Definition at line 98 of file ClassRaceInfo.java.

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

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

+ Here is the caller graph for this function:

◆ 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 116 of file ClassRaceInfo.java.

◆ 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

The available choices.

Definition at line 60 of file ClassRaceInfo.java.

Referenced by com.realtime.crossfire.jxclient.character.ClassRaceInfo.toString().

◆ 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 stat adjustments.

Maps stat number to adjustment.

Definition at line 66 of file ClassRaceInfo.java.


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