AlpacaLibary  1.63
A closed source C++ bot for OSRS
Exchange Namespace Reference

Typedefs

typedef std::int32_t SLOT
 
typedef enum Exchange::SLOT_STATE SLOT_STATE
 
typedef enum Exchange::SLOT_MODE SLOT_MODE
 
typedef enum Exchange::COLLECT_METHOD COLLECT_METHOD
 
typedef enum Exchange::COLLECT_SLOT COLLECT_SLOT
 

Enumerations

enum  SLOT_STATE {
  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_DISABLED = 14 ,
  STATE_UNDEFINED = 15
}
 
enum  SLOT_MODE { BUY = 0 , SELL = 1 , MODE_DISABLED = 2 , MODE_UNDEFINED = 3 }
 
enum  COLLECT_METHOD { ITEM , NOTE , BANK }
 
enum  COLLECT_SLOT { ONE , TWO }
 

Functions

bool IsOpen ()
 
bool Open ()
 
bool Close ()
 
SLOT_STATE GetSlotState (const Exchange::SLOT Slot)
 
bool SlotOccupied (const Exchange::SLOT Slot)
 
std::vector< SLOT_STATEGetAllSlotStates ()
 
bool AllSlotsOccupied ()
 
std::int32_t GetOfferIndex ()
 
SLOT_MODE GetOfferMode ()
 
std::int32_t GetOfferItemID ()
 
std::string GetOfferItemName ()
 
std::int32_t GetOfferAmount ()
 
std::int32_t GetOfferPrice ()
 
bool IsOfferOpen ()
 
bool CloseOffer ()
 
bool IsOffersOpen ()
 
bool SlotUsable (const Exchange::SLOT Slot)
 
bool CanCollect ()
 
bool CollectAll (const bool Inventory=true)
 
bool Collect (const Exchange::COLLECT_METHOD Method=Exchange::BANK)
 
bool IsBuyOfferOpen ()
 
bool IsSellOfferOpen ()
 
bool OpenBuyOffer (const Exchange::SLOT Slot=-1)
 
bool OpenSellOffer (const Exchange::SLOT Slot=-1)
 
Exchange::SLOT GetBuyOffer (std::int32_t ID)
 
Exchange::SLOT GetBuyOffer (const std::string &Name)
 
Exchange::SLOT GetBuyOffer (const std::function< bool(const Internal::ExchangeOffer &)> &Filter)
 
std::vector< Exchange::SLOTGetBuyOffers (std::int32_t ID)
 
std::vector< Exchange::SLOTGetBuyOffers (const std::string &Name)
 
std::vector< Exchange::SLOTGetBuyOffers (const std::function< bool(const Internal::ExchangeOffer &)> &Filter)
 
Exchange::SLOT GetSellOffer (std::int32_t ID)
 
Exchange::SLOT GetSellOffer (const std::string &Name)
 
Exchange::SLOT GetSellOffer (const std::function< bool(const Internal::ExchangeOffer &)> &Filter)
 
std::vector< Exchange::SLOTGetSellOffers (std::int32_t ID)
 
std::vector< Exchange::SLOTGetSellOffers (const std::string &Name)
 
std::vector< Exchange::SLOTGetSellOffers (const std::function< bool(const Internal::ExchangeOffer &)> &Filter)
 
bool SetSellItem (const std::string &Name)
 
bool SetSellItem (std::int32_t ID)
 
bool SetBuyItem (const std::string &Name)
 
bool SetOfferAmount (std::uint32_t Amount)
 
bool SetOfferPrice (std::uint32_t Price)
 
bool SetOfferGuidePrice ()
 
bool ConfirmOffer ()
 
std::string GetCollectSlotName (Exchange::COLLECT_SLOT Slot)
 
std::int32_t GetCollectSlotID (Exchange::COLLECT_SLOT Slot)
 
std::int32_t GetCollectSlotAmount (Exchange::COLLECT_SLOT Slot)
 
bool AbortOffer (const Exchange::SLOT Slot=-1)
 
bool OpenOffer (const Exchange::SLOT Slot)
 

Typedef Documentation

◆ COLLECT_METHOD

◆ COLLECT_SLOT

◆ SLOT

typedef std::int32_t Exchange::SLOT

Definition at line 12 of file Exchange.hpp.

◆ SLOT_MODE

◆ SLOT_STATE

Enumeration Type Documentation

◆ COLLECT_METHOD

Enumerator
ITEM 
NOTE 
BANK 

Definition at line 39 of file Exchange.hpp.

◆ COLLECT_SLOT

Enumerator
ONE 
TWO 

Definition at line 98 of file Exchange.hpp.

◆ SLOT_MODE

Enumerator
BUY 
SELL 
MODE_DISABLED 
MODE_UNDEFINED 

Definition at line 31 of file Exchange.hpp.

◆ SLOT_STATE

Enumerator
STATE_EMPTY 
STARTING_BUY_OFFER 
BUY_OFFER_INCOMPLETE 
BUY_OFFER_UPDATING 
BUY_OFFER_CANCELING 
BUY_OFFER_COMPLETE 
STARTING_SELL_OFFER 
SELL_OFFER_INCOMPLETE 
SELL_OFFER_UPDATING 
SELL_OFFER_CANCELING 
SELL_OFFER_COMPLETE 
STATE_DISABLED 
STATE_UNDEFINED 

Definition at line 14 of file Exchange.hpp.

Function Documentation

◆ AbortOffer()

bool Exchange::AbortOffer ( const Exchange::SLOT  Slot = -1)

◆ AllSlotsOccupied()

bool Exchange::AllSlotsOccupied ( )

◆ CanCollect()

bool Exchange::CanCollect ( )

◆ Close()

bool Exchange::Close ( )

◆ CloseOffer()

bool Exchange::CloseOffer ( )

◆ Collect()

bool Exchange::Collect ( const Exchange::COLLECT_METHOD  Method = Exchange::BANK)

◆ CollectAll()

bool Exchange::CollectAll ( const bool  Inventory = true)

◆ ConfirmOffer()

bool Exchange::ConfirmOffer ( )

◆ GetAllSlotStates()

std::vector<SLOT_STATE> Exchange::GetAllSlotStates ( )

◆ GetBuyOffer() [1/3]

Exchange::SLOT Exchange::GetBuyOffer ( const std::function< bool(const Internal::ExchangeOffer &)> &  Filter)

◆ GetBuyOffer() [2/3]

Exchange::SLOT Exchange::GetBuyOffer ( const std::string &  Name)

◆ GetBuyOffer() [3/3]

Exchange::SLOT Exchange::GetBuyOffer ( std::int32_t  ID)

◆ GetBuyOffers() [1/3]

std::vector<Exchange::SLOT> Exchange::GetBuyOffers ( const std::function< bool(const Internal::ExchangeOffer &)> &  Filter)

◆ GetBuyOffers() [2/3]

std::vector<Exchange::SLOT> Exchange::GetBuyOffers ( const std::string &  Name)

◆ GetBuyOffers() [3/3]

std::vector<Exchange::SLOT> Exchange::GetBuyOffers ( std::int32_t  ID)

◆ GetCollectSlotAmount()

std::int32_t Exchange::GetCollectSlotAmount ( Exchange::COLLECT_SLOT  Slot)

◆ GetCollectSlotID()

std::int32_t Exchange::GetCollectSlotID ( Exchange::COLLECT_SLOT  Slot)

◆ GetCollectSlotName()

std::string Exchange::GetCollectSlotName ( Exchange::COLLECT_SLOT  Slot)

◆ GetOfferAmount()

std::int32_t Exchange::GetOfferAmount ( )

◆ GetOfferIndex()

std::int32_t Exchange::GetOfferIndex ( )

◆ GetOfferItemID()

std::int32_t Exchange::GetOfferItemID ( )

◆ GetOfferItemName()

std::string Exchange::GetOfferItemName ( )

◆ GetOfferMode()

SLOT_MODE Exchange::GetOfferMode ( )

◆ GetOfferPrice()

std::int32_t Exchange::GetOfferPrice ( )

◆ GetSellOffer() [1/3]

Exchange::SLOT Exchange::GetSellOffer ( const std::function< bool(const Internal::ExchangeOffer &)> &  Filter)

◆ GetSellOffer() [2/3]

Exchange::SLOT Exchange::GetSellOffer ( const std::string &  Name)

◆ GetSellOffer() [3/3]

Exchange::SLOT Exchange::GetSellOffer ( std::int32_t  ID)

◆ GetSellOffers() [1/3]

std::vector<Exchange::SLOT> Exchange::GetSellOffers ( const std::function< bool(const Internal::ExchangeOffer &)> &  Filter)

◆ GetSellOffers() [2/3]

std::vector<Exchange::SLOT> Exchange::GetSellOffers ( const std::string &  Name)

◆ GetSellOffers() [3/3]

std::vector<Exchange::SLOT> Exchange::GetSellOffers ( std::int32_t  ID)

◆ GetSlotState()

SLOT_STATE Exchange::GetSlotState ( const Exchange::SLOT  Slot)

◆ IsBuyOfferOpen()

bool Exchange::IsBuyOfferOpen ( )

◆ IsOfferOpen()

bool Exchange::IsOfferOpen ( )

◆ IsOffersOpen()

bool Exchange::IsOffersOpen ( )

◆ IsOpen()

bool Exchange::IsOpen ( )

◆ IsSellOfferOpen()

bool Exchange::IsSellOfferOpen ( )

◆ Open()

bool Exchange::Open ( )

◆ OpenBuyOffer()

bool Exchange::OpenBuyOffer ( const Exchange::SLOT  Slot = -1)

◆ OpenOffer()

bool Exchange::OpenOffer ( const Exchange::SLOT  Slot)

◆ OpenSellOffer()

bool Exchange::OpenSellOffer ( const Exchange::SLOT  Slot = -1)

◆ SetBuyItem()

bool Exchange::SetBuyItem ( const std::string &  Name)

◆ SetOfferAmount()

bool Exchange::SetOfferAmount ( std::uint32_t  Amount)

◆ SetOfferGuidePrice()

bool Exchange::SetOfferGuidePrice ( )

◆ SetOfferPrice()

bool Exchange::SetOfferPrice ( std::uint32_t  Price)

◆ SetSellItem() [1/2]

bool Exchange::SetSellItem ( const std::string &  Name)

◆ SetSellItem() [2/2]

bool Exchange::SetSellItem ( std::int32_t  ID)

◆ SlotOccupied()

bool Exchange::SlotOccupied ( const Exchange::SLOT  Slot)

◆ SlotUsable()

bool Exchange::SlotUsable ( const Exchange::SLOT  Slot)