summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 13:21:21 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-02 13:21:21 +0200
commit14584f69e69ced03446dac6d30d033f63b4dc5a6 (patch)
tree59f127efa926d5c717f3be4ecc46c43c1e2a49cb /source/cWorld.h
parentChunkDef: Fixed getters taking a const ptr (diff)
downloadcuberite-14584f69e69ced03446dac6d30d033f63b4dc5a6.tar
cuberite-14584f69e69ced03446dac6d30d033f63b4dc5a6.tar.gz
cuberite-14584f69e69ced03446dac6d30d033f63b4dc5a6.tar.bz2
cuberite-14584f69e69ced03446dac6d30d033f63b4dc5a6.tar.lz
cuberite-14584f69e69ced03446dac6d30d033f63b4dc5a6.tar.xz
cuberite-14584f69e69ced03446dac6d30d033f63b4dc5a6.tar.zst
cuberite-14584f69e69ced03446dac6d30d033f63b4dc5a6.zip
Diffstat (limited to 'source/cWorld.h')
-rw-r--r--source/cWorld.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index b356bdf0a..f885bfd35 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -133,12 +133,12 @@ public:
/// Calls the callback for each player in the list; returns true if all players processed, false if the callback aborted by returning true
bool ForEachPlayer(cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS <<
+
+ /// Calls the callback for the player of the given name; returns true if the player was found and the callback called, false if player not found. Callback return ignored
+ bool DoWithPlayer(const AString & a_PlayerName, cPlayerListCallback & a_Callback); // >> EXPORTED IN MANUALBINDINGS <<
unsigned int GetNumPlayers(); //tolua_export
- // 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);