Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7102 in orxonox.OLD for trunk/src/world_entities/power_ups


Ignore:
Timestamp:
Feb 7, 2006, 8:56:57 PM (19 years ago)
Author:
bensch
Message:

power ups can only be picked up once

Location:
trunk/src/world_entities/power_ups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/power_ups/power_up.cc

    r7077 r7102  
    4747  this->pickupBuffer = NULL;
    4848  this->respawnBuffer = NULL;
     49
     50  this->collider = NULL;
    4951}
    5052
     
    120122  if(entity->isA(CL_EXTENDABLE))
    121123  {
     124    this->collider = entity;
    122125    if(dynamic_cast<Extendable*>(entity)->pickup(this))
    123126    {
     
    144147    {
    145148      this->toList(OM_COMMON);
     149      this->collider = NULL;
    146150      if (likely(this->respawnBuffer != NULL))
    147151        this->soundSource.play(this->respawnBuffer);
  • trunk/src/world_entities/power_ups/power_up.h

    r7077 r7102  
    5353  float respawnStart;
    5454  static const char* respawnTypes[];
     55
     56  WorldEntity* collider;
    5557};
    5658
Note: See TracChangeset for help on using the changeset viewer.