Changeset 10739 in orxonox.OLD for branches/presentation
- Timestamp:
- Jun 20, 2007, 7:47:40 PM (17 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/npcs/actionbox_enemy.cc
r10734 r10739 115 115 LoadParam(root, "agility", this, ActionboxEnemy, setAgility); 116 116 LoadParam(root, "acceleration", this, ActionboxEnemy, setAcceleration); 117 LoadParam(root, "active", this, ActionboxEnemy, setActive); 117 118 } 118 119 119 120 void ActionboxEnemy::tick( float dt ) 120 121 { 122 // printf("ABEGROUP: %d\n", this->getOMListNumber()); 123 121 124 if ( escaped ) 122 125 { … … 375 378 toList( OM_DEAD ); 376 379 } 380 -
branches/presentation/src/world_entities/npcs/actionbox_enemy.h
r10727 r10739 36 36 void setMaxSpeed( float f ){ this->maxSpeed = f; } 37 37 void setAgility( float f ){ this->agility = f; } 38 void setActive( bool b ){ this->isActive = b; } 38 39 39 40 Quaternion myDir; -
branches/presentation/src/world_entities/projectiles/hbolt.cc
r10737 r10739 91 91 this->halo->setVisibility(true); 92 92 this->origList = this->getOMListNumber(); 93 this->toList(OM_ENVIRON);93 //this->toList(OM_ENVIRON); 94 94 if (unlikely(HBolt::explosionParticles == NULL)) 95 95 { -
branches/presentation/src/world_entities/projectiles/plasma_pulse.cc
r10737 r10739 49 49 this->grid->setPulse(); 50 50 this->grid->setTexture( "textures/plasma.png"); 51 this->grid->toList(OM_ENVIRON);51 //this->grid->toList(OM_ENVIRON); 52 52 /* 53 53 this->blink = new Blink(); … … 76 76 { 77 77 this->origList = this->getOMListNumber(); 78 this->toList(OM_ENVIRON);78 //this->toList(OM_ENVIRON); 79 79 this->grid->setVisibility(true); 80 80 // this->blink->setVisibility(true); -
branches/presentation/src/world_entities/space_ships/space_ship.cc
r10734 r10739 75 75 #include "track/action_box.h" 76 76 77 78 #include "weapons/aiming_system.h" 77 79 78 80 ObjectListDefinition(SpaceShip); … … 141 143 if (root != NULL) 142 144 this->loadParams(root); 145 146 printf("SSGROUP: %d\n", this->getOMListNumber()); 143 147 144 148 } … … 150 154 void SpaceShip::init() 151 155 { 152 153 srand(time(0)); //initialize Random Nomber Generator 156 toList( OM_GROUP_01 ); 154 157 155 158 // this->setRelDir(Quaternion(M_PI, Vector(1,0,0))); … … 175 178 176 179 177 this->weaponMan.addWeaponToSlot(0, 0, "RFCannon");180 /* this->weaponMan.addWeaponToSlot(0, 0, "RFCannon"); 178 181 this->weaponMan.addWeaponToSlot(0, 1, "RFCannon"); 179 182 this->weaponMan.addWeaponToSlot(0, 2, "RFCannon"); … … 182 185 this->weaponMan.addWeaponToSlot(1, 1, "RFCannon"); 183 186 this->weaponMan.addWeaponToSlot(1, 2, "RFCannon"); 184 this->weaponMan.addWeaponToSlot(1, 3, "RFCannon"); 185 186 this->weaponMan.addWeaponToSlot(0, 4, "NadionLaser");187 this->weaponMan.addWeaponToSlot(1, 3, "RFCannon");*/ 188 189 /* this->weaponMan.addWeaponToSlot(0, 4, "NadionLaser"); 187 190 this->weaponMan.addWeaponToSlot(0, 5, "NadionLaser"); 188 191 this->weaponMan.addWeaponToSlot(2, 4, "NadionLaser"); 189 this->weaponMan.addWeaponToSlot(2, 5, "NadionLaser"); 192 this->weaponMan.addWeaponToSlot(2, 5, "NadionLaser");*/ 190 193 191 194 this->weaponMan.addWeaponToSlot(0, 6, "Disruptor"); … … 292 295 293 296 294 this->toList(OM_GROUP_00);297 //this->toList(OM_GROUP_00); 295 298 296 299 … … 380 383 { 381 384 this->secWeaponMan.showCrosshair(); 382 this->toList( OM_GROUP_01 );385 //this->toList( OM_GROUP_01 ); 383 386 State::getPlayer()->hud().setRadarCenterNode(this->travelNode); 384 387 State::getPlayer()->hud().setOverlayActive(true); … … 388 391 { 389 392 this->secWeaponMan.hideCrosshair(); 390 this->toList( OM_GROUP_00);393 //this->toList( OM_GROUP_00); 391 394 State::getPlayer()->hud().setOverlayActive(false); 392 395 State::getCamera()->setEventHandling(true); … … 419 422 void SpaceShip::draw () const 420 423 { 421 // if( this->entityTrack != NULL && this->isDrawTrack())424 if( this->entityTrack != NULL /*&& this->isDrawTrack()*/) 422 425 this->entityTrack->drawGraph(); 423 426 … … 452 455 void SpaceShip::tick (float time) 453 456 { 457 // printf("SSGROUP: %d\n", this->getOMListNumber()); 454 458 455 459 if( !this->bInit) -
branches/presentation/src/world_entities/weapons/weapon_manager.cc
r10715 r10739 267 267 if ( weapon == NULL ) 268 268 return false; 269 270 weapon->toList( this->parentEntity->getOMListNumber() ); 269 271 270 272 if (unlikely(configID >= WM_MAX_CONFIGS || slotID >= (int)this->slotCount))
Note: See TracChangeset
for help on using the changeset viewer.