Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5458 in orxonox.OLD for trunk/src/world_entities/npc.cc


Ignore:
Timestamp:
Oct 30, 2005, 1:52:29 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: a second power-up (lasers)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/npc.cc

    r5451 r5458  
    2525#include "stdlibincl.h"
    2626#include "power_ups/turret_power_up.h"
     27#include "power_ups/laser_power_up.h"
    2728
    2829using namespace std;
     
    5455      State::getWorldEntityList()->add(powerUp);
    5556    }
     57    else if ((float)rand()/RAND_MAX < .3)
     58    {
     59      WorldEntity* powerUp = new LaserPowerUp();
     60      powerUp->setAbsCoor(this->getAbsCoor());
     61      State::getWorldEntityList()->add(powerUp);
     62    }
    5663    State::getWorldEntityList()->remove(this);
    5764
Note: See TracChangeset for help on using the changeset viewer.