Army Class Reference
the variables and methods that a army contains put in this file
More...
#include <Army.h>
List of all members.
Detailed Description
the variables and methods that a army contains put in this file
Definition at line 20 of file Army.h.
Constructor & Destructor Documentation
Army::Army |
( |
int |
_armyID |
) |
|
Member Function Documentation
void Army::addAgentToArmy |
( |
AIagent * |
_agent |
) |
|
add an Ai agent to the army
- Parameters:
-
void Army::addArmy |
( |
std::list< AIagent * > |
_aiagents |
) |
|
create an army
- Parameters:
-
[in] | the | AI agents list _aiagents |
void Army::addScout |
( |
AIagent * |
_scout |
) |
[inline] |
add the scout the leader of the army
- Parameters:
-
Definition at line 36 of file Army.h.
References m_scout.
std::list<AIagent* > Army::getArmyAgents |
( |
|
) |
[inline] |
AIagent* Army::getScout |
( |
|
) |
[inline] |
get the leader of the army
Definition at line 50 of file Army.h.
References m_scout.
void Army::sendMessage |
( |
const std::string |
_message |
) |
|
send message from the scout to the army
- Parameters:
-
[in] | the | message _message |
void Army::setTargetPosForArmy |
( |
const ngl::Vec3 |
_pos |
) |
|
set the target for the army
- Parameters:
-
Member Data Documentation
the variable to hold the agents in the army except for the scout
Definition at line 74 of file Army.h.
the variable to hold the army ID
Definition at line 70 of file Army.h.
the variable to hold the leader
Definition at line 78 of file Army.h.
The documentation for this class was generated from the following file: