diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-26 19:20:00 +0100 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-26 19:20:00 +0100 |
commit | 92e0ba66459af6a5ac7ef53fb24a681db100f901 (patch) | |
tree | a0a882edd2337178634701141856bc9c131f342c /source/cMonster.h | |
parent | GameMode Switch added to Core Functions (/gm 0 | /gm 1) needs permission core.changegm (diff) | |
download | cuberite-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 '')
-rw-r--r-- | source/cMonster.h | 2 |
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();
|