Changeset 947 for code/branches/core2/src/orxonox/objects
- Timestamp:
- Mar 28, 2008, 10:13:58 PM (17 years ago)
- Location:
- code/branches/core2/src/orxonox/objects
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/objects/Ambient.cc
r902 r947 41 41 #include "../Orxonox.h" 42 42 #include "core/XMLPort.h" 43 #include "core/ConsoleCommand.h" 43 44 44 45 #include "Ambient.h" … … 46 47 namespace orxonox 47 48 { 49 ConsoleCommand(Ambient, setAmbientLightTest, AccessLevel::Offline, false); 50 48 51 CreateFactory(Ambient); 52 53 Ambient* Ambient::instance_s; 49 54 50 55 Ambient::Ambient() 51 56 { 52 57 RegisterObject(Ambient); 58 Ambient::instance_s = this; 53 59 } 54 60 -
code/branches/core2/src/orxonox/objects/Ambient.h
r902 r947 18 18 void setAmbientLight(const ColourValue& colour); 19 19 20 static void setAmbientLightTest(const ColourValue& colour) 21 { Ambient::instance_s->setAmbientLight(colour); } 22 20 23 private: 21 24 static Ambient* instance_s; 22 25 23 26 }; -
code/branches/core2/src/orxonox/objects/SpaceShip.cc
r902 r947 45 45 #include "Projectile.h" 46 46 #include "core/XMLPort.h" 47 #include "core/ConsoleCommand.h" 47 48 48 49 #include "SpaceShip.h" … … 50 51 namespace orxonox 51 52 { 53 ConsoleCommand(SpaceShip, setMaxSpeedTest, AccessLevel::Debug, false); 54 52 55 CreateFactory(SpaceShip); 53 56 57 SpaceShip* SpaceShip::instance_s; 58 54 59 SpaceShip::SpaceShip() 55 60 { 56 61 RegisterObject(SpaceShip); 62 63 SpaceShip::instance_s = this; 57 64 58 65 this->setConfigValues(); -
code/branches/core2/src/orxonox/objects/SpaceShip.h
r902 r947 36 36 void setRotDamp(float value); 37 37 38 static void setMaxSpeedTest(float value) 39 { SpaceShip::instance_s->setMaxSpeed(value); } 40 38 41 bool mouseMoved(const OIS::MouseEvent &e); 39 42 bool mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id); … … 42 45 43 46 private: 47 static SpaceShip* instance_s; 48 44 49 Vector3 testvector_; 45 50 bool bInvertYAxis_;
Note: See TracChangeset
for help on using the changeset viewer.