- Timestamp:
- Nov 5, 2008, 7:57:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/Weapon.h
r2106 r2145 33 33 34 34 #include "core/BaseObject.h" 35 35 #include "tools/BillboardSet.h" 36 #include "tools/Timer.h" 36 37 37 38 namespace orxonox … … 45 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 47 47 void addMunition();48 48 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(); 49 58 50 59 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_; 54 66 55 67
Note: See TracChangeset
for help on using the changeset viewer.