Changeset 10751 in orxonox.OLD for branches/presentation/src
- Timestamp:
- Jun 20, 2007, 11:01:39 PM (17 years ago)
- Location:
- branches/presentation/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/playable.cc
r10748 r10751 372 372 break; 373 373 case Playable::Vertical: 374 this->setCameraMode(Camera::View Left);374 this->setCameraMode(Camera::ViewNormal); 375 375 break; 376 376 case Playable::FromBehind: -
branches/presentation/src/world_entities/projectiles/plasma_pulse.cc
r10747 r10751 43 43 this->setHealthMax(0); 44 44 this->lifeSpan = 2.0; 45 46 45 this->grid = new Billboard(); 47 46 this->grid->setSize(.2, .2); -
branches/presentation/src/world_entities/space_ships/space_ship.cc
r10750 r10751 234 234 235 235 bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false; 236 caminit = true; 236 237 237 238 this->travelNode = new PNode(); … … 427 428 void SpaceShip::tick (float time) 428 429 { 430 if(caminit) 431 { 432 State::getCamera()->setViewMode(Camera::ViewNormal); 433 State::getCameraTargetNode()->setParent(this); 434 State::getCamera()->setParent(this); 435 caminit = false; 436 } 437 429 438 if ( deadBox != NULL ) 430 439 { … … 569 578 if( event.type == KeyMapper::PEV_VIEW0) 570 579 { 571 State::getCamera()->setViewMode(Camera::ViewNormal); 572 State::getCameraTargetNode()->setParent(this); 573 State::getCamera()->setParent(this); 580 574 581 } 575 582 else if( event.type == KeyMapper::PEV_VIEW1) -
branches/presentation/src/world_entities/space_ships/space_ship.h
r10749 r10751 224 224 void onButtonExit(); 225 225 void showDeadScreen(); 226 bool caminit; 226 227 227 228 };
Note: See TracChangeset
for help on using the changeset viewer.