Changeset 9715 in orxonox.OLD for branches/new_class_id/src/world_entities/weapons/weapon.h
- Timestamp:
- Sep 1, 2006, 8:06:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/weapons/weapon.h
r9705 r9715 83 83 class Weapon : public WorldEntity 84 84 { 85 NewObjectListDeclaration(Weapon);85 ObjectListDeclaration(Weapon); 86 86 87 87 public: … … 89 89 Weapon (); 90 90 virtual ~Weapon (); 91 static Weapon* createWeapon(const NewClassID& weaponID);91 static Weapon* createWeapon(const ClassID& weaponID); 92 92 static Weapon* createWeapon(const std::string& weaponName); 93 93 … … 113 113 /** @returns the Capabilities of this Weapon */ 114 114 inline long getCapability() const { return this->capability; }; 115 void setProjectileType(const NewClassID& projectile);115 void setProjectileType(const ClassID& projectile); 116 116 void setProjectileTypeC(const std::string& projectile); 117 117 /** @returns The projectile's classID */ 118 inline NewClassID getProjectileType() { return this->projectile; };118 inline ClassID getProjectileType() { return this->projectile; }; 119 119 /** @returns the FastFactory, that creates Projectiles of type getProjectile */ 120 120 inline FastFactory* getProjectileFactory() { return this->projectileFactory; }; … … 233 233 bool chargeable; //!< if the Weapon is charcheable (if true, the weapon will charge before it fires.) 234 234 235 NewClassID projectile; //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.)235 ClassID projectile; //!< the projectile used for this weapon (since they should be generated via macro and the FastFactory, only the ClassID must be known.) 236 236 FastFactory* projectileFactory; //!< A factory, that produces and handles the projectiles. 237 237 };
Note: See TracChangeset
for help on using the changeset viewer.