Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
AiGroupTask Class Reference

#include <aigrouptask.h>

Inheritance diagram for AiGroupTask:
[legend]
Collaboration diagram for AiGroupTask:
[legend]

Public Member Functions

 AiGroupTask (Squad &squad)
 
virtual void update (float deltaSec)
 
virtual bool isInProgress ()
 
- Public Member Functions inherited from Scriptable
int scriptKey () const
 
void setScriptKey (int key)
 
bool isScriptLocal () const
 
void setScriptLocal (bool local)
 

Protected Member Functions

virtual void onMemberJoin (Ship *member)
 
virtual void onMemberLeave (Ship *member)
 
virtual void onNewLeader (Ship *leader)
 
void setLeaderTask (std::shared_ptr< AiTask > task)
 
void setMembersToFollowLeader ()
 

Protected Attributes

Squadm_squad
 
- Protected Attributes inherited from Scriptable
int m_key
 
bool m_local
 

Friends

class Squad
 

Additional Inherited Members

- Static Public Attributes inherited from Scriptable
static const int INVALID_KEY = -1
 

Detailed Description

AiGroupTasks are AiTasks on the level of Squads, e.g. can be executed by multiple Characters / Ships They work by setting the Tasks of the single Characters


The documentation for this class was generated from the following files: