Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 18, 2006, 10:06:19 PM (19 years ago)
Author:
bensch
Message:

new_class_id: hups… this was bad naming… confusing too.

Location:
branches/new_class_id/src/world_entities/weapons
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/weapons/aiming_system.cc

    r9727 r9757  
    6262  // registering default reactions:
    6363  this->unsubscribeReaction(CREngine::CR_OBJECT_DAMAGE);
    64   this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, WorldEntity::classID());
     64  this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, WorldEntity::staticClassID());
    6565
    6666  this->range = 1000.0f;
  • branches/new_class_id/src/world_entities/weapons/weapon.cc

    r9723 r9757  
    7777  if (createdObject != NULL)
    7878  {
    79     if (createdObject->isA(Weapon::classID()))
     79    if (createdObject->isA(Weapon::staticClassID()))
    8080      return dynamic_cast<Weapon*>(createdObject);
    8181    else
     
    9393  if (createdObject != NULL)
    9494  {
    95     if (createdObject->isA(Weapon::classID()))
     95    if (createdObject->isA(Weapon::staticClassID()))
    9696      return dynamic_cast<Weapon*>(createdObject);
    9797    else
     
    131131  this->defaultTarget = NULL;                      //< Nothing is Targeted by default.
    132132
    133   this->projectile = NullClass::classID();         //< No Projectile Class is Connected to this weapon
     133  this->projectile = NullClass::staticClassID();         //< No Projectile Class is Connected to this weapon
    134134  this->projectileFactory = NULL;                  //< No Factory generating Projectiles is selected.
    135135
  • branches/new_class_id/src/world_entities/weapons/weapon_manager.cc

    r9755 r9757  
    298298  {
    299299    this->parentNode->addChild(weapon);
    300     if (this->parentEntity->isA(Playable::classID()))
     300    if (this->parentEntity->isA(Playable::staticClassID()))
    301301      dynamic_cast<Playable*>(this->parentEntity)->weaponConfigChanged();
    302302    weapon->setDefaultTarget(this->crosshair);
     
    468468      else
    469469        this->currentSlotConfig[i].position.deactivateNode();
    470       if (this->parentEntity != NULL && this->parentEntity->isA(Playable::classID()))
     470      if (this->parentEntity != NULL && this->parentEntity->isA(Playable::staticClassID()))
    471471        dynamic_cast<Playable*>(this->parentEntity)->weaponConfigChanged();
    472472    }
Note: See TracChangeset for help on using the changeset viewer.