summaryrefslogtreecommitdiffstats
path: root/source/cMonster.h
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-26 19:20:00 +0100
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2011-12-26 19:20:00 +0100
commit92e0ba66459af6a5ac7ef53fb24a681db100f901 (patch)
treea0a882edd2337178634701141856bc9c131f342c /source/cMonster.h
parentGameMode Switch added to Core Functions (/gm 0 | /gm 1) needs permission core.changegm (diff)
downloadcuberite-92e0ba66459af6a5ac7ef53fb24a681db100f901.tar
cuberite-92e0ba66459af6a5ac7ef53fb24a681db100f901.tar.gz
cuberite-92e0ba66459af6a5ac7ef53fb24a681db100f901.tar.bz2
cuberite-92e0ba66459af6a5ac7ef53fb24a681db100f901.tar.lz
cuberite-92e0ba66459af6a5ac7ef53fb24a681db100f901.tar.xz
cuberite-92e0ba66459af6a5ac7ef53fb24a681db100f901.tar.zst
cuberite-92e0ba66459af6a5ac7ef53fb24a681db100f901.zip
Diffstat (limited to 'source/cMonster.h')
-rw-r--r--source/cMonster.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cMonster.h b/source/cMonster.h
index 6523c2e52..90340311e 100644
--- a/source/cMonster.h
+++ b/source/cMonster.h
@@ -35,7 +35,7 @@ public:
virtual void CheckEventSeePlayer();
virtual void EventSeePlayer(cEntity *);
float m_SightDistance;
- static void ListClosePlayers(cMonster *);
+ virtual cPlayer *FindClosestPlayer(); //non static is easier. also virtual so other mobs can implement their own searching algo
virtual void GetMonsterConfig(const char* pm_name);
virtual void EventLosePlayer();
virtual void CheckEventLostPlayer();