diff options
Diffstat (limited to 'src/localplayer.h')
-rw-r--r-- | src/localplayer.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/localplayer.h b/src/localplayer.h index 38e7a4cd9..bfe476b70 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <list> class Environment; - +class GenericCAO; class ClientActiveObject; enum LocalPlayerAnimations {NO_ANIM, WALK_ANIM, DIG_ANIM, WD_ANIM}; // no local animation, walking, digging, both @@ -62,7 +62,6 @@ public: unsigned int last_keyPressed; float camera_impact; - int camera_mode; v3f eye_offset_first; v3f eye_offset_third; @@ -72,6 +71,15 @@ public: std::string hotbar_image; std::string hotbar_selected_image; + GenericCAO* getCAO() const { + return m_cao; + } + + void setCAO(GenericCAO* toset) { + assert( m_cao == NULL ); + m_cao = toset; + } + private: // This is used for determining the sneaking range v3s16 m_sneak_node; @@ -84,6 +92,8 @@ private: // Whether recalculation of the sneak node is needed bool m_need_to_get_new_sneak_node; bool m_can_jump; + + GenericCAO* m_cao; }; #endif |