- Timestamp:
- Nov 5, 2008, 7:57:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSystem.h
r2107 r2145 39 39 namespace orxonox 40 40 { 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 41 56 class _OrxonoxExport WeaponSystem : public BaseObject 42 57 { … … 48 63 49 64 void attachWeaponSet(WeaponSet *wSet); 65 void addMunitionType(Munition *munitionPointer); 50 66 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); 53 69 WeaponSet * getWeaponSetPointer(unsigned int n); 54 70 … … 61 77 private: 62 78 std::vector<WeaponSet *> weaponSets_; 79 std::map<MunitionType::Enum,Munition *> munitionSet_; 63 80 WeaponSet *activeWeaponSet_; 64 65 81 SpaceShip *parentSpaceShip_; 66 82 };
Note: See TracChangeset
for help on using the changeset viewer.