Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2007, 3:13:28 AM (19 years ago)
Author:
patrick
Message:

mounting weapon slots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/weapon_slot.h

    r10440 r10534  
    3636  inline void setNextWeapon(Weapon* weapon) { this->nextWeapon = weapon; }
    3737
     38
     39  inline void setWeaponConfig(int slot, int side) { this->weaponSlot = slot; this->weaponSide = side; }
     40  inline int getWeaponSlot() { return this->weaponSlot; }
     41  inline int getWeaponSide() { return this->weaponSide; }
     42
     43
    3844private:
     45
     46  int           weaponSlot;
     47  int           weaponSide;
    3948
    4049  long          capability;             //!< the capabilities of the Slot @see WeaponSlotCapability.
Note: See TracChangeset for help on using the changeset viewer.