Changeset 9667 for code/trunk/src/orxonox/weaponsystem
- Timestamp:
- Aug 25, 2013, 9:08:42 PM (11 years ago)
- Location:
- code/trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/core6 merged: 9552-9554,9556-9574,9577-9579,9585-9593,9596-9612,9626-9662
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/weaponsystem/DefaultWeaponmodeLink.cc
r5781 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(DefaultWeaponmodeLink);37 RegisterClass(DefaultWeaponmodeLink); 38 38 39 DefaultWeaponmodeLink::DefaultWeaponmodeLink( BaseObject* creator) : BaseObject(creator)39 DefaultWeaponmodeLink::DefaultWeaponmodeLink(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(DefaultWeaponmodeLink); -
code/trunk/src/orxonox/weaponsystem/DefaultWeaponmodeLink.h
r5781 r9667 39 39 { 40 40 public: 41 DefaultWeaponmodeLink( BaseObject* creator);41 DefaultWeaponmodeLink(Context* context); 42 42 virtual ~DefaultWeaponmodeLink(); 43 43 -
code/trunk/src/orxonox/weaponsystem/Munition.cc
r8729 r9667 35 35 namespace orxonox 36 36 { 37 CreateFactory(Munition);38 39 Munition::Munition( BaseObject* creator) : BaseObject(creator)37 RegisterClass(Munition); 38 39 Munition::Munition(Context* context) : BaseObject(context) 40 40 { 41 41 RegisterObject(Munition); -
code/trunk/src/orxonox/weaponsystem/Munition.h
r7851 r9667 56 56 57 57 public: 58 Munition( BaseObject* creator);58 Munition(Context* context); 59 59 virtual ~Munition(); 60 60 -
code/trunk/src/orxonox/weaponsystem/Weapon.cc
r5929 r9667 39 39 namespace orxonox 40 40 { 41 CreateFactory(Weapon);41 RegisterClass(Weapon); 42 42 43 Weapon::Weapon( BaseObject* creator) : StaticEntity(creator)43 Weapon::Weapon(Context* context) : StaticEntity(context) 44 44 { 45 45 RegisterObject(Weapon); -
code/trunk/src/orxonox/weaponsystem/Weapon.h
r5929 r9667 42 42 { 43 43 public: 44 Weapon( BaseObject* creator);44 Weapon(Context* context); 45 45 virtual ~Weapon(); 46 46 -
code/trunk/src/orxonox/weaponsystem/WeaponMode.cc
r8858 r9667 45 45 namespace orxonox 46 46 { 47 WeaponMode::WeaponMode(BaseObject* creator) : BaseObject(creator) 47 RegisterAbstractClass(WeaponMode).inheritsFrom(Class(BaseObject)); 48 49 WeaponMode::WeaponMode(Context* context) : BaseObject(context) 48 50 { 49 51 RegisterObject(WeaponMode); … … 75 77 if( GameMode::isMaster() ) 76 78 { 77 this->defSndWpnFire_ = new WorldSound(this );79 this->defSndWpnFire_ = new WorldSound(this->getContext()); 78 80 this->defSndWpnFire_->setLooping(false); 79 81 this->bSoundAttached_ = false; -
code/trunk/src/orxonox/weaponsystem/WeaponMode.h
r8706 r9667 36 36 #include "util/Math.h" 37 37 #include "core/BaseObject.h" 38 #include "core/ SubclassIdentifier.h"38 #include "core/class/SubclassIdentifier.h" 39 39 #include "tools/Timer.h" 40 40 … … 44 44 { 45 45 public: 46 WeaponMode( BaseObject* creator);46 WeaponMode(Context* context); 47 47 virtual ~WeaponMode(); 48 48 -
code/trunk/src/orxonox/weaponsystem/WeaponPack.cc
r6417 r9667 38 38 namespace orxonox 39 39 { 40 CreateFactory(WeaponPack);40 RegisterClass(WeaponPack); 41 41 42 WeaponPack::WeaponPack( BaseObject* creator) : BaseObject(creator)42 WeaponPack::WeaponPack(Context* context) : BaseObject(context) 43 43 { 44 44 RegisterObject(WeaponPack); -
code/trunk/src/orxonox/weaponsystem/WeaponPack.h
r6417 r9667 41 41 { 42 42 public: 43 WeaponPack( BaseObject* creator);43 WeaponPack(Context* context); 44 44 virtual ~WeaponPack(); 45 45 -
code/trunk/src/orxonox/weaponsystem/WeaponSet.cc
r5781 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(WeaponSet);39 RegisterClass(WeaponSet); 40 40 41 WeaponSet::WeaponSet( BaseObject* creator) : BaseObject(creator)41 WeaponSet::WeaponSet(Context* context) : BaseObject(context) 42 42 { 43 43 RegisterObject(WeaponSet); -
code/trunk/src/orxonox/weaponsystem/WeaponSet.h
r5781 r9667 41 41 { 42 42 public: 43 WeaponSet( BaseObject* creator);43 WeaponSet(Context* context); 44 44 virtual ~WeaponSet(); 45 45 -
code/trunk/src/orxonox/weaponsystem/WeaponSlot.cc
r8706 r9667 37 37 namespace orxonox 38 38 { 39 CreateFactory(WeaponSlot);39 RegisterClass(WeaponSlot); 40 40 41 WeaponSlot::WeaponSlot( BaseObject* creator) : StaticEntity(creator)41 WeaponSlot::WeaponSlot(Context* context) : StaticEntity(context) 42 42 { 43 43 RegisterObject(WeaponSlot); -
code/trunk/src/orxonox/weaponsystem/WeaponSlot.h
r8891 r9667 57 57 { 58 58 public: 59 WeaponSlot( BaseObject* creator);59 WeaponSlot(Context* context); 60 60 virtual ~WeaponSlot(); 61 61 -
code/trunk/src/orxonox/weaponsystem/WeaponSystem.cc
r8729 r9667 30 30 31 31 #include "core/CoreIncludes.h" 32 #include "core/ SubclassIdentifier.h"32 #include "core/class/SubclassIdentifier.h" 33 33 #include "worldentities/pawns/Pawn.h" 34 34 … … 46 46 namespace orxonox 47 47 { 48 CreateFactory(WeaponSystem);49 50 WeaponSystem::WeaponSystem( BaseObject* creator) : BaseObject(creator)48 RegisterClass(WeaponSystem); 49 50 WeaponSystem::WeaponSystem(Context* context) : BaseObject(context) 51 51 { 52 52 RegisterObject(WeaponSystem); … … 308 308 else if (identifier->getIdentifier()->isA(Class(Munition))) 309 309 { 310 Munition* munition = identifier->fabricate(this );310 Munition* munition = identifier->fabricate(this->getContext()); 311 311 this->munitions_[identifier->getIdentifier()] = munition; 312 312 return munition; -
code/trunk/src/orxonox/weaponsystem/WeaponSystem.h
r6417 r9667 43 43 { 44 44 public: 45 WeaponSystem( BaseObject* creator);45 WeaponSystem(Context* context); 46 46 virtual ~WeaponSystem(); 47 47
Note: See TracChangeset
for help on using the changeset viewer.