From 11a50854369fd9b4556ba97a68455cfdf8a9d835 Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Mon, 25 Aug 2014 17:22:45 -0600 Subject: Added functionality to the Environment Component. --- src/Mobs/Components/EnvironmentComponent.h | 7 +++++++ 1 file changed, 7 insertions(+) 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; } }; -- cgit v1.2.3