Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2011, 4:16:25 PM (13 years ago)
Author:
mspaling
Message:

Names for RadarViewablese added for later use in HUD

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/infos/PlayerInfo.cc

    r8706 r8896  
    3636#include "worldentities/ControllableEntity.h"
    3737#include "controllers/Controller.h"
     38#include "worldentities/pawns/SpaceShip.h"
    3839
    3940namespace orxonox
     
    189190
    190191        this->changedControllableEntity();
     192
     193                SpaceShip* spaceship = dynamic_cast<SpaceShip*>(entity);
     194                if (spaceship != NULL)
     195                {
     196                        spaceship->setRVName(this->getName());
     197                }
    191198    }
    192199
Note: See TracChangeset for help on using the changeset viewer.