#include <PVLETeam.h>
Public Member Functions | |
| void | addPlayer (PVLEPlayer *pPlayer) |
| void | removePlayer (PVLEPlayer *pPlayer) |
| PVLEPlayer * | getPlayer (UINT index) |
| const PVLEPlayer * | getPlayer (UINT index) const |
| UINT | getNbPlayers () |
Protected Member Functions | |
| virtual | ~PVLETeam () |
| Protected destructor forces the object to be deleted by being dereferenced. | |
Protected Attributes | |
| std::vector< osg::ref_ptr < PVLEPlayer > > | vPlayersList |
| PVLEGame * | pGame |
Friends | |
| class | PVLEPlayer |
| class | PVLEGame |
The team is usually needed to group allied players in order to apply 'friendly fire' when needed ; but actually, a non team-based game can be created by putting all players in the same team with the 'friendly fire' value to 1.
Definition at line 38 of file PVLETeam.h.
| virtual PVLETeam::~PVLETeam | ( | ) | [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 55 of file PVLETeam.h.
| void PVLETeam::addPlayer | ( | PVLEPlayer * | pPlayer | ) | [inline] |
| UINT PVLETeam::getNbPlayers | ( | ) | [inline] |
Definition at line 44 of file PVLETeam.h.
| const PVLEPlayer* PVLETeam::getPlayer | ( | UINT | index | ) | const [inline] |
Definition at line 43 of file PVLETeam.h.
| PVLEPlayer* PVLETeam::getPlayer | ( | UINT | index | ) | [inline] |
Definition at line 42 of file PVLETeam.h.
| void PVLETeam::removePlayer | ( | PVLEPlayer * | pPlayer | ) |
friend class PVLEGame [friend] |
Definition at line 50 of file PVLETeam.h.
friend class PVLEPlayer [friend] |
Definition at line 47 of file PVLETeam.h.
PVLEGame* PVLETeam::pGame [protected] |
std::vector<osg::ref_ptr<PVLEPlayer> > PVLETeam::vPlayersList [protected] |
1.5.9