AlpacaLibary  1.63
A closed source C++ bot for OSRS
GroundObject.hpp
Go to the documentation of this file.
1 #ifndef INTERACTABLEGROUNDOBJECT_HPP_INCLUDED
2 #define INTERACTABLEGROUNDOBJECT_HPP_INCLUDED
3 
4 #include "../../Core/Classes/GroundObject.hpp"
5 #include "../../Core/Classes/ObjectInfo.hpp"
6 #include "../../Core/Types/Tile.hpp"
7 #include "../../Core/Types/Point.hpp"
8 #include "../../Core/Types/Box.hpp"
9 #include "../../Core/Types/Convex.hpp"
10 #include "../../Core/Types/Wireframe.hpp"
11 #include "../../Core/Input.hpp"
12 #include "../../Game/Tools/Camera.hpp"
13 #include <cstdint>
14 #include <functional>
15 
16 namespace Interactable
17 {
19  {
20  public:
22 
23  GroundObject() = default;
25  GroundObject(const GroundObject& Obj) = default;
27  GroundObject& operator=(const GroundObject& Obj) = default;
28 
29  std::int32_t GetID() const;
30  std::string GetName() const;
32 
33  std::vector<Point> GetModel() const;
35 
36  Convex GetConvex() const;
37  Box GetBox() const;
38  Point GetPoint() const;
39  Point GetPoint(double PointGenAccuracy) const;
40 
41  double GetVisibility() const;
42  Tile GetTile() const;
44  bool IsReachable() const;
45  bool RotateTo(std::int32_t Angle = 0) const;
46  bool RotateTo(Camera::COMPASS_DIRECTION Direction) const;
47 
48  bool Hover() const;
49  bool Interact(const Button& B = BUTTON_LEFT) const;
50  bool Interact(const std::string& Option, bool CheckTarget = true) const;
51  bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
52  bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;
53 
54  };
55 }
56 
57 #endif // INTERACTABLEGROUNDOBJECT_HPP_INCLUDED
Button
Definition: Input.hpp:16
@ BUTTON_LEFT
Definition: Input.hpp:18
Definition: Box.hpp:11
Definition: Convex.hpp:9
bool Interact(const std::vector< std::string > &Options, bool CheckTarget=true) const
double GetVisibility() const
bool Interact(const Button &B=BUTTON_LEFT) const
std::vector< Point > GetModel() const
bool Interact(const std::function< bool(const std::vector< Point > &)> &InteractMethod) const
bool RotateTo(Camera::COMPASS_DIRECTION Direction) const
GroundObject(GroundObject &&Obj)=default
bool RotateTo(std::int32_t Angle=0) const
GroundObject & operator=(GroundObject &&Obj)=default
Internal::ObjectInfo GetInfo() const
bool Interact(const std::string &Option, bool CheckTarget=true) const
Wireframe GetWireframe() const
std::string GetName() const
GroundObject & operator=(const GroundObject &Obj)=default
GroundObject(const Internal::GroundObject &G)
Point GetPoint(double PointGenAccuracy) const
GroundObject(const GroundObject &Obj)=default
std::int32_t GetID() const
Definition: Point.hpp:10
Definition: Tile.hpp:8
COMPASS_DIRECTION
Definition: Camera.hpp:10