Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
DefendAreaTask Class Reference
Inheritance diagram for DefendAreaTask:
[legend]
Collaboration diagram for DefendAreaTask:
[legend]

Public Member Functions

 DefendAreaTask (Squad &squad, std::list< glm::vec3 > points, float defendRange)
 
void addPoint (const glm::vec3 &point)
 
const std::list< glm::vec3 > & points ()
 
float range ()
 
virtual void update (float deltaSec) override
 
- Public Member Functions inherited from AiGroupTask
 AiGroupTask (Squad &squad)
 
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 onNewLeader (Ship *leader) override
 
virtual void onMemberJoin (Ship *member) override
 
void updatePatrol ()
 
void updateFight ()
 
bool isEnemyInRange ()
 
- Protected Member Functions inherited from AiGroupTask
virtual void onMemberLeave (Ship *member)
 
void setLeaderTask (std::shared_ptr< AiTask > task)
 
void setMembersToFollowLeader ()
 

Protected Attributes

std::unique_ptr< CollisionFilterm_collisionFilter
 
std::shared_ptr< FlyToTaskm_leaderFlyTask
 
std::shared_ptr< FightTaskm_fightTask
 
std::list< glm::vec3 > m_points
 
std::list< glm::vec3 >::iterator m_currentPoint
 
std::vector< Handle
< WorldObject > > 
m_enemies
 
float m_defendRange
 
- Protected Attributes inherited from AiGroupTask
Squadm_squad
 
- Protected Attributes inherited from Scriptable
int m_key
 
bool m_local
 

Additional Inherited Members

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

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