Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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;
};
}