Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 9, 2013, 9:26:46 PM (11 years ago)
Author:
landauf
Message:

BaseObject now requires a Context instead of a creator (BaseObject*) in its constructor.
Namespace, Level, and Scene inherit from Context

Location:
code/branches/core6/src/orxonox/infos
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core6/src/orxonox/infos/Bot.cc

    r9558 r9629  
    4040    CreateFactory(Bot);
    4141
    42     Bot::Bot(BaseObject* creator) : PlayerInfo(creator)
     42    Bot::Bot(Context* context) : PlayerInfo(context)
    4343    {
    4444        RegisterObject(Bot);
  • code/branches/core6/src/orxonox/infos/Bot.h

    r5781 r9629  
    4040    {
    4141        public:
    42             Bot(BaseObject* creator);
     42            Bot(Context* context);
    4343            virtual ~Bot();
    4444
  • code/branches/core6/src/orxonox/infos/GametypeInfo.cc

    r9348 r9629  
    6565        Registers and initializes the object.
    6666    */
    67     GametypeInfo::GametypeInfo(BaseObject* creator) : Info(creator)
     67    GametypeInfo::GametypeInfo(Context* context) : Info(context)
    6868    {
    6969        RegisterObject(GametypeInfo);
  • code/branches/core6/src/orxonox/infos/GametypeInfo.h

    r9348 r9629  
    5858
    5959        public:
    60             GametypeInfo(BaseObject* creator);
     60            GametypeInfo(Context* context);
    6161            virtual ~GametypeInfo();
    6262
  • code/branches/core6/src/orxonox/infos/HumanPlayer.cc

    r9558 r9629  
    4343    CreateUnloadableFactory(HumanPlayer);
    4444
    45     HumanPlayer::HumanPlayer(BaseObject* creator) : PlayerInfo(creator)
     45    HumanPlayer::HumanPlayer(Context* context) : PlayerInfo(context)
    4646    {
    4747        RegisterObject(HumanPlayer);
     
    183183        if (this->isLocalPlayer() && !this->humanHudTemplate_.empty() && GameMode::showsGraphics())
    184184        {
    185             this->humanHud_ = new OverlayGroup(this);
     185            this->humanHud_ = new OverlayGroup(this->getContext());
    186186            this->humanHud_->addTemplate(this->humanHudTemplate_);
    187187            this->humanHud_->setOwner(this);
     
    199199        if (this->isLocalPlayer() && !this->gametypeHudTemplate_.empty())
    200200        {
    201             this->gametypeHud_ = new OverlayGroup(this);
     201            this->gametypeHud_ = new OverlayGroup(this->getContext());
    202202            this->gametypeHud_->addTemplate(this->gametypeHudTemplate_);
    203203            this->gametypeHud_->setOwner(this);
  • code/branches/core6/src/orxonox/infos/HumanPlayer.h

    r7163 r9629  
    4040    {
    4141        public:
    42             HumanPlayer(BaseObject* creator);
     42            HumanPlayer(Context* context);
    4343            virtual ~HumanPlayer();
    4444
  • code/branches/core6/src/orxonox/infos/Info.cc

    r5781 r9629  
    3232namespace orxonox
    3333{
    34     Info::Info(BaseObject* creator) : BaseObject(creator), Synchronisable(creator)
     34    Info::Info(Context* context) : BaseObject(context), Synchronisable(context)
    3535    {
    3636        RegisterObject(Info);
  • code/branches/core6/src/orxonox/infos/Info.h

    r5781 r9629  
    4040    {
    4141        public:
    42             Info(BaseObject* creator);
     42            Info(Context* context);
    4343            virtual ~Info() {}
    4444    };
  • code/branches/core6/src/orxonox/infos/PlayerInfo.cc

    r9348 r9629  
    4040namespace orxonox
    4141{
    42     PlayerInfo::PlayerInfo(BaseObject* creator) : Info(creator)
     42    PlayerInfo::PlayerInfo(Context* context) : Info(context)
    4343    {
    4444        RegisterObject(PlayerInfo);
     
    136136            this->controller_ = 0;
    137137        }
    138         this->controller_ = this->defaultController_.fabricate(this);
     138        this->controller_ = this->defaultController_.fabricate(this->getContext());
    139139        assert(this->controller_);
    140140        this->controller_->setPlayer(this);
  • code/branches/core6/src/orxonox/infos/PlayerInfo.h

    r9563 r9629  
    4141    { // tolua_export
    4242        public:
    43             PlayerInfo(BaseObject* creator);
     43            PlayerInfo(Context* context);
    4444            virtual ~PlayerInfo();
    4545
Note: See TracChangeset for help on using the changeset viewer.