Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2009, 12:34:55 AM (15 years ago)
Author:
landauf
Message:
  • switched back to std::vector for the WeaponSlots to keep them in the same order as in the XML file
  • added DefaultWeaponmodeLink, a class which links weaponmodes (a property of a Weapon or a WeaponPack) with firemodes (one firemode corresponds to one WeaponSet). This can be changed later (for example in a nice GUI), but DefaultWeaponmodeLink defines the default value.
File:
1 edited

Legend:

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

    r2914 r2915  
    3535#include <set>
    3636#include <map>
     37#include <vector>
    3738
    3839#include "core/BaseObject.h"
     
    9394        private:
    9495            std::map<unsigned int, WeaponSet *> weaponSets_;
    95             std::set<WeaponSlot *> weaponSlots_;
     96            std::vector<WeaponSlot *> weaponSlots_;
    9697            std::set<WeaponPack *> weaponPacks_;
    9798            std::map<std::string, Munition *> munitionSet_;
Note: See TracChangeset for help on using the changeset viewer.