Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 12, 2009, 9:24:58 PM (15 years ago)
Author:
landauf
Message:

changed type of gametype-HUD and default-HUD to PlayerInfo (instead of Gametype and ControllableEntity respectively). The owner of the Pawn-HUD remains Pawn.

File:
1 edited

Legend:

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

    r2896 r2973  
    167167    }
    168168
    169     void HumanPlayer::changedControllableEntity()
    170     {
    171         PlayerInfo::changedControllableEntity();
    172 
    173         if (this->humanHud_)
    174             this->humanHud_->setOwner(this->getControllableEntity());
    175     }
    176 
    177169    void HumanPlayer::updateHumanHUD()
    178170    {
     
    187179            this->humanHud_ = new OverlayGroup(this);
    188180            this->humanHud_->addTemplate(this->humanHudTemplate_);
    189             this->humanHud_->setOwner(this->getControllableEntity());
     181            this->humanHud_->setOwner(this);
    190182        }
    191183    }
     
    203195            this->gametypeHud_ = new OverlayGroup(this);
    204196            this->gametypeHud_->addTemplate(this->gametypeHudTemplate_);
    205             this->gametypeHud_->setOwner(this->getGametype());
     197            this->gametypeHud_->setOwner(this);
    206198        }
    207199    }
Note: See TracChangeset for help on using the changeset viewer.