Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Dec 19, 2006, 11:55:26 PM (18 years ago)
Author:
patrick
Message:

merged network back to trunk

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

Legend:

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

    r9869 r10114  
    2424
    2525
    26 #include "class_id_DEPRECATED.h"
    27 ObjectListDefinitionID(LaserPowerUp, CL_LASER_POWER_UP);
     26
     27ObjectListDefinition(LaserPowerUp);
    2828CREATE_FACTORY(LaserPowerUp);
    2929
     
    8080{
    8181 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z);
    82  if (entity->isA(CL_PLAYABLE))
     82  if (entity->isA(Playable::staticClassID()))
    8383  this->toList(OM_DEAD);
    8484}
  • trunk/src/world_entities/power_ups/param_power_up.cc

    r9869 r10114  
    2727
    2828
    29 #include "class_id_DEPRECATED.h"
    30 ObjectListDefinitionID(ParamPowerUp, CL_PARAM_POWER_UP);
     29
     30ObjectListDefinition(ParamPowerUp);
    3131CREATE_FACTORY(ParamPowerUp);
    3232
  • trunk/src/world_entities/power_ups/turret_power_up.cc

    r9869 r10114  
    2424
    2525
    26 #include "class_id_DEPRECATED.h"
    27 ObjectListDefinitionID(TurretPowerUp, CL_TURRET_POWER_UP);
     26
     27ObjectListDefinition(TurretPowerUp);
    2828CREATE_FACTORY(TurretPowerUp);
    2929
     
    7676{
    7777 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z);
    78  if (entity->isA(CL_PLAYABLE))
     78  if (entity->isA(Playable::staticClassID()))
    7979   this->toList(OM_DEAD);
    8080}
  • trunk/src/world_entities/power_ups/weapon_power_up.cc

    r9869 r10114  
    2727#include "debug.h"
    2828
    29 #include "class_id_DEPRECATED.h"
    30 ObjectListDefinitionID(WeaponPowerUp, CL_WEAPON_POWER_UP);
     29
     30ObjectListDefinition(WeaponPowerUp);
    3131CREATE_FACTORY(WeaponPowerUp);
    3232
Note: See TracChangeset for help on using the changeset viewer.