diff options
author | Stijn Buys <ingar@osirion.org> | 2012-11-18 17:06:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2012-11-18 17:06:51 +0000 |
commit | 03ca8502bc9f54b85edfdf69a8b94a40613be892 (patch) | |
tree | fda322d108389b93052c2d40d675b5f798315c63 /src/core/gameinterface.h | |
parent | 4271b3007fe88c812f7057716aa257cd499e940f (diff) |
Added a method to find players by id.
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r-- | src/core/gameinterface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/gameinterface.h b/src/core/gameinterface.h index d99903f..f118ad3 100644 --- a/src/core/gameinterface.h +++ b/src/core/gameinterface.h @@ -49,6 +49,9 @@ public: /// find the first player who's id or name matches the search string Player *find_player(const std::string &search); + + /// find a player id + Player *find_player(const int playerid); /// show a list of connected players void list_players(); |