AlpacaLibrary/Include/Game/Interfaces/Bank.hpp

93 lines
3.7 KiB
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef BANK_HPP_INCLUDED
#define BANK_HPP_INCLUDED
#include "../../Core/Types/Convex.hpp"
#include <string>
#include <cstdint>
#include <vector>
/** @addtogroup Interfaces
* @{ */
/**
* @note All methods require the Bank to be currently Open to successfully return a proper result
*/
class Bank
{
public:
2018-04-16 03:53:24 +00:00
typedef enum WITHDRAW_MODE
{
ITEM,
NOTED
} WITHDRAW_MODE;
2017-12-25 23:49:48 +00:00
static bool IsOpen();
static bool Close();
2018-05-10 01:08:38 +00:00
static bool EnterPin();
2017-12-25 23:49:48 +00:00
static std::vector<std::int32_t> GetItemIDs();
static std::vector<std::string> GetItemNames();
static std::vector<std::int32_t> GetItemAmounts();
static std::int32_t GetItemAmount(std::int32_t ID);
static std::int32_t GetItemAmount(const std::string& Name);
static std::int32_t GetIndexOf(std::int32_t ID);
static std::int32_t GetIndexOf(const std::string& Name);
2018-05-10 01:08:38 +00:00
static Convex GetConvexByIndex(std::int32_t Index);
2017-12-25 23:49:48 +00:00
static Convex GetConvexOf(std::int32_t ID);
static Convex GetConvexOf(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);
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);
2017-12-25 23:49:48 +00:00
static std::int32_t GetCurrentTab();
static std::int32_t GetTabOf(std::int32_t ID);
static std::int32_t GetTabOf(const std::string& Name);
static bool OpenTab(std::int32_t Tab);
2018-05-10 14:03:33 +00:00
static bool ScrollTo(std::int32_t ID, bool OpenRespectiveTab = false);
static bool ScrollTo(const std::string& Name, bool OpenRespectiveTab = false);
2017-12-25 23:49:48 +00:00
2018-05-10 01:08:38 +00:00
static bool InteractItemByIndex(std::int32_t ID, const std::string& Option);
2018-05-10 14:03:33 +00:00
static bool InteractItem(std::int32_t ID, const std::string& Option, bool OpenRespectiveTab = false);
static bool InteractItem(const std::string& Name, const std::string& Option, bool OpenRespectiveTab = false);
static bool WithdrawXOf(std::int32_t ID, std::int32_t Amount, bool OpenRespectiveTab = false);
static bool WithdrawXOf(const std::string& Name, std::int32_t Amount, bool OpenRespectiveTab = false);
static bool WithdrawAllOf(std::int32_t ID, bool OpenRespectiveTab = false);
static bool WithdrawAllOf(const std::string& Name, bool OpenRespectiveTab = false);
static bool WithdrawAllButOneOf(std::int32_t ID, bool OpenRespectiveTab = false);
static bool WithdrawAllButOneOf(const std::string& Name, bool OpenRespectiveTab = false);
2017-12-25 23:49:48 +00:00
static bool DepositAllOf(std::int32_t ID);
static bool DepositAllOf(const std::string& Name);
static bool DepositXOf(std::int32_t ID, std::int32_t Amount);
static bool DepositXOf(const std::string& Name, std::int32_t Amount);
2018-05-10 01:08:38 +00:00
static bool DepositAllExcept(const std::string& Name);
static bool DepositAllExcept(const std::vector<std::string>& Names);
2018-04-14 01:05:35 +00:00
static bool DepositAllExcept(std::int32_t ID);
2018-05-10 01:08:38 +00:00
static bool DepositAllExcept(const std::vector<std::int32_t>& IDs);
2017-12-25 23:49:48 +00:00
static bool DepositAll();
static bool DepositEquipment();
2018-04-16 03:53:24 +00:00
static WITHDRAW_MODE GetWithdrawMode();
2018-05-10 01:08:38 +00:00
static bool SetWithdrawMode(WITHDRAW_MODE Mode);
2017-12-25 23:49:48 +00:00
};
/** @} */
#endif // BANK_HPP_INCLUDED