blob: 078e815015fbc70cf20d7be6ebbd744a4975a659 (
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
|
#pragma once
class cMonster;
class cEntity;
class cChunk;
class cEnvironmentComponent
{
protected:
cMonster * m_Self;
int m_SightDistance;
bool m_OnGround;
bool m_BurnsInDaylight;
public:
cEnvironmentComponent(cMonster * a_Entity, int a_SightDistance);
virtual ~cEnvironmentComponent(){}
virtual void Tick(float a_Dt, cChunk & a_Chunk);
// Get Functions
int GetSightDistance() { return m_SightDistance ; }
bool GetOnGround() { return m_OnGround; }
bool GetBurnsInDaylight() { return m_BurnsInDaylight; }
// Set Functions
void SetSightDistance(int a_SightDistance) { m_SightDistance = a_SightDistance; }
void SetOnGround(bool a_Bool) { m_OnGround = a_Bool; }
void SetBurnsInDaylight(bool a_Bool) { m_BurnsInDaylight = a_Bool; }
// Handle functions
void HandleDaylightBurning(cChunk & a_Chunk);
};
|