Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 2:38:33 PM (15 years ago)
Author:
polakma
Message:

changed Weapon::fire and munition reloading

File:
1 edited

Legend:

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

    r2366 r2379  
    5555
    5656            //reloading
    57             void bulletTimer();
    58             void magazineTimer();
     57            void bulletTimer(float bulletLoadingTime);
     58            void magazineTimer(float magazineLoadingTime);
    5959            void bulletReloaded();
    6060            void magazineReloaded();
     
    6363            void setMagazineLoadingTime(float loadingTime);
    6464            float getMagazineLoadingTime();
    65             void setBulletReadyToShoot(bool b);
    66             bool getBulletReadyToShoot();
    67             void setMagazineReadyToShoot(bool b);
    68             bool getMagazineReadyToShoot();
    6965            Timer<Weapon> *getBulletTimer();
    7066            Timer<Weapon> *getMagazineTimer();
     
    7268            virtual void setMunitionType(std::string munitionType);
    7369            virtual const std::string getMunitionType();
     70
     71            virtual void takeBullets();
     72            virtual void takeMagazines();
     73            virtual void createProjectile();
    7474
    7575            inline void setParentWeaponSlot(WeaponSlot *parentWeaponSlot)
     
    8181            inline WeaponSystem * getParentWeaponSystem()
    8282                { return this->parentWeaponSystem_; };
     83
     84            //in future by XMLPort,
     85            virtual void setWeapon();
    8386
    8487        private:
Note: See TracChangeset for help on using the changeset viewer.