Changeset 9757 in orxonox.OLD for branches/new_class_id/src/world_entities/weapons
- Timestamp:
- Sep 18, 2006, 10:06:19 PM (19 years ago)
- 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 62 62 // registering default reactions: 63 63 this->unsubscribeReaction(CREngine::CR_OBJECT_DAMAGE); 64 this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, WorldEntity:: classID());64 this->subscribeReaction(CREngine::CR_OBJECT_DAMAGE, WorldEntity::staticClassID()); 65 65 66 66 this->range = 1000.0f; -
branches/new_class_id/src/world_entities/weapons/weapon.cc
r9723 r9757 77 77 if (createdObject != NULL) 78 78 { 79 if (createdObject->isA(Weapon:: classID()))79 if (createdObject->isA(Weapon::staticClassID())) 80 80 return dynamic_cast<Weapon*>(createdObject); 81 81 else … … 93 93 if (createdObject != NULL) 94 94 { 95 if (createdObject->isA(Weapon:: classID()))95 if (createdObject->isA(Weapon::staticClassID())) 96 96 return dynamic_cast<Weapon*>(createdObject); 97 97 else … … 131 131 this->defaultTarget = NULL; //< Nothing is Targeted by default. 132 132 133 this->projectile = NullClass:: classID(); //< No Projectile Class is Connected to this weapon133 this->projectile = NullClass::staticClassID(); //< No Projectile Class is Connected to this weapon 134 134 this->projectileFactory = NULL; //< No Factory generating Projectiles is selected. 135 135 -
branches/new_class_id/src/world_entities/weapons/weapon_manager.cc
r9755 r9757 298 298 { 299 299 this->parentNode->addChild(weapon); 300 if (this->parentEntity->isA(Playable:: classID()))300 if (this->parentEntity->isA(Playable::staticClassID())) 301 301 dynamic_cast<Playable*>(this->parentEntity)->weaponConfigChanged(); 302 302 weapon->setDefaultTarget(this->crosshair); … … 468 468 else 469 469 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())) 471 471 dynamic_cast<Playable*>(this->parentEntity)->weaponConfigChanged(); 472 472 }
Note: See TracChangeset
for help on using the changeset viewer.