]> git.lizzy.rs Git - minetest.git/blobdiff - src/content_cao.h
dofile error reporting for syntax errors
[minetest.git] / src / content_cao.h
index bf27ed79ad8c3eac09cf50a9559c6ce46d623b54..36245bd3b0cfa74e2bed8aea9fac1a610889c171 100644 (file)
@@ -22,7 +22,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include <map>
 #include "irrlichttypes_extrabloated.h"
-#include "content_object.h"
 #include "clientobject.h"
 #include "object_properties.h"
 #include "itemgroup.h"
@@ -70,7 +69,9 @@ class GenericCAO : public ClientActiveObject
        core::aabbox3d<f32> 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;
        v3f m_position;
        v3f m_velocity;
@@ -114,7 +115,7 @@ class GenericCAO : public ClientActiveObject
                return new GenericCAO(gamedef, env);
        }
 
-       inline u8 getType() const
+       inline ActiveObjectType getType() const
        {
                return ACTIVEOBJECT_TYPE_GENERIC;
        }
@@ -131,10 +132,14 @@ class GenericCAO : public ClientActiveObject
 
        v3f getPosition();
 
+       scene::ISceneNode *getSceneNode();
+
        scene::IMeshSceneNode *getMeshSceneNode();
 
        scene::IAnimatedMeshSceneNode *getAnimatedMeshSceneNode();
 
+       WieldMeshSceneNode *getWieldMeshSceneNode();
+
        scene::IBillboardSceneNode *getSpriteSceneNode();
 
        inline bool isPlayer() const
@@ -197,4 +202,3 @@ class GenericCAO : public ClientActiveObject
 
 
 #endif
-