1 #ifndef BANK_HPP_INCLUDED
2 #define BANK_HPP_INCLUDED
4 #include "../../Core/Types/Convex.hpp"
5 #include "../../Game/Interactable/Item.hpp"
37 bool Close(
bool AllowEsc =
true);
44 std::vector<Interactable::Item>
GetItems(std::int32_t ID);
45 std::vector<Interactable::Item>
GetItems(
const std::string& Name);
46 std::vector<Interactable::Item>
GetItems(
const std::vector<std::int32_t>& IDs);
47 std::vector<Interactable::Item>
GetItems(
const std::vector<std::string>& Names);
56 std::int32_t
Count(std::int32_t ID);
57 std::int32_t
Count(
const std::string& Name);
66 bool Contains(
const std::vector<std::int32_t>& IDs);
67 bool Contains(
const std::vector<std::string>& Names);
68 bool Contains(
const std::vector<Interactable::Item>& Items);
72 bool ContainsAny(
const std::vector<Interactable::Item>& Items);
76 std::int32_t
GetTabOf(
const std::string& Name);
80 bool ScrollTo(std::int32_t ID,
bool OpenRespectiveTab =
false);
81 bool ScrollTo(
const std::string& Name,
bool OpenRespectiveTab =
false);
85 bool Withdraw(std::int32_t ID, std::int32_t Amount,
bool OpenRespectiveTab =
false);
86 bool Withdraw(
const std::string& Name, std::int32_t Amount,
bool OpenRespectiveTab =
false);
90 bool Deposit(std::int32_t ID, std::int32_t Amount);
91 bool Deposit(
const std::string& Name, std::int32_t Amount);
97 bool DepositAllExcept(
const std::vector<std::int32_t>& IDs,
double DepsositAllChance = 0.00);
98 bool DepositAllExcept(
const std::vector<std::string>& Names,
double DepsositAllChance = 0.00);
99 bool DepositAllExcept(
const std::vector<Interactable::Item>& Items,
double DepsositAllChance = 0.00);
bool ScrollTo(std::int32_t ID, bool OpenRespectiveTab=false)
bool OpenTab(std::int32_t Tab)
bool DepositAllExcept(std::int32_t ID, double DepsositAllChance=0.00)
std::vector< Interactable::Item > GetItems()
bool Contains(std::int32_t ID)
PIN_STEP GetEnterPinStep()
WITHDRAW_MODE GetWithdrawMode()
Interactable::Item GetItem(std::int32_t ID)
bool EnterPin(bool TerminateOnError=true)
bool Deposit(std::int32_t ID, std::int32_t Amount)
std::vector< std::string > GetItemNames()
bool Close(bool AllowEsc=true)
std::int32_t GetIndexOf(std::int32_t ID)
bool SetWithdrawMode(WITHDRAW_MODE Mode)
std::int32_t GetDefaultWithdrawQuantity()
bool SetDefaultWithdrawQuantity(std::int32_t Amount)
bool ContainsAny(const std::vector< std::int32_t > &IDs)
std::vector< std::int32_t > GetItemIDs()
std::int32_t GetCurrentTab()
bool Withdraw(std::int32_t ID, std::int32_t Amount, bool OpenRespectiveTab=false)
std::vector< std::int32_t > GetItemAmounts()
std::int32_t Count(std::int32_t ID)
std::int32_t GetTabOf(std::int32_t ID)