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-21 19:06:15 +0000
committerStijn Buys <ingar@osirion.org>2008-02-21 19:06:15 +0000
commit8aa04fc836116a58f8ffd1e0c3539b9ea8a94ddf (patch)
treebb933edb3919ed67d05b098a6b97a73f01746762 /src/core/player.h
parent41ad1e4c9e2a70d0a8811f4b035f0d3018045e61 (diff)
dedicated server, entity transfer
Diffstat (limited to 'src/core/player.h')
-rw-r--r--src/core/player.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/core/player.h b/src/core/player.h
index 11711b5..fd4053c 100644
--- a/src/core/player.h
+++ b/src/core/player.h
@@ -35,17 +35,26 @@ public:
/// id of the player
inline int id() const { return player_id; }
+ /// dirty flag
+ inline bool dirty() const { return player_dirty; }
+
/// id of the player
int player_id;
/// name of the player
std::string player_name;
- /// dirty state
- bool dirty;
-
/// the entity the Player is currently controling
EntityControlable *control;
+
+ /// serialize player info to a stream
+ void serialize_server_update(std::ostream & os) const;
+
+ /// receive player info from a stream
+ void recieve_server_update(std::istream &is);
+
+ /// dirty state
+ bool player_dirty;
};
}