Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 19, 2009, 4:55:08 PM (15 years ago)
Author:
polakma
Message:

some enhancements, but not working…

File:
1 edited

Legend:

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

    r2778 r2804  
    6262            void magazineReloaded();
    6363
     64            //XMLPort functions
    6465            virtual void setMunitionType(std::string munitionType);
    6566            virtual const std::string getMunitionType();
     
    7071            virtual void setSharedMunition(bool bSharedMunition);
    7172            virtual const bool getSharedMunition();
     73            virtual void setBulletAmount(unsigned int amount);
     74            virtual const unsigned int getBulletAmount();
     75            virtual void setMagazineAmount(unsigned int amount);
     76            virtual const unsigned int getMagazineAmount();
     77            virtual void setUnlimitedMunition(bool unlimitedMunition);
     78            virtual const bool getUnlimitedMunition();
    7279
     80            //weapon actions
    7381            virtual void takeBullets();
    7482            virtual void takeMagazines();
    7583            virtual void createProjectile();
     84            virtual void reloadBullet();
     85            virtual void reloadMagazine();
    7686
     87            //manually set or reset
     88            virtual void setWeapon();
     89            virtual void setMunition();
     90           
    7791            inline void setParentWeaponSystem(WeaponSystem *parentWeaponSystem)
    7892                { this->parentWeaponSystem_=parentWeaponSystem; };
     
    8599                { return this->attachedToWeaponSlot_; }
    86100
    87             virtual void setWeapon();
    88101
    89102        private:
     
    94107            bool magazineReadyToShoot_;
    95108            bool bSharedMunition_;
     109            bool unlimitedMunition_;
    96110            float bulletLoadingTime_;
    97111            float magazineLoadingTime_;
     112            unsigned int bulletAmount_;
     113            unsigned int magazineAmount_;
    98114            std::string munitionType_;
    99115
Note: See TracChangeset for help on using the changeset viewer.