de.adom.jade.startup.chargen
Class CharacterData

java.lang.Object
  extended by de.adom.jade.startup.chargen.CharacterData

public class CharacterData
extends java.lang.Object

Collects all the data from all the choices the player can make during character generation.


Constructor Summary
CharacterData()
           
 
Method Summary
 int getAttribute(int index)
          Liefert einen Attributwert zurück.
 Gender getGender()
          Returns the gender of the PC.
 java.lang.String getName()
          Returns the name of the PC.
 Race getRace()
          Returns the chosen PC race.
 void setAttribute(int index, int value)
          Sets an attribute value.
 void setGender(Gender theGender)
          Sets the gender of the PC.
 void setName(java.lang.String theName)
          Sets the name of the PC.
 void setRace(Race theRace)
          Sets the race of the PC.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterData

public CharacterData()
Method Detail

setRace

public void setRace(Race theRace)
Sets the race of the PC.

Parameters:
theRace - the selected race

getRace

public Race getRace()
Returns the chosen PC race.

Returns:
the chosen PC race

setGender

public void setGender(Gender theGender)
Sets the gender of the PC.

Parameters:
theGender - the gender of the PC

getGender

public Gender getGender()
Returns the gender of the PC.

Returns:
the gender of the PC

setName

public void setName(java.lang.String theName)
Sets the name of the PC.

Parameters:
theName - the name of the PC

getName

public java.lang.String getName()
Returns the name of the PC.

Returns:
the name of the PC

setAttribute

public void setAttribute(int index,
                         int value)
Sets an attribute value.

Parameters:
index - the index of the attribute value
value - the new value of the attribute

getAttribute

public int getAttribute(int index)
Liefert einen Attributwert zurück.

Parameters:
index - the index of the attribute value
Returns:
the attribute value at the given index