- Timestamp:
- Nov 12, 2008, 4:45:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weapon2/src/orxonox/objects/weaponSystem/WeaponSystem.h
r2186 r2203 39 39 namespace orxonox 40 40 { 41 //put here all existing munitionTypes42 namespace MunitionType43 {44 enum Enum45 { laserGunMunition };46 }47 48 //put here all weapon fire modes.49 //they have to be added to Pawn and HumanController, too.50 namespace WeaponMode51 {52 enum Enum53 { fire, altFire, altFire2 };54 }55 41 56 42 class _OrxonoxExport WeaponSystem : public BaseObject … … 63 49 64 50 void attachWeaponSet(WeaponSet *wSet); 65 void addMunitionType(Munition *munitionPointer);66 51 void fire(); 67 52 void fire(WeaponMode::Enum fireMode); 68 53 //void setActiveWeaponSet(unsigned int n); 69 54 WeaponSet * getWeaponSetPointer(unsigned int n); 70 Munition * getAttachedMunitionPointer(); 55 56 void setNewMunition(std::string munitionType, Munition * munitionToAdd); 57 Munition * getMunitionType(std::string munitionType); 71 58 72 59 inline void setParentSpaceShip(SpaceShip *parentSpaceShip) … … 78 65 private: 79 66 std::vector<WeaponSet *> weaponSets_; 80 std::map< MunitionType::Enum,Munition *> munitionSet_;67 std::map<std::string, Munition *> munitionSet_; 81 68 WeaponSet *activeWeaponSet_; 82 69 SpaceShip *parentSpaceShip_; 83 Munition * attachedMunition_;84 70 }; 85 71 }
Note: See TracChangeset
for help on using the changeset viewer.