Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2008, 7:57:16 PM (17 years ago)
Author:
polakma
Message:

added firemodes and a lot of other things

File:
1 edited

Legend:

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

    r2107 r2145  
    3939namespace orxonox
    4040{
     41    //put here all existing munitionTypes
     42    namespace MunitionType
     43    {
     44        enum Enum
     45        { LaserGunMunition };
     46    }
     47
     48    //put here all weapon fire modes.
     49    //they have to be added to Pawn and HumanController, too.
     50    namespace WeaponMode
     51    {
     52        enum Enum
     53        { fire, altFire, altFire2 };
     54    }
     55
    4156    class _OrxonoxExport WeaponSystem : public BaseObject
    4257    {
     
    4863
    4964            void attachWeaponSet(WeaponSet *wSet);
     65            void addMunitionType(Munition *munitionPointer);
    5066            void fire();
    51             void fire(unsigned int n);
    52             void setActiveWeaponSet(unsigned int n);
     67            void fire(WeaponMode::Enum fireMode);
     68            //void setActiveWeaponSet(unsigned int n);
    5369            WeaponSet * getWeaponSetPointer(unsigned int n);
    5470
     
    6177        private:
    6278            std::vector<WeaponSet *> weaponSets_;
     79            std::map<MunitionType::Enum,Munition *> munitionSet_;
    6380            WeaponSet *activeWeaponSet_;
    64 
    6581            SpaceShip *parentSpaceShip_;
    6682    };
Note: See TracChangeset for help on using the changeset viewer.