Changeset 8852
- Timestamp:
- Aug 21, 2011, 11:10:54 PM (13 years ago)
- Location:
- code/branches/ai2/src/orxonox/worldentities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/orxonox/worldentities/ControllableEntity.cc
r8733 r8852 67 67 this->camera_ = 0; 68 68 this->xmlcontroller_ = 0; 69 this->controller_ = 0;69 //this->controller_ = 0; 70 70 this->reverseCamera_ = 0; 71 71 this->bDestroyWhenPlayerLeft_ = false; … … 190 190 return counter; 191 191 } 192 192 193 193 bool ControllableEntity::setCameraPosition(unsigned int index) 194 194 { … … 310 310 } 311 311 312 void ControllableEntity::setController(Controller* val) 313 { 314 this->controller_ = val; 315 } 316 312 317 void ControllableEntity::setTarget( WorldEntity* target ) 313 318 { -
code/branches/ai2/src/orxonox/worldentities/ControllableEntity.h
r8733 r8852 99 99 */ 100 100 virtual void boost(bool bBoost) {} 101 101 102 102 virtual void greet() {} 103 103 virtual void switchCamera(); … … 155 155 156 156 inline Controller* getController() const 157 { return this->controller_ ; }158 inline void setController(Controller* val)159 { this->controller_ = val; } 157 { return this->controller_.get(); } 158 void setController(Controller* val); 159 160 160 161 161 virtual void setTarget( WorldEntity* target ); … … 237 237 std::string cameraPositionTemplate_; 238 238 Controller* xmlcontroller_; 239 Controller*controller_;239 WeakPtr<Controller> controller_; 240 240 CameraPosition* reverseCamera_; 241 241 WeakPtr<WorldEntity> target_; 242 WeakPtr<Controller> test_; 242 243 }; 243 244 } -
code/branches/ai2/src/orxonox/worldentities/pawns/Pawn.h
r8706 r8852 195 195 float maxHealth_; 196 196 float initialHealth_; 197 197 198 198 float shieldHealth_; 199 199 float maxShieldHealth_;
Note: See TracChangeset
for help on using the changeset viewer.