diff options
Diffstat (limited to 'src/client/content_cao.h')
-rw-r--r-- | src/client/content_cao.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/client/content_cao.h b/src/client/content_cao.h index 783aa4199..8e5d04bfa 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 u16 getHp() const + { + return m_hp; + } + bool isImmortal() const; inline const ObjectProperties &getProperties() const { return m_prop; } @@ -210,6 +225,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; @@ -230,6 +255,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(); @@ -284,5 +310,16 @@ public: return m_prop.infotext; } + float m_waiting_for_reattach; + + ObjectProperties *getProperties() + { + return &m_prop; + } + + void setProperties(ObjectProperties newprops); + void updateMeshCulling(); + + std::vector<std::string> nametag_images = {}; }; |