Changeset 3301 for code/trunk/src/orxonox/objects
- Timestamp:
- Jul 18, 2009, 4:03:59 PM (15 years ago)
- Location:
- code/trunk/src/orxonox/objects
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/Scene.cc
r3280 r3301 325 325 { 326 326 // get the WorldEntity pointers 327 WorldEntity* object0 = (WorldEntity*)colObj0->getUserPointer();327 WorldEntity* object0 = static_cast<WorldEntity*>(colObj0->getUserPointer()); 328 328 assert(dynamic_cast<WorldEntity*>(object0)); 329 WorldEntity* object1 = (WorldEntity*)colObj1->getUserPointer();329 WorldEntity* object1 = static_cast<WorldEntity*>(colObj1->getUserPointer()); 330 330 assert(dynamic_cast<WorldEntity*>(object1)); 331 331 -
code/trunk/src/orxonox/objects/collisionshapes/CollisionShape.h
r2662 r3301 63 63 virtual void setScale3D(const Vector3& scale); 64 64 virtual void setScale(float scale); 65 inline const Vector3& getScale3D( void) const65 inline const Vector3& getScale3D() const 66 66 { return this->scale_; } 67 67 -
code/trunk/src/orxonox/objects/controllers/WaypointPatrolController.cc
r3196 r3301 85 85 86 86 Vector3 myposition = this->getControllableEntity()->getPosition(); 87 float shortestsqdistance = (unsigned int)-1;87 float shortestsqdistance = static_cast<unsigned int>(-1); 88 88 89 89 for (ObjectList<Pawn>::iterator it = ObjectList<Pawn>::begin(); it != ObjectList<Pawn>::end(); ++it) -
code/trunk/src/orxonox/objects/gametypes/TeamDeathmatch.cc
r3300 r3301 74 74 playersperteam[it->second]++; 75 75 76 unsigned int minplayers = (unsigned int)-1;76 unsigned int minplayers = static_cast<unsigned int>(-1); 77 77 size_t minplayersteam = 0; 78 78 for (size_t i = 0; i < this->teams_; ++i) -
code/trunk/src/orxonox/objects/gametypes/UnderAttack.cc
r3300 r3301 51 51 52 52 this->setConfigValues(); 53 this->timesequence_ = static_cast< this->gameTime_);53 this->timesequence_ = static_cast<int>(this->gameTime_); 54 54 } 55 55 -
code/trunk/src/orxonox/objects/weaponsystem/Munition.cc
r3196 r3301 354 354 return false; 355 355 356 if (amount <= (unsigned int)needed_magazines)356 if (amount <= static_cast<unsigned int>(needed_magazines)) 357 357 { 358 358 // We need more magazines than we get, so just add them -
code/trunk/src/orxonox/objects/weaponsystem/WeaponSystem.h
r3196 r3301 84 84 85 85 static const unsigned int MAX_FIRE_MODES = 8; 86 static const unsigned int FIRE_MODE_UNASSIGNED = (unsigned int)-1;86 static const unsigned int FIRE_MODE_UNASSIGNED = static_cast<unsigned int>(-1); 87 87 88 88 static const unsigned int MAX_WEAPON_MODES = 8; 89 static const unsigned int WEAPON_MODE_UNASSIGNED = (unsigned int)-1;89 static const unsigned int WEAPON_MODE_UNASSIGNED = static_cast<unsigned int>(-1); 90 90 91 91 private: -
code/trunk/src/orxonox/objects/worldentities/ParticleEmitter.h
r3300 r3301 66 66 { this->LOD_ = static_cast<LODParticle::Value>(level); this->LODchanged(); } 67 67 inline unsigned int getLODxml() const 68 { return (unsigned int)this->LOD_; }68 { return static_cast<unsigned int>(this->LOD_); } 69 69 70 70 void sourceChanged(); -
code/trunk/src/orxonox/objects/worldentities/WorldEntity.h
r3196 r3301 148 148 inline void setScale3D(float x, float y, float z) 149 149 { this->setScale3D(Vector3(x, y, z)); } 150 const Vector3& getScale3D( void) const;150 const Vector3& getScale3D() const; 151 151 const Vector3& getWorldScale3D() const; 152 152 … … 457 457 inline const Quaternion& WorldEntity::getOrientation() const 458 458 { return this->node_->getOrientation(); } 459 inline const Vector3& WorldEntity::getScale3D( void) const459 inline const Vector3& WorldEntity::getScale3D() const 460 460 { return this->node_->getScale(); } 461 461 #endif
Note: See TracChangeset
for help on using the changeset viewer.