Release 0.03

master
Kasi 2018-01-18 02:45:28 +00:00
parent 7e47548f4b
commit 02ec43cfea
5 changed files with 48 additions and 28 deletions

View File

@ -7,11 +7,9 @@ class Object
{
public:
void* Obj;
Object();
Object(const void* Obj);
Object(const Object& O);
void* Get() const;
Object& operator=(const Object& O);
bool operator==(const Object& O) const;
bool operator!=(const Object& O) const;

View File

@ -15,7 +15,7 @@ class Bank
{
public:
/**
* @brief Returns True if the Bank is currently Open
* @brief Returns true if the Bank is currently Open
* @return True if the Bank is currently Open
* @par Example
* @code
@ -26,7 +26,7 @@ class Bank
static bool IsOpen();
/**
* @brief Attempts to Close the Bank if it's Currently Open, returns True if the Bank is currently Closed
* @brief Attempts to Close the Bank if it's Currently Open, returns true if the Bank is currently Closed
* @return Returns True if the is successfully Closed, or the Bank is already Closed
* @par Example
* @code
@ -117,7 +117,7 @@ class Bank
/**
* @brief Returns True if the Bank contains the specified Item matching the passed ID
* @brief Returns true if the Bank contains the specified Item matching the passed ID
* @return True if the Bank contains the specified Item matching the passed ID
* @par Example
* @code
@ -126,9 +126,8 @@ class Bank
* @endcode
*/
static bool Contains(std::int32_t ID);
/**
* @brief Returns True if the Bank contains the specified Item matching the passed Name
* @brief Returns true if the Bank contains the specified Item matching the passed Name
* @return True if the Bank contains the specified Item matching the passed Name
* @par Example
* @code
@ -137,29 +136,49 @@ class Bank
* @endcode
*/
static bool Contains(const std::string& Name);
/**
* @brief Returns True if the Bank contains any of the specified Item matching the passed IDs
* @return True if the Bank contains any of the specified Item matching the passed IDs
* @par Example
* @code
* if (!Bank::Contains(std::vector<std::int32_t> { 995, 207, 584 }))
* return false;
* @endcode
* @brief Returns true if the Bank contains all passed Item IDs, at least once
* @return True if the Bank contains all passed Item IDs, at least once
*/
static bool Contains(const std::vector<std::int32_t>& IDs);
/**
* @brief Returns True if the Bank contains any of the specified Item matching the passed Names
* @return True if the Bank contains any of the specified Item matching the passed Names
* @par Example
* @code
* if (!Bank::Contains(std::vector<std::int32_t> { "Coins", "Oak Logs", "Air Runes" }))
* return false;
* @endcode
* @brief Returns true if the Bank contains all passed Item Names, at least once
* @return True if the Bank contains all passed Item Item Names, at least once
*/
static bool Contains(const std::vector<std::string>& Names);
/**
* @brief Returns true if the Bank contains any of the passed IDs, at least once
* @return True if the Bank contains any of the passed Item IDs, at least once
*/
static bool ContainsAny(const std::vector<std::int32_t>& IDs);
/**
* @brief Returns true if the Bank contains any of the passed Item Names, at least once
* @return True if the Bank contains any of the passed Item Names, at least once
*/
static bool ContainsAny(const std::vector<std::string>& Names);
/**
* @brief Returns true if the Bank only contains the passed Item ID
* @return True if the Bank only contains the passed Item ID
*/
static bool ContainsOnly(std::int32_t ID);
/**
* @brief Returns true if the Bank only contains the passed Item Name
* @return True if the Bank only contains the passed Item Name
*/
static bool ContainsOnly(const std::string& Name);
/**
* @brief Returns true if the Bank only contains the passed Item IDs
* @return True if the Bank only contains the passed Item IDs
*/
static bool ContainsOnly(const std::vector<std::int32_t>& IDs);
/**
* @brief Returns true if the Bank only contains the passed Item Names
* @return True if the Bank only contains the passed Item Names
*/
static bool ContainsOnly(const std::vector<std::string>& Names);
/**
* @brief Returns the currently active Bank Tab
* @return The currently active Bank Tab
@ -210,7 +229,7 @@ class Bank
/**
* @brief Attempts to Scroll to the specified Item matching the passed ID
* @return True if it successfully scrolls to the specified Item matching the passed ID
* @note Returns True if the Item is already in view
* @note Returns true if the Item is already in view
* @par Example
* @code
* if (Bank::Contains(995))
@ -222,7 +241,7 @@ class Bank
/**
* @brief Attempts to Scroll to the specified Item matching the passed Name
* @return True if it successfully scrolls to the specified Item matching the passed Name
* @note Returns True if the Item is already in view
* @note Returns true if the Item is already in view
* @par Example
* @code
* if (Bank::Contains("Coins"))
@ -233,7 +252,7 @@ class Bank
/**
* @brief Attempts to Scroll to the specified Item matching the passed Name, and optionally Opens the Tab
* @return True if it successfully scrolls to the specified Item matching the passed Name
* @note Returns True if the Item is already in view
* @note Returns true if the Item is already in view
* @par Example
* @code
* if (Bank::Contains("Coins"))

View File

@ -48,6 +48,9 @@ class Equipment
static bool Contains(const std::vector<std::int32_t>& IDs);
static bool Contains(const std::vector<std::string>& Names);
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);

View File

@ -61,8 +61,8 @@ class Inventory
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);
static bool Contains(const std::vector<std::int32_t>& IDs); // true if all items are found at least once
static bool Contains(const std::vector<std::string>& Names); // true if all items are found at least once
static bool ContainsAny(const std::vector<std::int32_t>& IDs);
static bool ContainsAny(const std::vector<std::string>& Names);

Binary file not shown.