Changeset 1993 for code/branches/objecthierarchy/src/orxonox/objects/worldentities/ControllableEntity.h
- Timestamp:
- Oct 22, 2008, 5:25:01 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/worldentities/ControllableEntity.h
r1989 r1993 52 52 { return this->player_; } 53 53 54 inline void setDestroyWhenPlayerLeft(bool bDestroy) 55 { this->bDestroyWhenPlayerLeft_ = bDestroy; } 56 inline bool getDestroyWhenPlayerLeft() const 57 { return this->bDestroyWhenPlayerLeft_; } 58 54 59 virtual void startLocalControl(); 55 60 virtual void stopLocalControl(); … … 70 75 virtual void switchCamera() {} 71 76 77 inline const Vector3& getVelocity() const 78 { return this->velocity_; } 79 inline const Vector3& getAcceleration() const 80 { return this->acceleration_; } 81 inline const std::string& getHudTemplate() const 82 { return this->hudtemplate_; } 83 72 84 protected: 73 85 using WorldEntity::setPosition; … … 75 87 using WorldEntity::setOrientation; 76 88 using WorldEntity::rotate; 89 using WorldEntity::yaw; 90 using WorldEntity::pitch; 91 using WorldEntity::roll; 77 92 using WorldEntity::lookAt; 78 93 using WorldEntity::setDirection; … … 91 106 inline void setVelocity(float x, float y, float z) 92 107 { this->velocity_.x = x; this->velocity_.y = y; this->velocity_.z = z; } 93 inline const Vector3& getVelocity() const94 { return this->velocity_; }95 108 96 109 inline void setAcceleration(const Vector3& acceleration) … … 98 111 inline void setAcceleration(float x, float y, float z) 99 112 { this->acceleration_.x = x; this->acceleration_.y = y; this->acceleration_.z = z; } 100 inline const Vector3& getAcceleration() const 101 { return this->acceleration_; } 113 114 inline void setHudTemplate(const std::string& name) 115 { this->hudtemplate_ = name; } 102 116 103 117 private: 104 inline void setHudTemplate(const std::string& name)105 { this->hudtemplate_ = name; }106 inline const std::string& getHudTemplate() const107 { return this->hudtemplate_; }108 109 118 void overwrite(); 110 119 void processOverwrite(); … … 139 148 OverlayGroup* hud_; 140 149 Camera* camera_; 150 bool bDestroyWhenPlayerLeft_; 141 151 }; 142 152 }
Note: See TracChangeset
for help on using the changeset viewer.