PlayerID Class Reference

convenience-class which automatically determines the Player of units, buildings and other game objects More...

#include <player.h>

List of all members.

Public Member Functions

 PlayerID (int num)
 PlayerID (const ContainerBase *c)
 PlayerID (const ContainerBase &c)
 PlayerID (const Player &p)
 PlayerID (const PlayerID &p)
int getID () const


Detailed Description

convenience-class which automatically determines the Player of units, buildings and other game objects

Definition at line 39 of file player.h.


Constructor & Destructor Documentation

PlayerID::PlayerID ( int  num  )  [inline]

Definition at line 42 of file player.h.

PlayerID::PlayerID ( const ContainerBase c  )  [inline]

Definition at line 43 of file player.h.

PlayerID::PlayerID ( const ContainerBase c  )  [inline]

Definition at line 44 of file player.h.

PlayerID::PlayerID ( const Player p  ) 

Definition at line 33 of file player.cpp.

PlayerID::PlayerID ( const PlayerID p  )  [inline]

Definition at line 46 of file player.h.


Member Function Documentation

int PlayerID::getID (  )  const [inline]

Definition at line 47 of file player.h.

Referenced by GameMap::getPlayer(), DiplomaticStateVector::getState(), DiplomaticStateVector::isAllied(), DiplomaticStateVector::isHostile(), DiplomaticStateVector::setState(), and DiplomaticStateVector::sharesView().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:13 2012 for Advanced Strategic Command by  doxygen 1.5.1