AlpacaLibrary/Include/Game/Interfaces/GameTabs/Equipment.hpp

71 lines
2.1 KiB
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef EQUIPMENT_HPP_INCLUDED
#define EQUIPMENT_HPP_INCLUDED
#include <cstdint>
#include <vector>
#include <string>
/** @addtogroup GameTabs
* @{ */
class Equipment
{
public:
typedef enum SLOTS
{
HEAD,
CAPE,
NECK,
WEAPON,
BODY,
SHIELD,
LEGS,
HANDS,
FEET,
RING,
AMMO
} SLOTS;
static bool IsOpen();
static bool Open();
static bool IsEmpty();
static std::vector<int32_t> GetItemIDs();
static std::vector<std::string> GetItemNames();
static std::vector<std::int32_t> GetItemAmounts();
static std::int32_t GetItemID(SLOTS Slot);
static std::string GetItemName(SLOTS Slot);
static std::int32_t GetItemAmount(SLOTS Slot);
static std::int32_t GetItemAmount(std::int32_t ID);
static std::int32_t GetItemAmount(const std::string& Name);
static SLOTS GetSlotOf(std::int32_t ID);
static SLOTS GetSlotOf(const std::string& Name);
static bool Contains(std::int32_t ID);
static bool Contains(const std::string& Name);
static bool Contains(const std::vector<std::int32_t>& IDs);
static bool Contains(const std::vector<std::string>& Names);
2018-01-18 02:45:28 +00:00
static bool ContainsAny(const std::vector<std::int32_t>& IDs);
static bool ContainsAny(const std::vector<std::string>& Names);
2017-12-25 23:49:48 +00:00
static bool ContainsOnly(std::int32_t ID);
static bool ContainsOnly(const std::string& Name);
static bool ContainsOnly(const std::vector<std::int32_t>& IDs);
static bool ContainsOnly(const std::vector<std::string>& Names);
2018-05-10 01:08:38 +00:00
static bool InteractItemBySlot(SLOTS Slot, const std::string& Option);
static bool InteractItem(std::int32_t ID, const std::string& Option);
static bool InteractItem(const std::string& Name, const std::string& Option);
2017-12-25 23:49:48 +00:00
static bool UnequipItem(SLOTS Slot);
static bool UnequipItem(std::int32_t ID);
static bool UnequipItem(const std::string& Name);
};
/** @} */
#endif // EQUIPMENT_HPP_INCLUDED