summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2014-08-26 01:22:45 +0200
committerSamuel Barney <samjbarney@gmail.com>2014-08-26 01:22:45 +0200
commit11a50854369fd9b4556ba97a68455cfdf8a9d835 (patch)
tree3472396e3c144ea6465761ab919f72d3b3a089b6
parentAdded getters for the Components. Currently returning by reference. (diff)
downloadcuberite-11a50854369fd9b4556ba97a68455cfdf8a9d835.tar
cuberite-11a50854369fd9b4556ba97a68455cfdf8a9d835.tar.gz
cuberite-11a50854369fd9b4556ba97a68455cfdf8a9d835.tar.bz2
cuberite-11a50854369fd9b4556ba97a68455cfdf8a9d835.tar.lz
cuberite-11a50854369fd9b4556ba97a68455cfdf8a9d835.tar.xz
cuberite-11a50854369fd9b4556ba97a68455cfdf8a9d835.tar.zst
cuberite-11a50854369fd9b4556ba97a68455cfdf8a9d835.zip
-rw-r--r--src/Mobs/Components/EnvironmentComponent.h7
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; }
};