Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2015, 1:11:13 PM (9 years ago)
Author:
landauf
Message:

BaseObject returns plain pointers instead of StrongPtrs for Namespace, Level, Scene, and Gametype.

Location:
code/branches/core7/src/modules/towerdefense
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/modules/towerdefense/TowerDefenseCenterpoint.cc

    r9667 r10571  
    103103        {
    104104            // Sets the centerpoint of the gametype. The gametype uses this to later spawn in towers, he needs the tower template stored in the center point
    105             TowerDefense* towerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype().get());
     105            TowerDefense* towerDefenseGametype = orxonox_cast<TowerDefense*>(this->getGametype());
    106106            towerDefenseGametype->setCenterpoint(this);
    107107        }
  • code/branches/core7/src/modules/towerdefense/TowerDefenseEnemy.cc

    r10557 r10571  
    2929        this->setCollisionType(WorldEntity::Dynamic);
    3030        //needed to keep track of the PlayerStats coded in TowerDefense.h
    31         this->td = orxonox_cast<TowerDefense*>(this->getGametype().get());
     31        this->td = orxonox_cast<TowerDefense*>(this->getGametype());
    3232        once_=false;
    3333
  • code/branches/core7/src/modules/towerdefense/TowerDefenseHUDController.cc

    r10258 r10571  
    8080            if (this->getOwner() && this->getOwner()->getGametype())
    8181                    {
    82                         this->td = orxonox_cast<TowerDefense*>(this->getOwner()->getGametype().get());
     82                        this->td = orxonox_cast<TowerDefense*>(this->getOwner()->getGametype());
    8383                    }
    8484                    else
Note: See TracChangeset for help on using the changeset viewer.