Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2012-11-18 17:06:51 +0000
committerStijn Buys <ingar@osirion.org>2012-11-18 17:06:51 +0000
commit03ca8502bc9f54b85edfdf69a8b94a40613be892 (patch)
treefda322d108389b93052c2d40d675b5f798315c63 /src/core/gameinterface.h
parent4271b3007fe88c812f7057716aa257cd499e940f (diff)
Added a method to find players by id.
Diffstat (limited to 'src/core/gameinterface.h')
-rw-r--r--src/core/gameinterface.h3
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();