Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10693 in orxonox.OLD


Ignore:
Timestamp:
Jun 14, 2007, 1:20:36 PM (17 years ago)
Author:
bknecht
Message:

fixed errors

Location:
branches/hud/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/hud/src/util/hud.cc

    r10685 r10693  
    183183        {
    184184                this->healthWidget = new OrxGui::GLGuiBar();
    185                 this->healthWidget->setMaximum(widget->getBarWidget()->maximum());
    186         this->healthWidget->setValue(widget->getBarWidget()->value());
    187         this->healthWidget->setParent2D(this->barSocket);
     185                dynamic_cast<OrxGui::GLGuiBar*> (this->healthWidget)->setMaximum(dynamic_cast<OrxGui::GLGuiEnergyWidgetVertical*> (widget)->getBarWidget()->maximum());
     186                dynamic_cast<OrxGui::GLGuiBar*> (this->healthWidget)->setValue(dynamic_cast<OrxGui::GLGuiEnergyWidgetVertical*> (widget)->getBarWidget()->value());
     187                this->healthWidget->setParent2D(this->barSocket);
    188188        }
    189189        else
  • branches/hud/src/world_entities/player.cc

    r10685 r10693  
    1919
    2020#include "event_handler.h"
    21 #include "fps_player.h"
     21#include "creatures/fps_player.h"
    2222
    2323#include "state.h"
     
    7676    this->playable = playable;
    7777   
    78     if( playable->isA(FpsPlayer::staticClassID()) )
     78    if( playable->isA(FPSPlayer::staticClassID()) )
    7979    {
    80         this->_hud.setMod(Hud::Playmode FirstPerson);
     80        this->_hud.setMode(Hud::FirstPerson);
    8181        this->_hud.setHealthWidget(this->playable->getHealthWidget());
    8282    }
    8383    else
    8484    {
    85         this->_hud.setMode(Hud::Playmode Full3D);
     85        this->_hud.setMode(Hud::Full3D);
    8686        this->_hud.setHealthWidget(this->playable->getHealthWidget());
    8787    }
  • branches/hud/src/world_entities/space_ships/space_ship.cc

    r10618 r10693  
    11351135    this->updateShieldWidget();
    11361136    if (this->hasPlayer())
    1137       State::getPlayer()->hud().setShiledWidget(this->shieldWidget);
     1137      State::getPlayer()->hud().setShieldWidget(this->shieldWidget);
    11381138  }
    11391139}
Note: See TracChangeset for help on using the changeset viewer.