Changeset 515 for code/branches/FICN/src/orxonox
- Timestamp:
- Dec 13, 2007, 6:21:22 PM (17 years ago)
- Location:
- code/branches/FICN/src/orxonox
- Files:
-
- 26 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/objects/CMakeLists.txt
r507 r515 9 9 Ambient.cc 10 10 Skybox.cc 11 SceneNode.cc 12 Entity.cc 13 Camera.cc 14 SpaceshipSteeringObject.cc 11 15 ) 12 16 -
code/branches/FICN/src/orxonox/orxonox.cc
r512 r515 60 60 61 61 #include "spaceship_steering.h" 62 SpaceshipSteering* steering;63 62 64 63 … … 84 83 : mKeyboard(keyboard), mMouse(mouse) 85 84 { 85 86 SpaceshipSteering* steering = orxonox::Orxonox::getSingleton()->getSteeringPointer(); 87 86 88 speed = 250; 87 89 loop = 100; … … 101 103 102 104 auMan_->update(); 105 106 SpaceshipSteering* steering = orxonox::Orxonox::getSingleton()->getSteeringPointer(); 103 107 104 108 mKeyboard->capture(); … … 141 145 } 142 146 143 steering->tick(evt.timeSinceLastFrame); 147 steering->tick(evt.timeSinceLastFrame); 148 149 150 144 151 // scenemanager->spacehip->tick(evt.timesincelastframe); 145 152 if(mKeyboard->isKeyDown(OIS::KC_ESCAPE)) … … 348 355 loader_->loadLevel(); 349 356 357 358 359 360 350 361 /* 351 362 auMan_->ambientAdd("a1"); … … 362 373 SceneManager *mgr = ogre_->getSceneManager(); 363 374 375 /* 364 376 Camera *cam = mgr->createCamera("Camera"); 365 377 cam->setPosition(Vector3(0,0,-250)); 366 378 cam->lookAt(Vector3(0,0,0)); 379 380 367 381 Viewport *vp = ogre_->getRoot()->getAutoCreatedWindow()->addViewport(cam); 368 382 369 383 /* 370 384 Entity* head = mgr->createEntity("ASSF", "assf2.mesh"); 371 385 SceneNode *node = mgr->getRootSceneNode()->createChildSceneNode("OgreHeadNode", Vector3(0,0,0)); … … 393 407 steering = new SpaceshipSteering(500, 200, 200, 200); 394 408 steering->addNode(node); 395 409 */ 396 410 397 411 } -
code/branches/FICN/src/orxonox/orxonox.h
r473 r515 16 16 #include "../loader/LevelLoader.h" 17 17 #include "../audio/AudioManager.h" 18 #include "spaceship_steering.h" 18 19 19 20 … … 33 34 static Orxonox* getSingleton(); 34 35 inline SceneManager* getSceneManager() { return ogre_->getSceneManager(); }; 36 inline GraphicsEngine* getOgrePointer() { return ogre_; }; 37 inline SpaceshipSteering* getSteeringPointer() { return steering_; }; 35 38 private: 36 39 Orxonox(); … … 54 57 loader::LevelLoader* loader_; //!< level loader builds the scene 55 58 audio::AudioManager* auMan_; //!< audio manager 59 SpaceshipSteering* steering_; 56 60 static Orxonox* singletonRef_; 57 61 OIS::Keyboard* keyboard_; -
code/branches/FICN/src/orxonox/spaceship_steering.cc
r513 r515 28 28 #include "Ogre.h" 29 29 #include "spaceship_steering.h" 30 #include <iostream> 30 31 using namespace Ogre; 31 32 … … 33 34 maxSpeedRotateUpDown, float maxSpeedRotateRightLeft, float 34 35 maxSpeedLoopRightLeft) { 36 37 std::cout << "Steering was loaded"; 35 38 moveForward_ = 0; 36 39 rotateUp_ = 0; -
code/branches/FICN/src/orxonox/spaceship_steering.h
r337 r515 3 3 4 4 #include "OgrePrerequisites.h" 5 5 6 6 7 class SpaceshipSteering … … 58 59 }; 59 60 61 60 62 #endif
Note: See TracChangeset
for help on using the changeset viewer.