Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5441 in orxonox.OLD for trunk/src/world_entities/weapons/weapon.h


Ignore:
Timestamp:
Oct 27, 2005, 11:46:46 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: Weapons update, Now one can really assign SlotCapabilities and they are used and checked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon.h

    r5356 r5441  
    106106
    107107    // FUNCTIONS TO SET THE WEAPONS PROPERTIES.
     108    /** sets the Weapons Capabilities */
     109    inline void setCapability(long capabilities) { this->capability = capabilities; };
     110    /** @returns the Capabilities of this Weapon */
     111    inline long getCapability() { return this->capability; };
    108112    void setProjectileType(ClassID projectile);
    109113    void setProjectileType(const char* projectile);
     
    185189
    186190  private:
     191    // type of Weapon
     192    long                 capability;                       //!< what capabilities the Weapon has @see W_Capability
     193
    187194    // it is all about energy
    188195    float                energy;                           //!< The energy stored in the weapons secondary buffers (reserve)
Note: See TracChangeset for help on using the changeset viewer.