summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-14 22:09:14 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-14 22:09:14 +0100
commit19e711a1e3f631079c9c8eef93fe4d62a7e801cd (patch)
tree53a75e7dc78aab570760e64a0e3cea5ee7b68289 /source/cWorld.h
parentGot rid of cWorld::GetAllPlayers() and implemented ForEachPlayer() more or less in Lua (diff)
downloadcuberite-19e711a1e3f631079c9c8eef93fe4d62a7e801cd.tar
cuberite-19e711a1e3f631079c9c8eef93fe4d62a7e801cd.tar.gz
cuberite-19e711a1e3f631079c9c8eef93fe4d62a7e801cd.tar.bz2
cuberite-19e711a1e3f631079c9c8eef93fe4d62a7e801cd.tar.lz
cuberite-19e711a1e3f631079c9c8eef93fe4d62a7e801cd.tar.xz
cuberite-19e711a1e3f631079c9c8eef93fe4d62a7e801cd.tar.zst
cuberite-19e711a1e3f631079c9c8eef93fe4d62a7e801cd.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index 146724262..b8c1391fd 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -82,9 +82,10 @@ public:
// >> EXPORTED IN MANUALBINDINGS <<
unsigned int GetNumPlayers(); //tolua_export
- // TODO: This interface is dangerous
+ // TODO: This interface is dangerous - rewrite to DoWithPlayer(playername, action)
cPlayer * GetPlayer( const char * a_PlayerName ); //tolua_export
+ // TODO: This interface is dangerous - rewrite to DoWithClosestPlayer(pos, sight, action)
cPlayer * FindClosestPlayer(const Vector3f & a_Pos, float a_SightLimit);
void SendPlayerList(cPlayer * a_DestPlayer); // Sends playerlist to the player