Changeset 10691 in orxonox.OLD for branches/vs-enhencements
- Timestamp:
- Jun 14, 2007, 9:28:51 AM (18 years ago)
- Location:
- branches/vs-enhencements/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/vs-enhencements/src/world_entities/space_ships/space_ship.cc
r10687 r10691 24 24 #include "world_entities/weapons/weapon_manager.h" 25 25 26 #include "weapons/test_gun.h"26 // #include "weapons/test_gun.h" 27 27 #include "weapons/light_blaster.h" 28 28 #include "weapons/medium_blaster.h" … … 32 32 #include "weapons/disruptor.h" 33 33 #include "weapons/swarm_launcher.h" 34 #include "weapons/spike_thrower.h"35 #include "weapons/acid_launcher.h"36 #include "weapons/boomerang_gun.h"37 #include "weapons/turret.h"38 #include "weapons/cannon.h"34 // #include "weapons/spike_thrower.h" 35 // #include "weapons/acid_launcher.h" 36 // #include "weapons/boomerang_gun.h" 37 // #include "weapons/turret.h" 38 // #include "weapons/cannon.h" 39 39 40 40 #include "elements/glgui_energywidgetvertical.h" … … 159 159 //weapons: 160 160 161 // WeaponManager::WeaponManager(this->weaponMan); 162 // WeaponManager::WeaponManager(this->secWeaponMan); 163 161 164 this->weaponMan.setParentEntity( this); 162 165 this->secWeaponMan.setParentEntity( this); … … 165 168 this->secWeaponMan.setSlotCount(6); 166 169 167 this->weaponMan.createWeaponSlot(0, 3.270, 1.028, .155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 168 this->weaponMan.createWeaponSlot(1, 3.270, 1.028, -.155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 169 this->weaponMan.createWeaponSlot(2, 4.385, .063, .876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 170 this->weaponMan.createWeaponSlot(3, 4.385, -.063, -.876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 171 this->weaponMan.createWeaponSlot(4, 1.635, -.612, 2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 172 this->weaponMan.createWeaponSlot(5, 1.536, -.612, -2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 173 this->weaponMan.createWeaponSlot(6, 1.536, -.612, 3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 174 this->weaponMan.createWeaponSlot(7, 1.536, -.612, -3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 175 176 170 // printf("creating WS ..."); 171 // this->weaponMan.createWeaponSlot(0, 3.270, 1.028, .155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 172 // this->weaponMan.createWeaponSlot(1, 3.270, 1.028, -.155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 173 // this->weaponMan.createWeaponSlot(2, 4.385, .063, .876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 174 // this->weaponMan.createWeaponSlot(3, 4.385, -.063, -.876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 175 // this->weaponMan.createWeaponSlot(4, 1.635, -.612, 2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 176 // this->weaponMan.createWeaponSlot(5, 1.536, -.612, -2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 177 // this->weaponMan.createWeaponSlot(6, 1.536, -.612, 3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 178 // this->weaponMan.createWeaponSlot(7, 1.536, -.612, -3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 179 180 // printf("done\nloading primary weapons..."); 177 181 this->weaponMan.addWeaponToSlot(0, 0, "RFCannon"); 178 182 this->weaponMan.addWeaponToSlot(0, 1, "RFCannon"); … … 193 197 this->weaponMan.addWeaponToSlot(3, 6, "Disruptor"); 194 198 this->weaponMan.addWeaponToSlot(3, 7, "Disruptor"); 195 199 // printf("done\n"); 196 200 197 201 this->secWeaponMan.createWeaponSlot(0, 1.5, 3, 0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); … … 211 215 Playable::weaponConfigChanged(); 212 216 213 //this->bInit = false;217 this->bInit = false; 214 218 215 219 loadEnergyShare(.3,.3,.4); … … 470 474 void SpaceShip::tick (float time) 471 475 { 472 /* 476 477 printf( "loading WS..." ); 478 473 479 if( !this->bInit) 474 480 { … … 489 495 } 490 496 this->bInit = true; 491 }*/ 497 } 498 printf (" done\n"); 492 499 493 500 // Playable::tick(time); … … 495 502 // this->test->tick(time); 496 503 504 printf("Calling WM tick\n"); 497 505 // Own Tick Setup, as a different fire routine is used on the weapon manager 498 506 this->weaponMan.tick(time); 499 507 this->secWeaponMan.tick(time); 508 printf("WM ticks done\n" ); 509 500 510 501 511 if( this->systemFailure() ) -
branches/vs-enhencements/src/world_entities/space_ships/space_ship.h
r10687 r10691 166 166 bool bSecFire; //!< second fire button pressed 167 167 168 //bool bInit; //!< set true, if MP have been loaded168 bool bInit; //!< set true, if MP have been loaded 169 169 170 170 /* -
branches/vs-enhencements/src/world_entities/weapons/weapon_manager.h
r10678 r10691 28 28 #define WM_MAX_SLOTS 10 //!< How many slots the WeaponManager has at its max 29 29 #define WM_MAX_CONFIGS 4 //!< The maximum number of predefined Configurations 30 #define WM_MAX_LOADED_WEAPONS 20 //!< The30 // #define WM_MAX_LOADED_WEAPONS 20 //!< The 31 31 32 32 //! This is a special class, that can handle many different Weapons of a ship/man/whatever.
Note: See TracChangeset
for help on using the changeset viewer.