Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 3:38:39 PM (16 years ago)
Author:
rgrieder
Message:
  • converted tabs to spaces in HUD
  • adjusted msvc project
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/hud/HUD.cc

    r1406 r1410  
    2626*/
    2727
    28 #include <string.h>
    2928#include "OrxonoxStableHeaders.h"
     29#include "HUD.h"
     30
     31#include <string>
    3032#include <OgreOverlay.h>
    3133#include <OgreOverlayContainer.h>
     
    3739#include "objects/SpaceShip.h"
    3840#include "BarOverlayElement.h"
     41#include "RadarObject.h"
    3942#include "RadarOverlayElement.h"
     43#include "Navigation.h"
    4044#include "OverlayElementFactories.h"
    41 #include "HUD.h"
    4245
    4346namespace orxonox
     
    5255        lastRadarObject = NULL;
    5356
    54                 // create Factories
     57        // create Factories
    5558        BarOverlayElementFactory *barOverlayElementFactory = new BarOverlayElementFactory();
    5659        om->addOverlayElementFactory(barOverlayElementFactory);
     
    8487        nav = new Navigation(container);
    8588
    86                 // set up screen-wide container
     89        // set up screen-wide container
    8790        container->show();
    8891
     
    144147    }
    145148
    146     /*static*/HUD& HUD::getSingleton(){
     149    /*static*/ HUD& HUD::getSingleton(){
    147150        static HUD theInstance;
    148151        return theInstance;
    149152    }
    150153
    151     /*static*/void HUD::setFPS(float fps){
     154    /*static*/ void HUD::setFPS(float fps){
    152155        HUD::getSingleton().fpsText->setCaption("FPS: " + Ogre::StringConverter::toString(fps));
    153156    }
    154157
    155     /*static*/void HUD::setEnergy(float value){
     158    /*static*/ void HUD::setEnergy(float value){
    156159        HUD::getSingleton().energyBar->setValue(value);
    157160    }
    158161
    159     /*static*/void HUD::cycleNavigationFocus(){
     162    /*static*/ void HUD::cycleNavigationFocus(){
    160163        HUD::getSingleton().nav->cycleFocus();
    161164    }
Note: See TracChangeset for help on using the changeset viewer.