#include <PVLEPlayer.h>
Public Member Functions | |
| PVLEPlayer () | |
| PVLEPlayer (PVLETeam *pTeam) | |
| PVLETeam * | getTeam () |
| void | setTeam (PVLETeam *pTeam) |
| NULL team is allowed. | |
| ControlMapper & | getControlMapper () |
| const ControlMapper & | getControlMapper () const |
Protected Member Functions | |
| PVLEGame * | getGame () |
| virtual void | onTeamChange (PVLETeam *pOldTeam, PVLETeam *pNewTeam) |
| Called when the team changes (used for derivate classes). | |
| virtual | ~PVLEPlayer () |
| Protected destructor forces the object to be deleted by being dereferenced. | |
Protected Attributes | |
| PVLETeam * | pTeam |
| NULL team is the same as "no team". | |
| ControlMapper | controlMapper |
| Control mapper of the player. It is initialized with no bindings. | |
There must be only ONE instance of this class for each player (so testing equality on pointers is enough).
Definition at line 49 of file PVLEPlayer.h.
| PVLEPlayer::PVLEPlayer | ( | ) | [inline] |
Definition at line 52 of file PVLEPlayer.h.
| PVLEPlayer::PVLEPlayer | ( | PVLETeam * | pTeam | ) | [inline] |
Definition at line 53 of file PVLEPlayer.h.
| virtual PVLEPlayer::~PVLEPlayer | ( | ) | [inline, protected, virtual] |
Protected destructor forces the object to be deleted by being dereferenced.
Also avoids the object from beeing created on the stack.
Definition at line 76 of file PVLEPlayer.h.
| const ControlMapper& PVLEPlayer::getControlMapper | ( | ) | const [inline] |
Definition at line 59 of file PVLEPlayer.h.
| ControlMapper& PVLEPlayer::getControlMapper | ( | ) | [inline] |
Definition at line 58 of file PVLEPlayer.h.
| PVLEGame* PVLEPlayer::getGame | ( | ) | [protected] |
| PVLETeam* PVLEPlayer::getTeam | ( | ) | [inline] |
Definition at line 55 of file PVLEPlayer.h.
Referenced by C3DPhy::setPlayer(), and C3DPhy::setTeamAndPlayer().
| virtual void PVLEPlayer::onTeamChange | ( | PVLETeam * | pOldTeam, | |
| PVLETeam * | pNewTeam | |||
| ) | [inline, protected, virtual] |
Called when the team changes (used for derivate classes).
Definition at line 72 of file PVLEPlayer.h.
| void PVLEPlayer::setTeam | ( | PVLETeam * | pTeam | ) | [inline] |
NULL team is allowed.
Definition at line 56 of file PVLEPlayer.h.
Referenced by PVLETeam::addPlayer(), and PVLETeam::removePlayer().
ControlMapper PVLEPlayer::controlMapper [protected] |
Control mapper of the player. It is initialized with no bindings.
Definition at line 69 of file PVLEPlayer.h.
PVLETeam* PVLEPlayer::pTeam [protected] |
1.5.9