Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 9:20:39 PM (17 years ago)
Author:
polakma
Message:

altfire now available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/weapon2/src/orxonox/objects/weaponSystem/Weapon.h

    r2391 r2398  
    6161            void bulletReloaded();
    6262            void magazineReloaded();
    63             void setBulletLoadingTime(float loadingTime);
    64             float getBulletLoadingTime();
    65             void setMagazineLoadingTime(float loadingTime);
    66             float getMagazineLoadingTime();
    67             Timer<Weapon> *getBulletTimer();
    68             Timer<Weapon> *getMagazineTimer();
    6963
    7064            virtual void setMunitionType(std::string munitionType);
    7165            virtual const std::string getMunitionType();
     66            virtual void setBulletLoadingTime(float loadingTime);
     67            virtual const float getBulletLoadingTime();
     68            virtual void setMagazineLoadingTime(float loadingTime);
     69            virtual const float getMagazineLoadingTime();
    7270
    7371            virtual void takeBullets();
     
    7573            virtual void createProjectile();
    7674
    77             inline void setParentWeaponSlot(WeaponSlot *parentWeaponSlot)
    78                 { this->parentWeaponSlot_=parentWeaponSlot; };
    79             inline WeaponSlot * getParentWeaponSlot()
    80                 { return this->parentWeaponSlot_; };
    8175            inline void setParentWeaponSystem(WeaponSystem *parentWeaponSystem)
    8276                { this->parentWeaponSystem_=parentWeaponSystem; };
     
    8478                { return this->parentWeaponSystem_; };
    8579
    86             //in future by XMLPort
     80            inline void setAttachedToWeaponSlot(WeaponSlot * wSlot)
     81                { this->attachedToWeaponSlot_ = wSlot; }
     82            inline WeaponSlot * getAttachedToWeaponSlot()
     83                { return this->attachedToWeaponSlot_; }
     84
    8785            virtual void setWeapon();
    8886
     
    9088
    9189        protected:
     90            bool bReloading_;
    9291            bool bulletReadyToShoot_;
    9392            bool magazineReadyToShoot_;
    9493            float bulletLoadingTime_;
    9594            float magazineLoadingTime_;
    96             bool bReloading_;
    97 
    98             Munition *munition_;
    9995            std::string munitionType_;
    10096
    101             WeaponSlot *parentWeaponSlot_;
    102             WeaponSystem *parentWeaponSystem_;
     97            WeaponSlot * attachedToWeaponSlot_;
     98            Munition * munition_;
     99            WeaponSystem * parentWeaponSystem_;
     100
    103101            SubclassIdentifier<Munition> munitionIdentifier_;
     102
    104103            Timer<Weapon> bulletReloadTimer_;
    105104            Timer<Weapon> magazineReloadTimer_;
Note: See TracChangeset for help on using the changeset viewer.