Changeset 7264 in orxonox.OLD for branches/shared_lib/src/world_entities/space_ships
- Timestamp:
- Apr 2, 2006, 4:51:19 PM (19 years ago)
- Location:
- branches/shared_lib/src/world_entities/space_ships
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/shared_lib/src/world_entities/space_ships/helicopter.cc
r7221 r7264 20 20 21 21 #include "weapons/weapon_manager.h" 22 #include "weapons/test_gun.h"23 #include "weapons/turret.h"24 #include "weapons/cannon.h"25 22 26 23 #include "util/loading/factory.h" … … 82 79 83 80 //weapons: 84 Weapon* wpRight = new TestGun(0);85 wpRight->setName("testGun Right");86 Weapon* wpLeft = new TestGun(1);87 wpLeft->setName("testGun Left");81 // Weapon* wpRight = new TestGun(0); 82 // wpRight->setName("testGun Right"); 83 // Weapon* wpLeft = new TestGun(1); 84 // wpLeft->setName("testGun Left"); 88 85 Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_CANNON)); 89 86 90 87 cannon->setName("BFG"); 91 88 92 this->addWeapon(wpLeft, 1, 0);93 this->addWeapon(wpRight,1 ,1);89 // this->addWeapon(wpLeft, 1, 0); 90 // this->addWeapon(wpRight,1 ,1); 94 91 this->addWeapon(cannon, 0, 6); 95 92 -
branches/shared_lib/src/world_entities/space_ships/hover.cc
r7221 r7264 20 20 21 21 #include "weapons/weapon_manager.h" 22 #include "weapons/test_gun.h"23 #include "weapons/turret.h"24 #include "weapons/cannon.h"25 22 26 23 #include "util/loading/factory.h" … … 74 71 75 72 //weapons: 76 Weapon* wpRight = new TestGun(0);77 wpRight->setName("testGun Right");78 Weapon* wpLeft = new TestGun(1);79 wpLeft->setName("testGun Left");80 Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_HYPERBLASTER));81 82 cannon->setName("BFG");83 84 this->addWeapon(wpLeft, 1, 0);85 this->addWeapon(wpRight,1 ,1);86 this->addWeapon(cannon, 0, 2);73 // Weapon* wpRight = new TestGun(0); 74 // wpRight->setName("testGun Right"); 75 // Weapon* wpLeft = new TestGun(1); 76 // wpLeft->setName("testGun Left"); 77 // Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_HYPERBLASTER)); 78 79 // cannon->setName("BFG"); 80 81 // this->addWeapon(wpLeft, 1, 0); 82 // this->addWeapon(wpRight,1 ,1); 83 // this->addWeapon(cannon, 0, 2); 87 84 88 85 this->getWeaponManager()->changeWeaponConfig(1); -
branches/shared_lib/src/world_entities/space_ships/space_ship.cc
r7221 r7264 124 124 125 125 //weapons: 126 Weapon* wpRight = new TestGun(0);127 wpRight->setName("testGun Right");128 Weapon* wpLeft = new TestGun(1);129 wpLeft->setName("testGun Left");126 //Weapon* wpRight = dynamic_cast<Weapon*>(Factory::fabricate("TestGun")); 127 //wpRight->setName("testGun Right"); 128 //Weapon* wpLeft = dynamic_cast<Weapon*>(Factory::fabricate("TestGun")); 129 //wpLeft->setName("testGun Left"); 130 130 //Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_CANNON)); 131 131 132 132 //cannon->setName("BFG"); 133 133 134 this->addWeapon(wpLeft, 1, 0);135 this->addWeapon(wpRight,1 ,1);134 //this->addWeapon(wpLeft, 1, 0); 135 //this->addWeapon(wpRight,1 ,1); 136 136 //this->addWeapon(cannon, 0, 6); 137 137 -
branches/shared_lib/src/world_entities/space_ships/turbine_hover.cc
r7221 r7264 20 20 21 21 #include "weapons/weapon_manager.h" 22 #include "weapons/test_gun.h"23 #include "weapons/turret.h"24 #include "weapons/cannon.h"25 22 26 23 #include "util/loading/factory.h" … … 76 73 77 74 //weapons: 78 Weapon* wpRight = new TestGun(0);79 wpRight->setName("testGun Right");80 Weapon* wpLeft = new TestGun(1);81 wpLeft->setName("testGun Left");75 // Weapon* wpRight = new TestGun(0); 76 // wpRight->setName("testGun Right"); 77 // Weapon* wpLeft = new TestGun(1); 78 // wpLeft->setName("testGun Left"); 82 79 //Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_HYPERBLASTER)); 83 80 84 81 // cannon->setName("BFG"); 85 82 86 this->addWeapon(wpLeft, 1, 0);87 this->addWeapon(wpRight,1 ,1);83 // this->addWeapon(wpLeft, 1, 0); 84 // this->addWeapon(wpRight,1 ,1); 88 85 //this->addWeapon(cannon, 0, 2); 89 86
Note: See TracChangeset
for help on using the changeset viewer.