Changeset 2097 for code/trunk
- Timestamp:
- Nov 1, 2008, 10:27:12 PM (16 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/CMakeLists.txt
r2092 r2097 85 85 objects/quest/Rewardable.cc 86 86 87 objects/WeaponSystem.cc 88 objects/weaponSystem/WeaponSet.cc 89 objects/weaponSystem/WeaponSlot.cc 90 objects/weaponSystem/Weapon.cc 91 objects/weaponSystem/Munition.cc 92 87 93 objects/worldentities/triggers/Trigger.cc 88 94 objects/worldentities/triggers/DistanceTrigger.cc -
code/trunk/src/orxonox/objects/WeaponSystem.cc
r2096 r2097 45 45 namespace orxonox 46 46 { 47 WeaponSystem::WeaponSystem( )47 WeaponSystem::WeaponSystem(BaseObject* creator) : BaseObject(creator) 48 48 { 49 49 RegisterObject(WeaponSystem); … … 77 77 } 78 78 79 WeaponSet * getWeaponSetPointer(int n)79 WeaponSet * WeaponSystem::getWeaponSetPointer(int n) 80 80 { 81 81 return this->weaponSets_[n]; -
code/trunk/src/orxonox/objects/WeaponSystem.h
r2096 r2097 42 42 { 43 43 public: 44 WeaponSystem( );44 WeaponSystem(BaseObject* creator); 45 45 virtual ~WeaponSystem(); 46 46 -
code/trunk/src/orxonox/objects/weaponSystem/Munition.cc
r2096 r2097 37 37 namespace orxonox 38 38 { 39 Munition::Munition( )39 Munition::Munition(BaseObject* creator) : BaseObject(creator) 40 40 { 41 41 RegisterObject(Munition); -
code/trunk/src/orxonox/objects/weaponSystem/Munition.h
r2096 r2097 40 40 { 41 41 public: 42 Munition( );42 Munition(BaseObject* creator); 43 43 virtual ~Munition(); 44 44 -
code/trunk/src/orxonox/objects/weaponSystem/Weapon.cc
r2096 r2097 37 37 namespace orxonox 38 38 { 39 Weapon::Weapon( )39 Weapon::Weapon(BaseObject* creator) : BaseObject(creator) 40 40 { 41 41 RegisterObject(Weapon); … … 55 55 56 56 } 57 58 void Weapon::fire() 59 { 60 61 } 57 62 } -
code/trunk/src/orxonox/objects/weaponSystem/Weapon.h
r2096 r2097 40 40 { 41 41 public: 42 Weapon( );42 Weapon(BaseObject* creator); 43 43 virtual ~Weapon(); 44 44 -
code/trunk/src/orxonox/objects/weaponSystem/WeaponSet.cc
r2096 r2097 38 38 namespace orxonox 39 39 { 40 WeaponSet::WeaponSet( int k)40 WeaponSet::WeaponSet(BaseObject* creator, int k) : BaseObject(creator) 41 41 { 42 42 RegisterObject(WeaponSet); … … 44 44 for (int i=0;i<k;i++) 45 45 { 46 this->wSlotNew = new WeaponSlot(); 47 attachWeaponSlot(wSlotNew); 46 attachWeaponSlot(new WeaponSlot(this)); 48 47 } 49 48 } … … 69 68 } 70 69 71 WeaponSlot * getWeaponSlotPointer(int n)70 WeaponSlot * WeaponSet::getWeaponSlotPointer(int n) 72 71 { 73 72 return this->weaponSlots_[n]; -
code/trunk/src/orxonox/objects/weaponSystem/WeaponSet.h
r2096 r2097 43 43 { 44 44 public: 45 WeaponSet( int k);45 WeaponSet(BaseObject* creator, int k = 0); 46 46 virtual ~WeaponSet(); 47 47 -
code/trunk/src/orxonox/objects/weaponSystem/WeaponSlot.cc
r2096 r2097 39 39 namespace orxonox 40 40 { 41 WeaponSlot::WeaponSlot( )41 WeaponSlot::WeaponSlot(BaseObject* creator) : BaseObject(creator) 42 42 { 43 43 RegisterObject(WeaponSlot); -
code/trunk/src/orxonox/objects/weaponSystem/WeaponSlot.h
r2096 r2097 43 43 { 44 44 public: 45 WeaponSlot( );45 WeaponSlot(BaseObject* creator); 46 46 virtual ~WeaponSlot(); 47 47 -
code/trunk/src/orxonox/objects/weaponSystem/munitions/LaserGunMunition.cc
r2096 r2097 37 37 namespace orxonox 38 38 { 39 LaserGunMunition::LaserGunMunition( )39 LaserGunMunition::LaserGunMunition(BaseObject* creator) : BaseObject(creator) 40 40 { 41 41 RegisterObject(LaserGunMunition); -
code/trunk/src/orxonox/objects/weaponSystem/munitions/LaserGunMunition.h
r2096 r2097 40 40 { 41 41 public: 42 LaserGunMunition( );42 LaserGunMunition(BaseObject* creator); 43 43 virtual ~LaserGunMunition(); 44 44 -
code/trunk/src/orxonox/objects/weaponSystem/weapons/LaserGun.cc
r2096 r2097 37 37 namespace orxonox 38 38 { 39 LaserGun::LaserGun( )39 LaserGun::LaserGun(BaseObject* creator) : Weapon(creator) 40 40 { 41 41 RegisterObject(LaserGun); -
code/trunk/src/orxonox/objects/weaponSystem/weapons/LaserGun.h
r2096 r2097 39 39 namespace orxonox 40 40 { 41 class _OrxonoxExport LaserGun : public BaseObject : publicWeapon41 class _OrxonoxExport LaserGun : public Weapon 42 42 { 43 43 public: 44 LaserGun( );44 LaserGun(BaseObject* creator); 45 45 virtual ~LaserGun(); 46 46 -
code/trunk/src/orxonox/objects/weaponSystem/weapons/Missile.cc
r2096 r2097 38 38 namespace orxonox 39 39 { 40 Missile::Missile( )40 Missile::Missile(BaseObject* creator) : Weapon(creator) 41 41 { 42 42 RegisterObject(Missile); -
code/trunk/src/orxonox/objects/weaponSystem/weapons/Missile.h
r2096 r2097 40 40 { 41 41 public: 42 Missile( );42 Missile(BaseObject* creator); 43 43 virtual ~Missile(); 44 44
Note: See TracChangeset
for help on using the changeset viewer.