Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 2, 2009, 8:42:11 PM (15 years ago)
Author:
landauf
Message:
  • Added overlay element for the Pong Gametype
  • Changed the type of the overlay's owner to BaseObject (former ControllableEntity) to allow other classes to own an overlay (for example a Gametype)
  • OverlayGroup does now use a std::set instead of a std::map to store it's overlay elements. Therefore a name is not anymore compulsory for an overlay element.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/infos/HumanPlayer.cc

    r2826 r2890  
    173173        if (this->humanHud_)
    174174            this->humanHud_->setOwner(this->getControllableEntity());
    175 
    176         if (this->gametypeHud_)
    177             this->gametypeHud_->setOwner(this->getControllableEntity());
    178175    }
    179176
     
    206203            this->gametypeHud_ = new OverlayGroup(this);
    207204            this->gametypeHud_->addTemplate(this->gametypeHudTemplate_);
    208             this->gametypeHud_->setOwner(this->getControllableEntity());
     205            this->gametypeHud_->setOwner(this->getGametype());
    209206        }
    210207    }
Note: See TracChangeset for help on using the changeset viewer.