Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 19, 2008, 7:07:36 PM (15 years ago)
Author:
polakma
Message:

added new features to munition.h and weapon.h. tried to fix projectiles (still doesn't compile)

File:
1 edited

Legend:

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

    r2203 r2232  
    3434#include "core/BaseObject.h"
    3535
     36#include "Weapon.h"
     37
    3638
    3739namespace orxonox
     
    4547            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4648
    47             void decrementBullets();
    48             void decrementMagazines();
    49             void incrementBullets();
    50             void incrementMagazines();
     49            void setMaxBullets(unsigned int amount);
     50            void setMaxMagazines(unsigned int amount);
     51
     52            unsigned int getBullets();
     53            unsigned int getMagazines();
     54
     55            void removeBullets(unsigned int k, Weapon * parentWeapon);
     56            void removeMagazines(unsigned int k);
     57            void addBullets(unsigned int k);
     58            void addMagazines(unsigned int k);
    5159
    5260        private:
    53             int bullets;
    54             int magazines;
     61            unsigned int bullets_;
     62            unsigned int magazines_;
     63            unsigned int maxBullets_;
     64            unsigned int maxMagazines_;
    5565    };
    5666}
Note: See TracChangeset for help on using the changeset viewer.