diff options
Diffstat (limited to 'src/client/content_cao.h')
-rw-r--r-- | src/client/content_cao.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/client/content_cao.h b/src/client/content_cao.h index 7c134fb48..09c26bd9c 100644 --- a/src/client/content_cao.h +++ b/src/client/content_cao.h @@ -172,6 +172,21 @@ public: inline const v3f &getRotation() const { return m_rotation; } + inline const v3f getAcceleration() const + { + return m_acceleration; + } + + inline const v3f getVelocity() const + { + return m_velocity; + } + + inline const u16 getHp() const + { + return m_hp; + } + const bool isImmortal(); scene::ISceneNode *getSceneNode() const; @@ -208,6 +223,16 @@ public: return m_is_local_player; } + inline std::string getName() const + { + return m_name; + } + + inline bool isPlayer() const + { + return m_is_player; + } + inline bool isVisible() const { return m_is_visible; @@ -228,6 +253,7 @@ public: void addAttachmentChild(int child_id); void removeAttachmentChild(int child_id); ClientActiveObject *getParent() const; + int getParentId() const { return m_attachment_parent_id; } const std::unordered_set<int> &getAttachmentChildIds() const { return m_attachment_child_ids; } void updateAttachments(); @@ -281,6 +307,13 @@ public: { return m_prop.infotext; } + + float m_waiting_for_reattach; + + ObjectProperties *getProperties() + { + return &m_prop; + } void updateMeshCulling(); }; |