summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Components/EnvironmentComponent.h
blob: 60a5c3c424ac2743df32d175d212bd850d8737cf (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
#pragma once

class cMonster;
class cEntity;
class cChunk;

class cEnvironmentComponent
{
protected:
	cMonster * m_Self;
	int m_SightDistance;
	bool m_OnGround;
public:
	cEnvironmentComponent(cMonster * a_Entity, int a_SightDistance);
	virtual ~cEnvironmentComponent(){}

	// Get Functions
	int GetSightDistance() { return m_SightDistance ; }
	bool GetOnGround() { return m_OnGround; }

	// Set Functions
	void SetSightDistance(int a_SightDistance) { m_SightDistance = a_SightDistance; }
	void SetOnGround(bool a_Bool) { m_OnGround = a_Bool; }
};