Changeset 1292 for code/branches/hud3
- Timestamp:
- May 15, 2008, 5:37:06 PM (17 years ago)
- Location:
- code/branches/hud3/src/orxonox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/console/InGameConsole.cc
r1290 r1292 43 43 #include "core/InputManager.h" 44 44 #include "GraphicsEngine.h" 45 // just for testing purposes46 //#include "SpaceShip.h"47 45 48 46 #define LINES 20 … … 83 81 } 84 82 85 void InGameConsole::execute(){ 86 /*// just for testing purposes 87 if(consoleOverlayTextAreas[0]->getCaption() == ">") 88 consoleOverlayTextAreas[0]->setCaption(SpaceShip::instance_s->getPosition().x 89 + "__" + SpaceShip::instance_s->getPosition().y 90 + "__" + SpaceShip::instance_s->getPosition().z);*/ 83 void InGameConsole::execute(){ 91 84 newline(); 92 85 if (!CommandExecutor::execute(this->ib_->get())){ -
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.cc
r1290 r1292 24 24 * ... 25 25 * 26 */ 27 28 /* local coordinate system of space ship: 29 30 y 31 + z 32 | + 33 | / 34 |/ 35 x +------O 26 36 */ 27 37 -
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.cc~
r1290 r1292 101 101 } 102 102 103 void RadarOverlayElement::setMainShipPosition(int dirX, dirY, dirZ, ortX, ortY,ortZ){103 void RadarOverlayElement::setMainShipPosition(int dirX, int dirY, int dirZ, int ortX, int ortY, int ortZ){ 104 104 dirX_=dirX; 105 105 dirY_=dirY; -
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h
r1290 r1292 25 25 * 26 26 */ 27 28 27 29 28 #ifndef _RADAR_H__ -
code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h~
r1290 r1292 26 26 */ 27 27 28 /* local coordinate system of space ship: 29 30 y 31 + z 32 | + 33 | / 34 |/ 35 x +------O 36 */ 28 37 29 38 #ifndef _RADAR_H__ … … 63 72 64 73 void initRadarOverlayElement(Real left, Real top, int dim, Ogre::OverlayContainer* container); 65 void setMainShipPosition(int dirX, dirY, dirZ, ortX, ortY,ortZ);74 void setMainShipPosition(int dirX, int dirY, int dirZ, int ortX, int ortY, int ortZ); 66 75 67 76 int newShip(int X, int Y, int Z); -
code/branches/hud3/src/orxonox/objects/SpaceShip.cc
r1275 r1292 30 30 #include "SpaceShip.h" 31 31 32 #include <string>33 34 32 #include <OgreCamera.h> 35 33 #include <OgreRenderWindow.h> … … 56 54 { 57 55 ConsoleCommand(SpaceShip, setMaxSpeedTest, AccessLevel::Debug, false); 56 ConsoleCommand(SpaceShip, whereAmI, AccessLevel::User, true); 58 57 ConsoleCommandGeneric(test1, SpaceShip, createExecutor(createFunctor(&SpaceShip::setMaxSpeedTest), "setMaxSpeed", AccessLevel::Debug), false); 59 58 ConsoleCommandGeneric(test2, SpaceShip, createExecutor(createFunctor(&SpaceShip::setMaxSpeedTest), "setMaxBlubber", AccessLevel::Debug), false); … … 432 431 } 433 432 433 std::string SpaceShip::whereAmI() { 434 return getConvertedValue<int, std::string>(SpaceShip::instance_s->getPosition().x) 435 + " " + getConvertedValue<int, std::string>(SpaceShip::instance_s->getPosition().y) 436 + " " + getConvertedValue<int, std::string>(SpaceShip::instance_s->getPosition().z); 437 } 438 434 439 void SpaceShip::tick(float dt) 435 440 { -
code/branches/hud3/src/orxonox/objects/SpaceShip.h
r1272 r1292 29 29 #ifndef _SpaceShip_H__ 30 30 #define _SpaceShip_H__ 31 31 #include <string> 32 32 #include "OrxonoxPrereqs.h" 33 34 33 #include <OgrePrerequisites.h> 35 34 … … 65 64 void getFocus(); 66 65 66 static std::string whereAmI(); 67 67 static void setMaxSpeedTest(float value) 68 68 { SpaceShip::instance_s->setMaxSpeed(value); }
Note: See TracChangeset
for help on using the changeset viewer.