Changeset 8980 for code/branches/presentation2011/src/orxonox/worldentities
- Timestamp:
- Dec 14, 2011, 2:38:37 PM (13 years ago)
- Location:
- code/branches/presentation2011
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2011
- Property svn:mergeinfo changed
/code/branches/gamecontent (added) merged: 8893,8895,8899-8901,8904,8907,8909-8910,8922-8924,8930,8932,8941-8942,8950-8951,8956
- Property svn:mergeinfo changed
-
code/branches/presentation2011/src/orxonox/worldentities/ControllableEntity.cc
r8891 r8980 74 74 this->bMouseLook_ = false; 75 75 this->mouseLookSpeed_ = 200; 76 this->bIsRocket_ = false;77 76 78 77 this->server_position_ = Vector3::ZERO; … … 88 87 this->setPriority( Priority::VeryHigh ); 89 88 this->registerVariables(); 89 this->team_ = -1; 90 90 } 91 91 … … 120 120 SUPER(ControllableEntity, XMLPort, xmlelement, mode); 121 121 122 XMLPortParam(ControllableEntity, "team", setTeam, getTeam, xmlelement, mode).defaultValues(-1); 122 123 XMLPortParam(ControllableEntity, "hudtemplate", setHudTemplate, getHudTemplate, xmlelement, mode); 123 124 XMLPortParam(ControllableEntity, "camerapositiontemplate", setCameraPositionTemplate, getCameraPositionTemplate, xmlelement, mode); -
code/branches/presentation2011/src/orxonox/worldentities/ControllableEntity.h
r8891 r8980 163 163 { return this->target_.get(); } 164 164 void setTargetInternal( uint32_t targetID ); 165 inline bool getRocket() const 166 { return this-> bIsRocket_; } 165 166 inline void setTeam(int team) 167 { this->team_ = team; } 168 inline float getTeam() const 169 { return this->team_; } 167 170 168 171 protected: … … 183 186 184 187 Ogre::SceneNode* cameraPositionRootNode_; 185 bool bIsRocket_; //Workaround to see, if the controllable entity is a Rocket.186 188 187 189 private: … … 240 242 CameraPosition* reverseCamera_; 241 243 WeakPtr<WorldEntity> target_; 244 245 int team_ ; //<! teamnumber 242 246 }; 243 247 } -
code/branches/presentation2011/src/orxonox/worldentities/pawns/Pawn.cc
r8891 r8980 129 129 XMLPortParam(Pawn, "reloadrate", setReloadRate, getReloadRate, xmlelement, mode).defaultValues(0); 130 130 XMLPortParam(Pawn, "reloadwaittime", setReloadWaitTime, getReloadWaitTime, xmlelement, mode).defaultValues(1.0f); 131 132 131 133 } 132 134 … … 455 457 SUPER(Pawn, changedActivity); 456 458 457 this->setRadarVisibility(this->is Active());459 this->setRadarVisibility(this->isVisible()); 458 460 } 459 461 -
code/branches/presentation2011/src/orxonox/worldentities/pawns/Pawn.h
r8891 r8980 53 53 inline bool isAlive() const 54 54 { return this->bAlive_; } 55 55 56 56 57 virtual void setHealth(float health); … … 194 195 { return NULL; } 195 196 197 196 198 float health_; 197 199 float maxHealth_;
Note: See TracChangeset
for help on using the changeset viewer.