Changeset 919 for code/branches/network/src/orxonox/objects
- Timestamp:
- Mar 24, 2008, 1:12:31 PM (17 years ago)
- Location:
- code/branches/network/src/orxonox/objects
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/objects/Fighter.cc
r790 r919 37 37 #include "util/tinyxml/tinyxml.h" 38 38 #include "util/String2Number.h" 39 #include "../core/CoreIncludes.h" 40 #include "../Orxonox.h" 41 #include "../particle/ParticleInterface.h" 39 #include "core/CoreIncludes.h" 40 #include "Orxonox.h" 41 #include "InputHandler.h" 42 #include "particle/ParticleInterface.h" 42 43 #include "weapon/AmmunitionDump.h" 43 44 #include "weapon/BarrelGun.h" … … 254 255 if (!this->setMouseEventCallback_) 255 256 { 256 if ( Orxonox::getSingleton()->getMouse())257 if (InputHandler::getSingleton()->getMouse()) 257 258 { 258 Orxonox::getSingleton()->getMouse()->setEventCallback(this);259 InputHandler::getSingleton()->getMouse()->setEventCallback(this); 259 260 this->setMouseEventCallback_ = true; 260 261 } … … 263 264 WorldEntity::tick(dt); 264 265 265 OIS::Keyboard* mKeyboard = Orxonox::getSingleton()->getKeyboard();266 OIS::Mouse* mMouse = Orxonox::getSingleton()->getMouse();266 OIS::Keyboard* mKeyboard = InputHandler::getSingleton()->getKeyboard(); 267 OIS::Mouse* mMouse = InputHandler::getSingleton()->getMouse(); 267 268 268 269 mKeyboard->capture(); -
code/branches/network/src/orxonox/objects/NPC.cc
r790 r919 85 85 void NPC::tick(float dt) 86 86 { 87 87 update(); 88 88 this->setVelocity(0.995*this->getVelocity() + this->getAcceleration()*dt); 89 89 this->translate(this->getVelocity()*dt); -
code/branches/network/src/orxonox/objects/SpaceShip.cc
r889 r919 39 39 #include "util/String2Number.h" 40 40 #include "util/Math.h" 41 #include "../core/CoreIncludes.h" 42 #include "../core/Debug.h" 43 #include "../Orxonox.h" 44 #include "../particle/ParticleInterface.h" 41 #include "core/CoreIncludes.h" 42 #include "core/Debug.h" 43 #include "Orxonox.h" 44 #include "InputHandler.h" 45 #include "particle/ParticleInterface.h" 45 46 #include "Projectile.h" 46 47 #include "core/XMLPort.h" … … 400 401 if (!this->setMouseEventCallback_) 401 402 { 402 if ( Orxonox::getSingleton()->getMouse())403 if (InputHandler::getSingleton()->getMouse()) 403 404 { 404 Orxonox::getSingleton()->getMouse()->setEventCallback(this);405 InputHandler::getSingleton()->getMouse()->setEventCallback(this); 405 406 this->setMouseEventCallback_ = true; 406 407 } … … 427 428 } 428 429 429 OIS::Keyboard* mKeyboard = Orxonox::getSingleton()->getKeyboard();430 OIS::Mouse* mMouse = Orxonox::getSingleton()->getMouse();430 OIS::Keyboard* mKeyboard = InputHandler::getSingleton()->getKeyboard(); 431 OIS::Mouse* mMouse = InputHandler::getSingleton()->getMouse(); 431 432 432 433 mKeyboard->capture();
Note: See TracChangeset
for help on using the changeset viewer.