Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 24, 2006, 2:26:15 PM (18 years ago)
Author:
bensch
Message:

some WeaponManager remake

File:
1 edited

Legend:

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

    r6512 r6669  
    1616
    1717#include "world_entity.h"
     18#include "count_pointer.h"
     19#include "ammo_container.h"
    1820
    1921// FORWARD DECLARATION
     
    105107    inline void setCapability(long capabilities) { this->capability = capabilities; };
    106108    /** @returns the Capabilities of this Weapon */
    107     inline long getCapability() { return this->capability; };
     109    inline long getCapability() const { return this->capability; };
    108110    void setProjectileType(ClassID projectile);
    109111    void setProjectileType(const char* projectile);
     
    139141    inline float getLoadedEnergyMax() const { return this->energyLoadedMax; };
    140142    inline float getEnergyMax() const { return this->energyMax; };
     143    inline void setAmmoContainer(const CountPointer<AmmoContainer>& ammoContainer) { this->ammoContainer = ammoContainer;}
    141144    inline float getEnergy() const { return this->energy; };
    142145    inline float getLoadedEnergy() const { return this->energyLoaded; };
     
    200203    float                energy;                           //!< The energy stored in the weapons secondary buffers (reserve)
    201204    float                energyLoaded;                     //!< The energy stored in the weapons primary buffers (fire without reload)
     205    CountPointer<AmmoContainer> ammoContainer;             //!< Pointer to the AmmoContainer this weapon grabs Energy from.
    202206    float                energyMax;                        //!< The maximal energy that can be stored in the secondary buffers (reserveMax)
    203207    float                energyLoadedMax;                  //!< The maximal energy that can be stored in the primary buffers
Note: See TracChangeset for help on using the changeset viewer.