Release 0.73
							parent
							
								
									37b4a2935e
								
							
						
					
					
						commit
						4e2056146e
					
				| 
						 | 
					@ -16,6 +16,7 @@
 | 
				
			||||||
#include "Interfaces/Bank.hpp"
 | 
					#include "Interfaces/Bank.hpp"
 | 
				
			||||||
#include "Interfaces/Chat.hpp"
 | 
					#include "Interfaces/Chat.hpp"
 | 
				
			||||||
#include "Interfaces/DepositBox.hpp"
 | 
					#include "Interfaces/DepositBox.hpp"
 | 
				
			||||||
 | 
					#include "Interfaces/Exchange.hpp"
 | 
				
			||||||
#include "Interfaces/Login.hpp"
 | 
					#include "Interfaces/Login.hpp"
 | 
				
			||||||
#include "Interfaces/Mainscreen.hpp"
 | 
					#include "Interfaces/Mainscreen.hpp"
 | 
				
			||||||
#include "Interfaces/Makescreen.hpp"
 | 
					#include "Interfaces/Makescreen.hpp"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -52,7 +52,6 @@ class Bank
 | 
				
			||||||
        static std::vector<Interactable::Item> GetItems(const std::vector<std::string>& Names);
 | 
					        static std::vector<Interactable::Item> GetItems(const std::vector<std::string>& Names);
 | 
				
			||||||
        static std::vector<Interactable::Item> GetItems(const std::function<bool (const Interactable::Item&)>& Filter);
 | 
					        static std::vector<Interactable::Item> GetItems(const std::function<bool (const Interactable::Item&)>& Filter);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        static Interactable::Item GetItem();
 | 
					 | 
				
			||||||
        static Interactable::Item GetItem(std::int32_t ID);
 | 
					        static Interactable::Item GetItem(std::int32_t ID);
 | 
				
			||||||
        static Interactable::Item GetItem(const std::string& Name);
 | 
					        static Interactable::Item GetItem(const std::string& Name);
 | 
				
			||||||
        static Interactable::Item GetItem(const std::vector<std::int32_t>& IDs);
 | 
					        static Interactable::Item GetItem(const std::vector<std::int32_t>& IDs);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,56 @@
 | 
				
			||||||
 | 
					#ifndef EXCHANGE_HPP_INCLUDED
 | 
				
			||||||
 | 
					#define EXCHANGE_HPP_INCLUDED
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <cstdint>
 | 
				
			||||||
 | 
					#include <string>
 | 
				
			||||||
 | 
					#include <vector>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** @addtogroup Interfaces
 | 
				
			||||||
 | 
					* @{ */
 | 
				
			||||||
 | 
					class Exchange
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    public:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        typedef enum SLOT_STATE
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            EMPTY = 0,
 | 
				
			||||||
 | 
					            STARTING_BUY_OFFER = 1,
 | 
				
			||||||
 | 
					            BUY_OFFER_INCOMPLETE = 2,
 | 
				
			||||||
 | 
					            BUY_OFFER_UPDATING = 3,
 | 
				
			||||||
 | 
					            BUY_OFFER_CANCELING = 4,
 | 
				
			||||||
 | 
					            BUY_OFFER_COMPLETE = 5,
 | 
				
			||||||
 | 
					            STARTING_SELL_OFFER = 9,
 | 
				
			||||||
 | 
					            SELL_OFFER_INCOMPLETE = 10,
 | 
				
			||||||
 | 
					            SELL_OFFER_UPDATING = 11,
 | 
				
			||||||
 | 
					            SELL_OFFER_CANCELING = 12,
 | 
				
			||||||
 | 
					            SELL_OFFER_COMPLETE = 13,
 | 
				
			||||||
 | 
					            STATE_UNDEFINED = 14
 | 
				
			||||||
 | 
					        } SLOT_STATE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        typedef enum SLOT_MODE
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					            BUY = 0,
 | 
				
			||||||
 | 
					            SELL = 1,
 | 
				
			||||||
 | 
					            MODE_UNDEFINED = 2
 | 
				
			||||||
 | 
					        } SLOT_MODE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        static bool IsOpen();
 | 
				
			||||||
 | 
					        static bool Close();
 | 
				
			||||||
 | 
					        static SLOT_STATE GetSlotState(const std::uint32_t Slot);
 | 
				
			||||||
 | 
					        static bool SlotOccupied(const std::uint32_t Slot);
 | 
				
			||||||
 | 
					        static std::vector<SLOT_STATE> GetAllSlotStates();
 | 
				
			||||||
 | 
					        static bool AllSlotsOccupied();
 | 
				
			||||||
 | 
					        static std::int32_t GetCurrentSlotIndex();
 | 
				
			||||||
 | 
					        static SLOT_MODE GetCurrentSlotMode();
 | 
				
			||||||
 | 
					        static std::int32_t GetCurrentSlotItemID();
 | 
				
			||||||
 | 
					        static std::string GetCurrentSlotItemName();
 | 
				
			||||||
 | 
					        static std::int32_t GetCurrentSlotAmount();
 | 
				
			||||||
 | 
					        static std::int32_t GetCurrentSlotPrice();
 | 
				
			||||||
 | 
					        static bool OfferOpen();
 | 
				
			||||||
 | 
					        static bool CloseOffer();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/** @} */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif // EXCHANGE_HPP_INCLUDED
 | 
				
			||||||
| 
						 | 
					@ -43,7 +43,6 @@ class Equipment
 | 
				
			||||||
        static std::vector<Interactable::Item> GetItems(const std::vector<std::string>& Names);
 | 
					        static std::vector<Interactable::Item> GetItems(const std::vector<std::string>& Names);
 | 
				
			||||||
        static std::vector<Interactable::Item> GetItems(const std::function<bool (const Interactable::Item&)>& Filter);
 | 
					        static std::vector<Interactable::Item> GetItems(const std::function<bool (const Interactable::Item&)>& Filter);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        static Interactable::Item GetItem();
 | 
					 | 
				
			||||||
        static Interactable::Item GetItem(SLOT Slot);
 | 
					        static Interactable::Item GetItem(SLOT Slot);
 | 
				
			||||||
        static Interactable::Item GetItem(std::int32_t ID);
 | 
					        static Interactable::Item GetItem(std::int32_t ID);
 | 
				
			||||||
        static Interactable::Item GetItem(const std::string& Name);
 | 
					        static Interactable::Item GetItem(const std::string& Name);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -29,7 +29,6 @@ class Inventory
 | 
				
			||||||
        static std::vector<Interactable::Item> GetItems(const std::vector<std::string>& Names);
 | 
					        static std::vector<Interactable::Item> GetItems(const std::vector<std::string>& Names);
 | 
				
			||||||
        static std::vector<Interactable::Item> GetItems(const std::function<bool (const Interactable::Item&)>& Filter);
 | 
					        static std::vector<Interactable::Item> GetItems(const std::function<bool (const Interactable::Item&)>& Filter);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        static Interactable::Item GetItem();
 | 
					 | 
				
			||||||
        static Interactable::Item GetItem(std::int32_t ID);
 | 
					        static Interactable::Item GetItem(std::int32_t ID);
 | 
				
			||||||
        static Interactable::Item GetItem(const std::string& Name);
 | 
					        static Interactable::Item GetItem(const std::string& Name);
 | 
				
			||||||
        static Interactable::Item GetItem(const std::vector<std::int32_t>& IDs);
 | 
					        static Interactable::Item GetItem(const std::vector<std::int32_t>& IDs);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,9 +10,9 @@ class Trade
 | 
				
			||||||
    public:
 | 
					    public:
 | 
				
			||||||
        static bool IsOpen();
 | 
					        static bool IsOpen();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        static std::vector<std::int32_t> GetYourOfferItemIDs();
 | 
					        static std::vector<std::int32_t> GetMyOfferItemIDs();
 | 
				
			||||||
        static std::vector<std::string> GetYourOfferItemNames();
 | 
					        static std::vector<std::string> GetMyOfferItemNames();
 | 
				
			||||||
        static std::vector<std::int32_t> GetYourOfferItemAmounts();
 | 
					        static std::vector<std::int32_t> GetMyOfferItemAmounts();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        static std::vector<std::int32_t> GetTheirOfferItemIDs();
 | 
					        static std::vector<std::int32_t> GetTheirOfferItemIDs();
 | 
				
			||||||
        static std::vector<std::string> GetTheirOfferItemNames();
 | 
					        static std::vector<std::string> GetTheirOfferItemNames();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											Binary file not shown.
										
									
								
							
		Loading…
	
		Reference in New Issue