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/Weapon.h

    r2106 r2145  
    3333
    3434#include "core/BaseObject.h"
    35 
     35#include "tools/BillboardSet.h"
     36#include "tools/Timer.h"
    3637
    3738namespace orxonox
     
    4546            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    4647
    47             void addMunition();
    4848            virtual void fire();
     49            void reloaded();
     50            virtual void attachNeededMunition(Munition *PointerToMunition);
     51
     52            inline void setParentWeaponSlot(WeaponSlot *parentWeaponSlot)
     53                { parentWeaponSlot_=parentWeaponSlot; };
     54            inline WeaponSlot * getParentWeaponSlot()
     55                { return parentWeaponSlot_; };
     56
     57            //void setParentWeaponSystem();
    4958
    5059        private:
    51             int loadingTime_;
    52             Munition *munition_;
    53 
     60            bool weaponReadyToShoot_;
     61            float loadingTime_;
     62            Munition *pointerToMunition_;
     63            WeaponSlot *parentWeaponSlot_;
     64            //WeaponSystem *parentWeaponSystem_;
     65            Timer<Weapon> reloadTimer_;
    5466
    5567
Note: See TracChangeset for help on using the changeset viewer.