diff options
Diffstat (limited to 'src/Mobs/Components/EnvironmentComponent.h')
-rw-r--r-- | src/Mobs/Components/EnvironmentComponent.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Mobs/Components/EnvironmentComponent.h b/src/Mobs/Components/EnvironmentComponent.h index 080ae3716..cbf9e0784 100644 --- a/src/Mobs/Components/EnvironmentComponent.h +++ b/src/Mobs/Components/EnvironmentComponent.h @@ -8,9 +8,16 @@ class cEnvironmentComponent { protected: cMonster * m_Self; + int m_SightDistance; public: cEnvironmentComponent(cMonster * a_Entity); virtual ~cEnvironmentComponent(){} virtual void Tick(float a_Dt, cChunk & a_Chunk){} + + // Get Functions + int GetSightDistance() { return m_SightDistance ; } + + // Set Functions + void SetSightDistance(int a_SightDistance) { m_SightDistance = a_SightDistance; } }; |