7 #include "scripting/scriptable.h"
22 void setLeader(
Ship* leader);
24 std::shared_ptr<AiGroupTask> task();
25 void setTask(std::shared_ptr<AiGroupTask> task);
27 const std::vector<Ship*>& members();
34 void onMemberJoin(
Ship* member);
35 void onMemberLeave(
Ship* member);
36 glm::vec3 formationPositionFor(
Ship* member);
37 glm::vec3 formationUpFor(
Ship* member);
40 void chooseNewLeader();
41 glm::vec3 calculateFormationPosition(
Ship* member,
int position);
44 std::vector<Ship*> m_members;
45 std::shared_ptr<AiGroupTask> m_task;
Definition: aigrouptask.h:16
Definition: squadlogic.h:14
Definition: scriptable.h:4