Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2011, 10:20:27 AM (13 years ago)
Author:
dafrick
Message:

Hack-ish Hack to just have one HUD at a time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/worldentities/ControllableEntity.cc

    r8680 r8682  
    406406        }
    407407
     408        this->createHud();
     409    }
     410
     411    // HACK-ish
     412    void ControllableEntity::createHud(void)
     413    {
    408414        if (!this->hud_ && GameMode::showsGraphics())
    409415        {
     
    414420                this->hud_->setOwner(this);
    415421            }
     422        }
     423    }
     424
     425    void ControllableEntity::destroyHud(void)
     426    {
     427        if (this->hud_ != NULL)
     428        {
     429            this->hud_->destroy();
     430            this->hud_ = NULL;
    416431        }
    417432    }
Note: See TracChangeset for help on using the changeset viewer.