#include <squad.h>
|
| Squad (Ship *leader=nullptr) |
|
Ship * | leader () |
|
void | setLeader (Ship *leader) |
|
std::shared_ptr< AiGroupTask > | task () |
|
void | setTask (std::shared_ptr< AiGroupTask > task) |
|
const std::vector< Ship * > & | members () |
|
int | scriptKey () const |
|
void | setScriptKey (int key) |
|
bool | isScriptLocal () const |
|
void | setScriptLocal (bool local) |
|
|
void | onMemberJoin (Ship *member) |
|
void | onMemberLeave (Ship *member) |
|
glm::vec3 | formationPositionFor (Ship *member) |
|
glm::vec3 | formationUpFor (Ship *member) |
|
void | chooseNewLeader () |
|
glm::vec3 | calculateFormationPosition (Ship *member, int position) |
|
|
Ship * | m_leader |
|
std::vector< Ship * > | m_members |
|
std::shared_ptr< AiGroupTask > | m_task |
|
int | m_key |
|
bool | m_local |
|
|
static const int | INVALID_KEY = -1 |
|
Ships can be joined to Squads to give them AiGroupTasks. The Squad's leader is the one to execute the Squad's task.
The documentation for this class was generated from the following files: