Changeset 9715 in orxonox.OLD for branches/new_class_id/src/world_entities/weapons/ammo_container.h
- Timestamp:
- Sep 1, 2006, 8:06:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/weapons/ammo_container.h
r9705 r9715 17 17 //! A class for Storing energy of Projectiles. 18 18 class AmmoContainer : public BaseObject { 19 NewObjectListDeclaration(AmmoContainer);19 ObjectListDeclaration(AmmoContainer); 20 20 21 21 public: 22 AmmoContainer(const NewClassID& id, float maxEnergy = DEFAULT_MAX_ENERGY);22 AmmoContainer(const ClassID& id, float maxEnergy = DEFAULT_MAX_ENERGY); 23 23 virtual ~AmmoContainer(); 24 24 25 25 bool operator=(int projectileType) const { return (this->projectileType == projectileType); }; 26 NewClassID getProjectileType() const { return this->projectileType; };26 ClassID getProjectileType() const { return this->projectileType; }; 27 27 28 28 float increaseEnergy(float energy); … … 42 42 float maxEnergy; 43 43 44 NewClassID projectileType;44 ClassID projectileType; 45 45 }; 46 46
Note: See TracChangeset
for help on using the changeset viewer.