Player Class Reference

#include <Player.h>

List of all members.


Detailed Description

Definition at line 7 of file Player.h.

Public Member Functions

void addUnit (spUnit unit)
int getID ()
spUnit getNextUnit ()
int getUnitCount ()
 Player (int id)
void removeUnit (spUnit unit)

Private Attributes

int _id
vector< spUnit_units


Constructor & Destructor Documentation

Player::Player ( int  id  ) 

Definition at line 3 of file Player.cpp.


Member Function Documentation

void Player::addUnit ( spUnit  unit  ) 

Definition at line 14 of file Player.cpp.

References _units.

int Player::getID (  ) 

Definition at line 9 of file Player.cpp.

References _id.

spUnit Player::getNextUnit (  ) 

Definition at line 19 of file Player.cpp.

References _units.

int Player::getUnitCount (  ) 

void Player::removeUnit ( spUnit  unit  ) 


Member Data Documentation

int Player::_id [private]

Definition at line 20 of file Player.h.

Referenced by getID().

vector<spUnit> Player::_units [private]

Definition at line 24 of file Player.h.

Referenced by addUnit(), and getNextUnit().


The documentation for this class was generated from the following files:
Generated on Fri Sep 22 06:00:27 2006 for X-CLONE by  doxygen 1.4.7