Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 20, 2005, 1:41:19 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: states are now flow'n through

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/weapons/weapon_manager.h

    r4837 r4906  
    3939
    4040//! 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
     41typedef enum
     42{
     43  WM_CONFIG0           = 0,
     44  WM_CONFIG1           = 1,
     45  WM_CONFIG2           = 2,
     46  WM_CONFIG3           = 3,
    4547
     48  WM_CONFIGCOUNT       = 4
     49} WM_CONFIG;
    4650
    4751//! 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
     52typedef 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,
    5762
     63  WM_SLOT_COUNT         = 8,
     64
     65  WM_FREE_SLOT          = -1
     66} WM_SLOT;
    5867
    5968//! this is a weapon Configuration: it has up to 8 slots
     
    7786    void setSlotCount(int nrOfSlots);
    7887
    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);
    8190    void nextWeaponConf();
    8291
Note: See TracChangeset for help on using the changeset viewer.