Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 8, 2006, 5:19:39 PM (18 years ago)
Author:
bensch
Message:

Gui Shows weapons (simple)

File:
1 edited

Legend:

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

    r6142 r6442  
    5454
    5555    void setSlotCount(unsigned int slotCount);
     56    unsigned int getSlotCount() const { return this->slotCount; };
    5657    // setting up the WeaponManager with the following functions
    5758    void setSlotPosition(int slot, const Vector& position);
     
    6970    void addWeapon(Weapon* weapon, int configID = -1, int slotID = -1);
    7071    void removeWeapon(Weapon* weapon, int configID = -1);
     72    Weapon* getWeapon(int slotID) const { return (slotID >= 0 && slotID < this->slotCount)? this->currentSlotConfig[slotID].currentWeapon: NULL; };
    7173
    7274    // FIXME ::
Note: See TracChangeset for help on using the changeset viewer.