-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommands.cpp
45 lines (35 loc) · 881 Bytes
/
Commands.cpp
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
#include "precomp.h"
#include "Commands.h"
Command::Command(CommandType a_type, AggroLevel a_aggroLevel) :
type(a_type),
aggroLevel(a_aggroLevel)
{
}
Command::~Command()
{
}
Attack::Attack(optional<EntityId> a_target) :
Command(CommandType::attack, AggroLevel::aggressive),
target(a_target)
{
}
Investigate::Investigate(float a_timeInvestigationStart, float2 a_position) :
Command(CommandType::investigate, AggroLevel::aggressive),
position(a_position),
timeInvestigationStart(a_timeInvestigationStart)
{
}
Idle::Idle(AggroLevel aggroLevel) :
Command(CommandType::idle, aggroLevel)
{
}
MoveTo::MoveTo() :
Command(CommandType::moveTo, AggroLevel::passive)
{
}
MoveTo::MoveTo(float2 a_destination, AggroLevel aggroLevel, optional<float> a_rotationAtEnd) :
Command(CommandType::moveTo, aggroLevel),
destination(a_destination),
rotationAtEnd(a_rotationAtEnd)
{
}