Changeset 9869 in orxonox.OLD for trunk/src/world_entities/weapons/ammo_container.h
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/ammo_container.h
r6671 r9869 17 17 //! A class for Storing energy of Projectiles. 18 18 class AmmoContainer : public BaseObject { 19 ObjectListDeclaration(AmmoContainer); 19 20 20 21 public: 21 AmmoContainer( ClassID projectileType, float maxEnergy = DEFAULT_MAX_ENERGY);22 AmmoContainer(const ClassID& id, float maxEnergy = DEFAULT_MAX_ENERGY); 22 23 virtual ~AmmoContainer(); 23 24 24 bool operator=( ClassIDprojectileType) const { return (this->projectileType == projectileType); };25 bool operator=(int projectileType) const { return (this->projectileType == projectileType); }; 25 26 ClassID getProjectileType() const { return this->projectileType; }; 26 27
Note: See TracChangeset
for help on using the changeset viewer.