]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/content_cao.h
Cavegen: Minor misc. fixes
[dragonfireclient.git] / src / content_cao.h
index 299d6c73e0a54a34b77d541c5a2526521d17fa88..bf99fd3bafd0b323cbdb71d41918cb4ca92772f9 100644 (file)
@@ -26,6 +26,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "object_properties.h"
 #include "itemgroup.h"
 
+class Camera;
+struct Nametag;
+
 /*
        SmoothTranslator
 */
@@ -65,13 +68,13 @@ class GenericCAO : public ClientActiveObject
        //
        scene::ISceneManager *m_smgr;
        IrrlichtDevice *m_irr;
-       core::aabbox3d<f32> m_selection_box;
+       IGameDef *m_gamedef;
+       aabb3f m_selection_box;
        scene::IMeshSceneNode *m_meshnode;
        scene::IAnimatedMeshSceneNode *m_animated_meshnode;
        WieldMeshSceneNode *m_wield_meshnode;
        scene::IBillboardSceneNode *m_spritenode;
-       video::SColor m_nametag_color;
-       scene::ITextSceneNode* m_textnode;
+       Nametag* m_nametag;
        v3f m_position;
        v3f m_velocity;
        v3f m_acceleration;
@@ -128,7 +131,7 @@ class GenericCAO : public ClientActiveObject
 
        bool collideWithObjects();
 
-       core::aabbox3d<f32>* getSelectionBox();
+       aabb3f *getSelectionBox();
 
        v3f getPosition();
 
@@ -202,6 +205,11 @@ class GenericCAO : public ClientActiveObject
                        float time_from_last_punch=1000000);
 
        std::string debugInfoText();
+
+       std::string infoText()
+       {
+               return m_prop.infotext;
+       }
 };