summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Behaviors/Behavior.cpp
blob: 86922427f3067465c949d635e5043d82e64e0785 (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#include "Globals.h"  // NOTE: MSVC stupidness requires this to be the same across all modules

#include "Behavior.h"
#include "../Monster.h"



bool cBehavior::IsControlDesired(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	LOGD("ERROR: Probably forgot to implement  cBehavior::IsControlDesired but implement  cBehavior::Tick");
	return false;
}





bool cBehavior::ControlStarting(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	return true;
}





bool cBehavior::ControlEnding(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	return true;
}





void cBehavior::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	LOGD("ERROR: Called a TICK on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}





void cBehavior::PostTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	LOGD("ERROR: Called a PostTick on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}





void cBehavior::PreTick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	UNUSED(a_Dt);
	UNUSED(a_Chunk);
	LOGD("ERROR: Called a PreTick on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}





void cBehavior::OnRightClicked(cPlayer & a_Player)
{
	LOGD("ERROR: Called onRightClicked on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}





void cBehavior::Destroyed()
{
	LOGD("ERROR: Called Destroyed on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}




void cBehavior::DoTakeDamage(TakeDamageInfo & a_TDI)
{
	UNUSED(a_TDI);
	LOGD("ERROR: Called DoTakeDamage on a behavior that doesn't have one.");
	ASSERT(1 == 0);
}