/* orxonox - the future of 3D-vertical-scrollers Copyright (C) 2004 orx This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. ### File Specific: main-programmer: Benjamin Grauer co-programmer: ... */ //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ #include "hud.h" using namespace std; /** * standard constructor * @todo this constructor is not jet implemented - do it */ Hud::Hud () { this->setClassID(CL_HUD, "Hud"); this->energyWidget = NULL; this->shieldWidget = NULL; this->armorWidget = NULL; } /** * standard deconstructor */ Hud::~Hud () { // delete what has to be deleted here } void Hud::loadParams(const TiXmlElement* root) { } void Hud::setBackGround() { } void Hud::setEnergyWidget(GLGuiWidget* widget) { // decopple old widget if (this->energyWidget != NULL) { this->energyWidget->hide(); } this->energyWidget = widget; if (this->energyWidget != NULL) { this->energyWidget->show(); this->energyWidget->setAbsCoor2D(10,80); this->energyWidget->setSize2D(20,300); } } void Hud::setShiledWidget(GLGuiWidget* widget) { } void Hud::setArmorWidget(GLGuiWidget* widget) { } void Hud::addWeaponWidget(GLGuiWidget* widget) { } void Hud::removeWeaponWidget(GLGuiWidget* widget) { } void setResolution(unsigned int resX, unsigned int resY);