AlpacaLibary  1.63
A closed source C++ bot for OSRS
Interactable::Item Class Reference

#include <Item.hpp>

Public Types

enum  ITEM_SOURCE { INVENTORY , EQUIPMENT , BANK }
 
typedef enum Interactable::Item::ITEM_SOURCE ITEM_SOURCE
 

Public Member Functions

 Item ()
 
 Item (std::int32_t Index, std::int32_t ID, ITEM_SOURCE Source)
 
 Item (const Interactable::Item &Item)
 
bool Exists () const
 
bool IsInterfaceOpen () const
 
bool OpenInterface () const
 
std::int32_t GetID () const
 
std::int32_t GetIndex () const
 
ITEM_SOURCE GetSource () const
 
std::string GetName () const
 
std::int32_t GetStackAmount () const
 
Internal::ItemInfo GetInfo () const
 
Internal::Sprite GetSprite () const
 
Convex GetConvex () const
 
Box GetBox () const
 
Point GetPoint () const
 
Point GetPoint (double PointGenAccuracy) const
 
bool Hover () const
 
bool Interact (const Button &B=BUTTON_LEFT) const
 
bool Interact (const std::string &Option, bool CheckTarget=false) const
 
bool Interact (const std::vector< std::string > &Options, bool CheckTarget=false) const
 
bool Interact (const std::function< bool(const Convex &)> &InteractMethod) const
 
bool Valid () const
 
 operator bool () const
 

Detailed Description

Definition at line 15 of file Item.hpp.

Member Typedef Documentation

◆ ITEM_SOURCE

Member Enumeration Documentation

◆ ITEM_SOURCE

Enumerator
INVENTORY 
EQUIPMENT 
BANK 

Definition at line 18 of file Item.hpp.

Constructor & Destructor Documentation

◆ Item() [1/3]

Interactable::Item::Item ( )

◆ Item() [2/3]

Interactable::Item::Item ( std::int32_t  Index,
std::int32_t  ID,
ITEM_SOURCE  Source 
)

◆ Item() [3/3]

Interactable::Item::Item ( const Interactable::Item Item)

Member Function Documentation

◆ Exists()

bool Interactable::Item::Exists ( ) const

◆ GetBox()

Box Interactable::Item::GetBox ( ) const

◆ GetConvex()

Convex Interactable::Item::GetConvex ( ) const

◆ GetID()

std::int32_t Interactable::Item::GetID ( ) const

◆ GetIndex()

std::int32_t Interactable::Item::GetIndex ( ) const

◆ GetInfo()

Internal::ItemInfo Interactable::Item::GetInfo ( ) const

◆ GetName()

std::string Interactable::Item::GetName ( ) const

◆ GetPoint() [1/2]

Point Interactable::Item::GetPoint ( ) const

◆ GetPoint() [2/2]

Point Interactable::Item::GetPoint ( double  PointGenAccuracy) const

◆ GetSource()

ITEM_SOURCE Interactable::Item::GetSource ( ) const

◆ GetSprite()

Internal::Sprite Interactable::Item::GetSprite ( ) const

◆ GetStackAmount()

std::int32_t Interactable::Item::GetStackAmount ( ) const

◆ Hover()

bool Interactable::Item::Hover ( ) const

◆ Interact() [1/4]

bool Interactable::Item::Interact ( const Button B = BUTTON_LEFT) const

◆ Interact() [2/4]

bool Interactable::Item::Interact ( const std::function< bool(const Convex &)> &  InteractMethod) const

◆ Interact() [3/4]

bool Interactable::Item::Interact ( const std::string &  Option,
bool  CheckTarget = false 
) const

◆ Interact() [4/4]

bool Interactable::Item::Interact ( const std::vector< std::string > &  Options,
bool  CheckTarget = false 
) const

◆ IsInterfaceOpen()

bool Interactable::Item::IsInterfaceOpen ( ) const

◆ OpenInterface()

bool Interactable::Item::OpenInterface ( ) const

◆ operator bool()

Interactable::Item::operator bool ( ) const

◆ Valid()

bool Interactable::Item::Valid ( ) const

The documentation for this class was generated from the following file: