aboutsummaryrefslogtreecommitdiff
path: root/src/content_cao.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/content_cao.h')
-rw-r--r--src/content_cao.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/content_cao.h b/src/content_cao.h
index 69e2e54a2..299d6c73e 100644
--- a/src/content_cao.h
+++ b/src/content_cao.h
@@ -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"
@@ -61,7 +60,6 @@ private:
std::string m_name;
bool m_is_player;
bool m_is_local_player;
- int m_id;
// Property-ish things
ObjectProperties m_prop;
//
@@ -72,6 +70,7 @@ private:
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;
@@ -87,6 +86,7 @@ private:
v2s32 m_animation_range;
int m_animation_speed;
int m_animation_blend;
+ bool m_animation_loop;
std::map<std::string, core::vector2d<v3f> > m_bone_position; // stores position and rotation for each bone name
std::string m_attachment_bone;
v3f m_attachment_position;
@@ -115,7 +115,7 @@ public:
return new GenericCAO(gamedef, env);
}
- inline u8 getType() const
+ inline ActiveObjectType getType() const
{
return ACTIVEOBJECT_TYPE_GENERIC;
}
@@ -162,6 +162,8 @@ public:
m_is_visible = toset;
}
+ void setChildrenVisible(bool toset);
+
void setAttachments();
void removeFromScene(bool permanent);
@@ -176,6 +178,8 @@ public:
void updateLight(u8 light_at_pos);
+ void updateLightNoCheck(u8 light_at_pos);
+
v3s16 getLightPosition();
void updateNodePos();