Changeset 7177 in orxonox.OLD for branches/shared_lib/src/world_entities/space_ships
- Timestamp:
- Feb 22, 2006, 12:34:43 AM (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
r7096 r7177 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 "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
r7072 r7177 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 "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
r7122 r7177 23 23 #include "resource_manager.h" 24 24 25 #include "weapons/weapon_manager.h"26 #include "weapons/test_gun.h"27 25 #include "weapons/turret.h" 28 26 #include "weapons/cannon.h" … … 126 124 127 125 //weapons: 128 Weapon* wpRight = new TestGun(0);129 wpRight->setName("testGun Right");130 Weapon* wpLeft = new TestGun(1);131 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"); 132 130 //Weapon* cannon = dynamic_cast<Weapon*>(Factory::fabricate(CL_CANNON)); 133 131 134 132 //cannon->setName("BFG"); 135 133 136 this->addWeapon(wpLeft, 1, 0);137 this->addWeapon(wpRight,1 ,1);134 //this->addWeapon(wpLeft, 1, 0); 135 //this->addWeapon(wpRight,1 ,1); 138 136 //this->addWeapon(cannon, 0, 6); 139 137 -
branches/shared_lib/src/world_entities/space_ships/turbine_hover.cc
r7126 r7177 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 "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.