Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7779 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
May 23, 2006, 10:04:17 PM (19 years ago)
Author:
bensch
Message:

3088 linews changed :): trunk: namespaces

Location:
trunk/src/world_entities
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon.cc

    r7729 r7779  
    307307}
    308308
    309 GLGuiWidget* Weapon::getEnergyWidget()
     309OrxGui::GLGuiWidget* Weapon::getEnergyWidget()
    310310{
    311311  if (this->energyWidget == NULL)
    312312  {
    313     this->energyWidget = new GLGuiBar;
     313    this->energyWidget = new OrxGui::GLGuiBar;
    314314    this->energyWidget->setSize2D( 20, 100);
    315315    this->energyWidget->setMaximum(this->getEnergyMax());
  • trunk/src/world_entities/weapons/weapon.h

    r7460 r7779  
    2525class TiXmlElement;
    2626class FastFactory;
     27namespace OrxGui{ class GLGuiWidget; }
    2728template<class T> class tFastFactory;
    28 class GLGuiWidget;
    2929
    3030//! An enumerator defining Actions a Weapon can take
     
    156156    Animation3D* copyAnimation(WeaponState from, WeaponState to);
    157157
    158     GLGuiWidget* getEnergyWidget();
     158    OrxGui::GLGuiWidget* getEnergyWidget();
    159159
    160160    // FLOW
     
    211211    float                maxCharge;                        //!< The maximal energy to be loaded onto one projectile (this is only availible if chargeable is enabled)
    212212
    213     GLGuiBar*            energyWidget;
     213    OrxGui::GLGuiBar*    energyWidget;
    214214
    215215    PNode*               defaultTarget;                    //!< A target for targeting Weapons.
  • trunk/src/world_entities/world_entity.cc

    r7711 r7779  
    406406  if (this->healthWidget == NULL)
    407407  {
    408     this->healthWidget = new GLGuiBar();
     408    this->healthWidget = new OrxGui::GLGuiBar();
    409409    this->healthWidget->setSize2D(30,400);
    410410    this->healthWidget->setAbsCoor2D(10,100);
     
    423423
    424424
    425 GLGuiWidget* WorldEntity::getHealthWidget()
     425OrxGui::GLGuiWidget* WorldEntity::getHealthWidget()
    426426{
    427427  this->createHealthWidget();
  • trunk/src/world_entities/world_entity.h

    r7711 r7779  
    1717// FORWARD DECLARATION
    1818namespace OrxSound { class SoundBuffer; class SoundSource; }
     19namespace OrxGui { class GLGuiWidget; class GLGuiBar; };
     20
    1921class BVTree;
    2022class Model;
    21 
    22 class GLGuiWidget;
    23 class GLGuiBar;
    2423
    2524//class CharacterAttributes;
     
    9190  float decreaseHealth(float health);
    9291  void increaseHealthMax(float increaseHealth);
    93   GLGuiWidget* getHealthWidget();
     92  OrxGui::GLGuiWidget* getHealthWidget();
    9493  bool hasHealthWidget() const { return this->healthWidget; };
    9594
     
    108107  float                   health;             //!< The Energy of this Entity, if the Entity has any energy at all.
    109108  float                   healthMax;          //!< The Maximal energy this entity can take.
    110   GLGuiBar*               healthWidget;       //!< The Slider (if wanted).
     109  OrxGui::GLGuiBar*       healthWidget;       //!< The Slider (if wanted).
    111110
    112111  std::vector<Model*>     models;             //!< The model that should be loaded for this entity.
Note: See TracChangeset for help on using the changeset viewer.