AlpacaLibary  1.63
A closed source C++ bot for OSRS
DecorativeObject.hpp
Go to the documentation of this file.
1 #ifndef INTERACTABLEDECORATIVEOBJECT_HPP_INCLUDED
2 #define INTERACTABLEDECORATIVEOBJECT_HPP_INCLUDED
3 
4 #include "../../Core/Classes/DecorativeObject.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  DecorativeObject() = 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 
58 #endif // INTERACTABLEDECORATIVEOBJECT_HPP_INCLUDED
Button
Definition: Input.hpp:16
@ BUTTON_LEFT
Definition: Input.hpp:18
Definition: Box.hpp:11
Definition: Convex.hpp:9
bool RotateTo(Camera::COMPASS_DIRECTION Direction) const
bool Interact(const Button &B=BUTTON_LEFT) const
bool Interact(const std::string &Option, bool CheckTarget=true) const
bool Interact(const std::vector< std::string > &Options, bool CheckTarget=true) const
DecorativeObject & operator=(const DecorativeObject &Obj)=default
bool Interact(const std::function< bool(const std::vector< Point > &)> &InteractMethod) const
DecorativeObject(const Internal::DecorativeObject &D)
std::int32_t GetID() const
DecorativeObject & operator=(DecorativeObject &&Obj)=default
std::string GetName() const
Internal::ObjectInfo GetInfo() const
DecorativeObject(DecorativeObject &&Obj)=default
std::vector< Point > GetModel() const
bool RotateTo(std::int32_t Angle=0) const
Wireframe GetWireframe() const
Point GetPoint(double PointGenAccuracy) const
DecorativeObject(const DecorativeObject &Obj)=default
Definition: Point.hpp:10
Definition: Tile.hpp:8
COMPASS_DIRECTION
Definition: Camera.hpp:10