Changeset 9705 in orxonox.OLD for branches/new_class_id/src/world_entities/weapons/weapon.h
- Timestamp:
- Aug 25, 2006, 9:44:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/weapons/weapon.h
r9685 r9705 83 83 class Weapon : public WorldEntity 84 84 { 85 NewObjectListDeclaration(Weapon); 86 85 87 public: 86 88 // INITIALISATION // 87 89 Weapon (); 88 90 virtual ~Weapon (); 89 static Weapon* createWeapon(NewClassID weaponID); 91 static Weapon* createWeapon(const NewClassID& weaponID); 92 static Weapon* createWeapon(const std::string& weaponName); 90 93 91 94 void init(); … … 110 113 /** @returns the Capabilities of this Weapon */ 111 114 inline long getCapability() const { return this->capability; }; 112 void setProjectileType( NewClassIDprojectile);115 void setProjectileType(const NewClassID& projectile); 113 116 void setProjectileTypeC(const std::string& projectile); 114 117 /** @returns The projectile's classID */
Note: See TracChangeset
for help on using the changeset viewer.