-
Notifications
You must be signed in to change notification settings - Fork 1
/
Goal_ObeyLeader.h
46 lines (35 loc) · 1 KB
/
Goal_ObeyLeader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef GOAL_OBEYLEADER
#define GOAL_OBEYLEADER
//-----------------------------------------------------------------------------
//
// Name: Goal_ObeyLeader.h
//
// Author: Loic Mouton
//
// Desc: this class holds the methods used by the main goal of follower bots.
//-----------------------------------------------------------------------------
#include "Goals/Goal_Composite.h"
#include "Goals/Raven_Goal_Types.h"
#include "Raven_Leader.h"
class Raven_Follower;
class Goal_ObeyLeader : public Goal_Composite<Raven_Follower>
{
private:
bool m_bOrderIsSet;
bool m_bOrderHasChanged;
Leader_Order m_order;
bool m_bLeaderPosIsSet;
Vector2D m_knownLeaderPos;
public:
Goal_ObeyLeader(Raven_Follower* pOwner);
~Goal_ObeyLeader();
void Activate();
int Process();
void Terminate();
bool HandleMessage(const Telegram& msg);
//top level goal types
void AddGoal_AttackTarget();
//returns true if the given goal is not at the front of the subgoal list
bool notPresent(unsigned int GoalType)const;
};
#endif