diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-29 19:36:51 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-29 19:36:51 +0000 |
commit | ceedc716cb0fe1e0360d2dd9e37a67ff726c4f0b (patch) | |
tree | c09228a09ea78a735c13d371659420fb3e51e754 /src/core/entity.h | |
parent | 8b356bcd3cab06db7a47f464bffef7a1b62f2d30 (diff) |
first attempt at auto-leveling
Diffstat (limited to 'src/core/entity.h')
-rw-r--r-- | src/core/entity.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/entity.h b/src/core/entity.h index ca2d029..2515796 100644 --- a/src/core/entity.h +++ b/src/core/entity.h @@ -286,6 +286,9 @@ public: /// serialize a server-to-client update on a stream virtual void serialize_server_update(std::ostream & os) const; + /// autolevel mode + bool autolevel() const { return entity_autolevel; } + /*----- mutators -------------------------------------------------- */ @@ -300,6 +303,9 @@ public: /// set the target direction void set_direction(float direction); + + /// set autolevel request + void set_autolevel(bool autolevel); /// set the target pitch void set_pitch(float pitch); @@ -336,7 +342,7 @@ public: private: // owner of the entity Player *entity_owner; - + bool entity_autolevel; }; /// a Globe entity |