diff options
Diffstat (limited to 'src/core/player.h')
-rw-r--r-- | src/core/player.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/player.h b/src/core/player.h index 7bf533c..aa31a35 100644 --- a/src/core/player.h +++ b/src/core/player.h @@ -67,6 +67,9 @@ public: /// player has been muted by admin or console inline bool mute() const { return player_mute; } + /// mission target + inline Entity *mission_target() { return player_mission_target; } + /*----- mutators -------------------------------------------------- */ /// serialize player info to a stream @@ -99,6 +102,8 @@ public: /// update player info from client variables void update_info(); + void set_mission_target(Entity *new_mission_target); + /* -- should actually not be public --*/ /// dirty state @@ -131,10 +136,12 @@ private: // the entity the Player is currently controling EntityControlable *player_control; + Entity *player_mission_target; + // the zone the player is currently in Zone *player_zone; - + float player_credits; }; } |