Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 19, 2009, 3:48:00 PM (15 years ago)
Author:
rgrieder
Message:

Merged orxonox_cast related revisions from core4 back to trunk.

Location:
code/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/orxonox/overlays/hud/AnnounceMessage.cc

    r3110 r3325  
    5656        SUPER(AnnounceMessage, changedOwner);
    5757
    58         this->owner_ = dynamic_cast<PlayerInfo*>(this->getOwner());
     58        this->owner_ = orxonox_cast<PlayerInfo*>(this->getOwner());
    5959    }
    6060}
  • code/trunk/src/orxonox/overlays/hud/DeathMessage.cc

    r3110 r3325  
    5656        SUPER(DeathMessage, changedOwner);
    5757
    58         this->owner_ = dynamic_cast<PlayerInfo*>(this->getOwner());
     58        this->owner_ = orxonox_cast<PlayerInfo*>(this->getOwner());
    5959    }
    6060}
  • code/trunk/src/orxonox/overlays/hud/GametypeStatus.cc

    r3300 r3325  
    8686        SUPER(GametypeStatus, changedOwner);
    8787
    88         this->owner_ = dynamic_cast<PlayerInfo*>(this->getOwner());
     88        this->owner_ = orxonox_cast<PlayerInfo*>(this->getOwner());
    8989    }
    9090}
  • code/trunk/src/orxonox/overlays/hud/HUDHealthBar.cc

    r3300 r3325  
    9494        SUPER(HUDHealthBar, changedOwner);
    9595
    96         this->owner_ = dynamic_cast<Pawn*>(this->getOwner());
     96        this->owner_ = orxonox_cast<Pawn*>(this->getOwner());
    9797    }
    9898
  • code/trunk/src/orxonox/overlays/hud/HUDRadar.cc

    r3280 r3325  
    164164        SUPER(HUDRadar, changedOwner);
    165165
    166         this->owner_ = dynamic_cast<Pawn*>(this->getOwner());
     166        this->owner_ = orxonox_cast<Pawn*>(this->getOwner());
    167167    }
    168168}
  • code/trunk/src/orxonox/overlays/hud/HUDSpeedBar.cc

    r3196 r3325  
    6565        SUPER(HUDSpeedBar, changedOwner);
    6666
    67         this->owner_ = dynamic_cast<SpaceShip*>(this->getOwner());
     67        this->owner_ = orxonox_cast<SpaceShip*>(this->getOwner());
    6868    }
    6969}
  • code/trunk/src/orxonox/overlays/hud/HUDTimer.cc

    r3300 r3325  
    6868        SUPER(HUDTimer, changedOwner);
    6969
    70         this->owner_ = dynamic_cast<ControllableEntity*>(this->getOwner());
     70        this->owner_ = orxonox_cast<ControllableEntity*>(this->getOwner());
    7171    }
    7272}
  • code/trunk/src/orxonox/overlays/hud/KillMessage.cc

    r3110 r3325  
    5656        SUPER(KillMessage, changedOwner);
    5757
    58         this->owner_ = dynamic_cast<PlayerInfo*>(this->getOwner());
     58        this->owner_ = orxonox_cast<PlayerInfo*>(this->getOwner());
    5959    }
    6060}
  • code/trunk/src/orxonox/overlays/hud/PongScore.cc

    r3280 r3325  
    133133
    134134        if (this->getOwner() && this->getOwner()->getGametype())
    135             this->owner_ = dynamic_cast<Pong*>(this->getOwner()->getGametype());
     135            this->owner_ = orxonox_cast<Pong*>(this->getOwner()->getGametype());
    136136        else
    137137            this->owner_ = 0;
  • code/trunk/src/orxonox/overlays/hud/TeamBaseMatchScore.cc

    r3280 r3325  
    118118
    119119        if (this->getOwner() && this->getOwner()->getGametype())
    120             this->owner_ = dynamic_cast<TeamBaseMatch*>(this->getOwner()->getGametype());
     120            this->owner_ = orxonox_cast<TeamBaseMatch*>(this->getOwner()->getGametype());
    121121        else
    122122            this->owner_ = 0;
  • code/trunk/src/orxonox/overlays/hud/UnderAttackHealthBar.cc

    r3196 r3325  
    7373        SUPER(UnderAttackHealthBar, changedOwner);
    7474
    75         PlayerInfo* player = dynamic_cast<PlayerInfo*>(this->getOwner());
     75        PlayerInfo* player = orxonox_cast<PlayerInfo*>(this->getOwner());
    7676        if (player)
    7777        {
    7878            this->owner_ = player;
    7979
    80             UnderAttack* ua = dynamic_cast<UnderAttack*>(player->getGametype());
     80            UnderAttack* ua = orxonox_cast<UnderAttack*>(player->getGametype());
    8181            if (ua)
    8282            {
Note: See TracChangeset for help on using the changeset viewer.