Changeset 3196 for code/trunk/src/orxonox/objects/weaponsystem
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/weaponsystem/DefaultWeaponmodeLink.cc
r3110 r3196 31 31 #include "core/CoreIncludes.h" 32 32 #include "core/XMLPort.h" 33 34 33 #include "WeaponSystem.h" 35 34 -
code/trunk/src/orxonox/objects/weaponsystem/Munition.cc
r3110 r3196 29 29 30 30 #include "Munition.h" 31 32 31 #include "core/CoreIncludes.h" 33 32 -
code/trunk/src/orxonox/objects/weaponsystem/Munition.h
r3053 r3196 34 34 35 35 #include <map> 36 37 36 #include "core/BaseObject.h" 38 37 #include "tools/Timer.h" -
code/trunk/src/orxonox/objects/weaponsystem/MuzzleFlash.cc
r3110 r3196 30 30 #include "MuzzleFlash.h" 31 31 32 #include "core/GameMode.h"33 32 #include "core/CoreIncludes.h" 34 #include "core/XMLPort.h" 35 #include "util/Math.h" 33 #include "core/Executor.h" 36 34 37 35 namespace orxonox … … 42 40 { 43 41 RegisterObject(MuzzleFlash); 44 this->setScale(0.1 );42 this->setScale(0.1f); 45 43 46 44 this->delayTimer_.setTimer(0.1f, false, this, createExecutor(createFunctor(&MuzzleFlash::destroy))); -
code/trunk/src/orxonox/objects/weaponsystem/MuzzleFlash.h
r3053 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 #include "tools/Timer.h" 33 35 #include "objects/worldentities/Billboard.h" 34 #include "tools/Timer.h"35 36 36 37 37 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/Weapon.h
r3053 r3196 32 32 33 33 #include "OrxonoxPrereqs.h" 34 35 #include <map> 36 #include "tools/Timer.h" 34 37 #include "objects/worldentities/StaticEntity.h" 35 36 #include "tools/Timer.h"37 38 38 39 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/WeaponMode.h
r3053 r3196 32 32 33 33 #include "OrxonoxPrereqs.h" 34 35 #include <string> 36 #include "util/Math.h" 34 37 #include "core/BaseObject.h" 35 38 #include "core/Identifier.h" 36 39 #include "tools/Timer.h" 37 #include "core/Identifier.h"38 #include "util/Math.h"39 40 40 41 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/WeaponPack.cc
r3110 r3196 31 31 #include "core/CoreIncludes.h" 32 32 #include "core/XMLPort.h" 33 #include "objects/worldentities/pawns/Pawn.h"34 33 35 34 #include "Weapon.h" 36 #include "WeaponSlot.h"37 35 #include "WeaponSystem.h" 38 36 #include "DefaultWeaponmodeLink.h" -
code/trunk/src/orxonox/objects/weaponsystem/WeaponPack.h
r3053 r3196 34 34 35 35 #include <set> 36 37 36 #include "core/BaseObject.h" 38 37 -
code/trunk/src/orxonox/objects/weaponsystem/WeaponSet.h
r3053 r3196 34 34 35 35 #include <map> 36 37 36 #include "core/BaseObject.h" 38 37 -
code/trunk/src/orxonox/objects/weaponsystem/WeaponSystem.h
r3053 r3196 33 33 #include "OrxonoxPrereqs.h" 34 34 35 #include <map> 35 36 #include <set> 36 #include <map>37 37 #include <vector> 38 39 38 #include "core/BaseObject.h" 40 39 -
code/trunk/src/orxonox/objects/weaponsystem/munitions/FusionMunition.cc
r3110 r3196 28 28 29 29 #include "FusionMunition.h" 30 31 30 #include "core/CoreIncludes.h" 32 31 -
code/trunk/src/orxonox/objects/weaponsystem/munitions/LaserMunition.cc
r3110 r3196 28 28 29 29 #include "LaserMunition.h" 30 31 30 #include "core/CoreIncludes.h" 32 31 -
code/trunk/src/orxonox/objects/weaponsystem/munitions/ReplenishingMunition.cc
r3110 r3196 28 28 29 29 #include "ReplenishingMunition.h" 30 31 30 #include "core/CoreIncludes.h" 32 31 -
code/trunk/src/orxonox/objects/weaponsystem/munitions/ReplenishingMunition.h
r3053 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 #include "tools/Timer.h" 33 35 #include "objects/weaponsystem/Munition.h" 34 #include "tools/Timer.h"35 36 36 37 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/projectiles/BillboardProjectile.cc
r3110 r3196 29 29 #include "BillboardProjectile.h" 30 30 31 #include <OgreBillboardSet.h> 32 31 #include "core/CoreIncludes.h" 33 32 #include "core/GameMode.h" 34 #include "core/CoreIncludes.h"35 33 #include "objects/Scene.h" 36 34 … … 46 44 { 47 45 assert(this->getScene()->getSceneManager()); // getScene() was already checked by WorldEntity 48 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(0.5 , 0.5, 0.7, 0.8), 1);46 this->billboard_.setBillboardSet(this->getScene()->getSceneManager(), "Examples/Flare", ColourValue(0.5f, 0.5f, 0.7f, 0.8f), 1); 49 47 this->attachOgreObject(this->billboard_.getBillboardSet()); 50 48 } -
code/trunk/src/orxonox/objects/weaponsystem/projectiles/BillboardProjectile.h
r3053 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "util/Math.h" 35 #include "tools/BillboardSet.h" 34 36 #include "Projectile.h" 35 #include "tools/BillboardSet.h"36 #include "util/Math.h"37 37 38 38 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/projectiles/LightningGunProjectile.cc
r3110 r3196 29 29 #include "LightningGunProjectile.h" 30 30 31 #include <OgreBillboardSet.h> 32 33 #include "core/GameMode.h" 31 #include "util/Convert.h" 34 32 #include "core/CoreIncludes.h" 35 #include "objects/Scene.h"36 #include "util/Convert.h"37 33 38 34 namespace orxonox … … 46 42 this->textureIndex_ = 1; 47 43 this->maxTextureIndex_ = 8; 48 this->textureTimer_.setTimer(0.01 , true, this, createExecutor(createFunctor(&LightningGunProjectile::changeTexture)));44 this->textureTimer_.setTimer(0.01f, true, this, createExecutor(createFunctor(&LightningGunProjectile::changeTexture))); 49 45 50 46 registerVariables(); -
code/trunk/src/orxonox/objects/weaponsystem/projectiles/LightningGunProjectile.h
r3088 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include <string> 34 35 #include "tools/Timer.h" 35 36 36 #include "BillboardProjectile.h" 37 37 -
code/trunk/src/orxonox/objects/weaponsystem/projectiles/ParticleProjectile.cc
r3110 r3196 29 29 #include "ParticleProjectile.h" 30 30 31 #include <OgreParticleSystem.h>32 31 #include <OgreParticleEmitter.h> 33 34 #include "core/GameMode.h" 32 #include "tools/ParticleInterface.h" 35 33 #include "core/CoreIncludes.h" 36 #include "core/ConfigValueIncludes.h"37 34 #include "objects/Scene.h" 38 35 -
code/trunk/src/orxonox/objects/weaponsystem/projectiles/ParticleProjectile.h
r3053 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 33 #include "BillboardProjectile.h" 35 #include "tools/ParticleInterface.h"36 #include "util/Math.h"37 34 38 35 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/projectiles/Projectile.cc
r3110 r3196 29 29 #include "Projectile.h" 30 30 31 #include <OgreBillboard.h>32 33 31 #include "core/CoreIncludes.h" 32 #include "core/ConfigValueIncludes.h" 34 33 #include "core/Executor.h" 35 #include "core/ConfigValueIncludes.h" 36 #include "core/Iterator.h" 37 #include "tools/ParticleInterface.h" 38 39 #include "objects/worldentities/Model.h" 34 #include "core/GameMode.h" 35 #include "objects/collisionshapes/SphereCollisionShape.h" 36 #include "objects/worldentities/pawns/Pawn.h" 40 37 #include "objects/worldentities/ParticleSpawner.h" 41 #include "objects/collisionshapes/SphereCollisionShape.h"42 #include "core/GameMode.h"43 38 44 39 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/projectiles/Projectile.h
r3053 r3196 32 32 #include "OrxonoxPrereqs.h" 33 33 34 #include "tools/Timer.h" 35 #include "interfaces/PawnListener.h" 34 36 #include "objects/worldentities/MovableEntity.h" 35 #include "objects/worldentities/pawns/Pawn.h"36 #include "tools/Timer.h"37 37 38 38 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.cc
r3110 r3196 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/Executor.h" 32 33 #include "core/XMLPort.h" 33 #include "objects/weaponsystem/projectiles/ParticleProjectile.h"34 34 #include "objects/worldentities/Model.h" 35 36 #include "objects/weaponsystem/projectiles/Projectile.h" 35 37 #include "objects/weaponsystem/MuzzleFlash.h" 36 37 38 #include "objects/weaponsystem/Weapon.h" 38 39 #include "objects/weaponsystem/WeaponPack.h" … … 69 70 { 70 71 this->material_ = material; 71 }72 73 std::string& EnergyDrink::getMaterial()74 {75 return this->material_;76 72 } 77 73 -
code/trunk/src/orxonox/objects/weaponsystem/weaponmodes/EnergyDrink.h
r3053 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 #include <string> 35 #include "tools/Timer.h" 33 36 #include "objects/weaponsystem/WeaponMode.h" 34 #include "tools/Timer.h"35 37 36 38 namespace orxonox … … 47 49 private: 48 50 void setMaterial(const std::string& material); 49 std::string& getMaterial(); 51 inline const std::string& getMaterial() 52 { return this->material_; } 50 53 void setDelay(float d); 51 54 float getDelay() const; -
code/trunk/src/orxonox/objects/weaponsystem/weaponmodes/FusionFire.cc
r3110 r3196 29 29 #include "FusionFire.h" 30 30 31 #include "util/Math.h" 31 32 #include "core/CoreIncludes.h" 32 33 #include "objects/weaponsystem/projectiles/BillboardProjectile.h" -
code/trunk/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.cc
r3110 r3196 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/Executor.h" 32 33 #include "core/XMLPort.h" 33 #include "objects/weaponsystem/projectiles/ParticleProjectile.h"34 34 #include "objects/worldentities/Model.h" 35 36 #include "objects/weaponsystem/projectiles/Projectile.h" 35 37 #include "objects/weaponsystem/MuzzleFlash.h" 36 37 38 #include "objects/weaponsystem/Weapon.h" 38 39 #include "objects/weaponsystem/WeaponPack.h" -
code/trunk/src/orxonox/objects/weaponsystem/weaponmodes/HsW01.h
r3053 r3196 31 31 32 32 #include "OrxonoxPrereqs.h" 33 34 #include "tools/Timer.h" 33 35 #include "objects/weaponsystem/WeaponMode.h" 34 #include "tools/Timer.h"35 36 36 37 namespace orxonox -
code/trunk/src/orxonox/objects/weaponsystem/weaponmodes/LaserFire.cc
r3110 r3196 31 31 #include "core/CoreIncludes.h" 32 32 #include "objects/weaponsystem/projectiles/ParticleProjectile.h" 33 34 33 #include "objects/weaponsystem/Weapon.h" 35 34 #include "objects/weaponsystem/WeaponPack.h" -
code/trunk/src/orxonox/objects/weaponsystem/weaponmodes/LightningGun.cc
r3110 r3196 30 30 31 31 #include "core/CoreIncludes.h" 32 33 #include "objects/worldentities/Billboard.h" 34 32 #include "objects/weaponsystem/projectiles/LightningGunProjectile.h" 35 33 #include "objects/weaponsystem/Weapon.h" 36 34 #include "objects/weaponsystem/WeaponPack.h" 37 35 #include "objects/weaponsystem/WeaponSystem.h" 38 39 #include "objects/weaponsystem/projectiles/LightningGunProjectile.h"40 41 #include "util/Math.h"42 36 43 37 namespace orxonox
Note: See TracChangeset
for help on using the changeset viewer.