Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1292 for code/branches/hud3


Ignore:
Timestamp:
May 15, 2008, 5:37:06 PM (17 years ago)
Author:
FelixSchulthess
Message:

svn save

Location:
code/branches/hud3/src/orxonox
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud3/src/orxonox/console/InGameConsole.cc

    r1290 r1292  
    4343#include "core/InputManager.h"
    4444#include "GraphicsEngine.h"
    45 // just for testing purposes
    46 //#include "SpaceShip.h"
    4745
    4846#define LINES 20
     
    8381    }
    8482
    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(){     
    9184        newline();
    9285        if (!CommandExecutor::execute(this->ib_->get())){
  • code/branches/hud3/src/orxonox/hud/RadarOverlayElement.cc

    r1290 r1292  
    2424*      ...
    2525*
     26*/
     27
     28/*      local coordinate system of space ship:
     29
     30                        y
     31                        +   z
     32                        |  +
     33                        | /
     34                        |/
     35               x +------O
    2636*/
    2737
  • code/branches/hud3/src/orxonox/hud/RadarOverlayElement.cc~

    r1290 r1292  
    101101  }
    102102   
    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){
    104104    dirX_=dirX;
    105105    dirY_=dirY;
  • code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h

    r1290 r1292  
    2525*
    2626*/
    27 
    2827
    2928#ifndef _RADAR_H__
  • code/branches/hud3/src/orxonox/hud/RadarOverlayElement.h~

    r1290 r1292  
    2626*/
    2727
     28/*      local coordinate system of space ship:
     29
     30                        y
     31                        +   z
     32                        |  +
     33                        | /
     34                        |/
     35               x +------O
     36*/
    2837
    2938#ifndef _RADAR_H__
     
    6372
    6473    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);
    6675   
    6776    int newShip(int X, int Y, int Z);
  • code/branches/hud3/src/orxonox/objects/SpaceShip.cc

    r1275 r1292  
    3030#include "SpaceShip.h"
    3131
    32 #include <string>
    33 
    3432#include <OgreCamera.h>
    3533#include <OgreRenderWindow.h>
     
    5654{
    5755    ConsoleCommand(SpaceShip, setMaxSpeedTest, AccessLevel::Debug, false);
     56    ConsoleCommand(SpaceShip, whereAmI, AccessLevel::User, true);
    5857    ConsoleCommandGeneric(test1, SpaceShip, createExecutor(createFunctor(&SpaceShip::setMaxSpeedTest), "setMaxSpeed", AccessLevel::Debug), false);
    5958    ConsoleCommandGeneric(test2, SpaceShip, createExecutor(createFunctor(&SpaceShip::setMaxSpeedTest), "setMaxBlubber", AccessLevel::Debug), false);
     
    432431    }
    433432
     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
    434439    void SpaceShip::tick(float dt)
    435440    {
  • code/branches/hud3/src/orxonox/objects/SpaceShip.h

    r1272 r1292  
    2929#ifndef _SpaceShip_H__
    3030#define _SpaceShip_H__
    31 
     31#include <string>
    3232#include "OrxonoxPrereqs.h"
    33 
    3433#include <OgrePrerequisites.h>
    3534
     
    6564            void getFocus();
    6665
     66            static std::string whereAmI();
    6767            static void setMaxSpeedTest(float value)
    6868                { SpaceShip::instance_s->setMaxSpeed(value); }
Note: See TracChangeset for help on using the changeset viewer.