summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Wolf.cpp
blob: bfc7b10e89059ec7f50e536ed608067b836a3e12 (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

#include "Globals.h"  // NOTE: MSVC stupidness requires this to be the same across all modules

#include "Wolf.h"
#include "../World.h"
#include "../Entities/Player.h"
#include "../Items/ItemHandler.h"
#include "Broadcaster.h"





cWolf::cWolf(void) :
	super(mtWolf, "entity.wolf.hurt", "entity.wolf.death", 0.6, 0.8),
	m_IsSitting(false),
	m_IsTame(false),
	m_IsBegging(false),
	m_IsAngry(false),
	m_OwnerName(""),
	m_CollarColor(E_META_DYE_ORANGE),
	m_NotificationCooldown(0)
{
	m_RelativeWalkSpeed = 2;
	m_EMPersonality = PASSIVE;
	GetMonsterConfig("Wolf");
}




bool cWolf::DoTakeDamage(TakeDamageInfo & a_TDI)
{
	/*TODO bring from master and adapt*/
}





void cWolf::NotifyAlliesOfFight(cPawn * a_Opponent)
{
	/*TODO bring from master and adapt*/
}





void cWolf::ReceiveNearbyFightInfo(const cUUID & a_PlayerID, cPawn * a_Opponent, bool a_IsPlayerInvolved)
{
	/*TODO bring from master and adapt
	*/

}





void cWolf::OnRightClicked(cPlayer & a_Player)
{
	/*TODO bring from master and adapt
	*/
}





void cWolf::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
{
	//mobTodo behaviors!

	/*
	TODO bring from master and adapt
	*/
}





void cWolf::TickFollowPlayer()
{
	/*
	TODO bring from master and adapt
	*/
}