Player Class Reference

Represents one player in the game. More...

#include <Player.h>

List of all members.

Public Member Functions

 Player (std::string p_color)
 Standard constructor.
virtual ~Player ()
 Standard destructor.

Public Attributes

std::string color
 Holds the color of the player.
int energy
 Holds the energy of the player.


Detailed Description

Represents one player in the game.

Definition at line 29 of file Player.h.


Constructor & Destructor Documentation

Player::Player ( std::string  p_color  ) 

Standard constructor.

Definition at line 23 of file Player.cpp.

References color, and energy.

Player::~Player (  )  [virtual]

Standard destructor.

Definition at line 29 of file Player.cpp.


Member Data Documentation

std::string Player::color

Holds the color of the player.

Definition at line 45 of file Player.h.

Referenced by Unit::load(), Player(), and Unit::settle().

int Player::energy

Holds the energy of the player.

Definition at line 50 of file Player.h.

Referenced by Unit::compute(), Player(), FunctionHandler::selectBonus(), Unit::settle(), and FunctionHandler::standardAction().


The documentation for this class was generated from the following files:
Generated on Tue Jul 17 22:02:23 2007 for C0re by  doxygen 1.5.2