org.moyoman.client.reference.util
Class PlayerData

java.lang.Object
  |
  +--org.moyoman.client.reference.util.PlayerData

public class PlayerData
extends Object

Provides storage for data required to create a player.

Since:
v0.02
Author:
Jeffrey M. Thompson

Field Summary
private  Color _color
          Player color.
private  Mode _mode
          Mode.
private  Class _playerClass
          Player class.
 
Constructor Summary
PlayerData(Class playerClass, Color color, Mode mode)
          Construct this object with the given parameters for a new game type.
 
Method Summary
 Color getColor()
          Return the player color.
 Mode getMode()
          Return the mode.
 Class getPlayerClass()
          Return the player class.
 String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_playerClass

private Class _playerClass
Player class.


_color

private Color _color
Player color.


_mode

private Mode _mode
Mode.

Constructor Detail

PlayerData

public PlayerData(Class playerClass,
                  Color color,
                  Mode mode)
Construct this object with the given parameters for a new game type.

Since:
v0.02
Method Detail

getColor

public Color getColor()
Return the player color.

Since:
v0.02

getMode

public Mode getMode()
Return the mode.

Since:
v0.02

getPlayerClass

public Class getPlayerClass()
Return the player class.

Since:
v0.02

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Since:
v0.02