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>2008-02-17 18:59:52 +0000
committerStijn Buys <ingar@osirion.org>2008-02-17 18:59:52 +0000
commit982562fa19bb87a3dab352e562f386f61c171b7b (patch)
treeaeade8d5b7d3c68f5c222af1d8ecc6a734e1b43f /src/core/player.h
parentd198b7b8d9ff713d891f35ab173d1f428f610e7d (diff)
major rewrite of Cvar, Func and Entity
Diffstat (limited to 'src/core/player.h')
-rw-r--r--src/core/player.h23
1 files changed, 15 insertions, 8 deletions
diff --git a/src/core/player.h b/src/core/player.h
index aa20d20..e19b8ae 100644
--- a/src/core/player.h
+++ b/src/core/player.h
@@ -27,21 +27,28 @@ public:
~Player();
/// name of the player
- std::string name;
-
- /// core id of the player
- unsigned int id;
-
+ inline std::string const &name() const { return player_name; }
+
+ /// id of the player
+ inline unsigned int id() const { return player_id; }
+
+ /// id of the player
+ unsigned int player_id;
+
+ /// name of the player
+ std::string player_name;
+
+
/// dirty state
bool dirty;
/// the entity the Player is currently controling
EntityControlable *control;
+
+ /// the local player
+ static Player local;
};
-/// the local player, always has id 0
-extern Player localplayer;
-
}
#endif // __INCLUDED_CORE_PLAYER_H__