Changeset 4906 in orxonox.OLD for orxonox/trunk/src/world_entities/weapons/weapon_manager.h
- Timestamp:
- Jul 20, 2005, 1:41:19 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/weapons/weapon_manager.h
r4837 r4906 39 39 40 40 //! this is an identifier for the weapon config 41 #define W_CONFIG0 0 42 #define W_CONFIG1 1 43 #define W_CONFIG2 2 44 #define W_CONFIG3 3 41 typedef enum 42 { 43 WM_CONFIG0 = 0, 44 WM_CONFIG1 = 1, 45 WM_CONFIG2 = 2, 46 WM_CONFIG3 = 3, 45 47 48 WM_CONFIGCOUNT = 4 49 } WM_CONFIG; 46 50 47 51 //! this is an identifier for the slot. there are up to 8 weapon slots -> this means there can't be more than 8 weapons at the same time 48 #define W_SLOT0 0 49 #define W_SLOT1 1 50 #define W_SLOT2 2 51 #define W_SLOT3 3 52 #define W_SLOT4 4 53 #define W_SLOT5 5 54 #define W_SLOT6 6 55 #define W_SLOT7 7 56 #define W_FREE_SLOT 99 52 typedef enum 53 { 54 WM_SLOT0 = 0, 55 WM_SLOT1 = 1, 56 WM_SLOT2 = 2, 57 WM_SLOT3 = 3, 58 WM_SLOT4 = 4, 59 WM_SLOT5 = 5, 60 WM_SLOT6 = 6, 61 WM_SLOT7 = 7, 57 62 63 WM_SLOT_COUNT = 8, 64 65 WM_FREE_SLOT = -1 66 } WM_SLOT; 58 67 59 68 //! this is a weapon Configuration: it has up to 8 slots … … 77 86 void setSlotCount(int nrOfSlots); 78 87 79 void addWeapon(Weapon* weapon, int configID = W _CONFIG0, int slotID = W_FREE_SLOT);80 void removeWeapon(Weapon* weapon, int configID = W _CONFIG0);88 void addWeapon(Weapon* weapon, int configID = WM_CONFIG0, int slotID = WM_FREE_SLOT); 89 void removeWeapon(Weapon* weapon, int configID = WM_CONFIG0); 81 90 void nextWeaponConf(); 82 91
Note: See TracChangeset
for help on using the changeset viewer.