AlpacaLibary  1.63
A closed source C++ bot for OSRS
GroundItem.hpp
Go to the documentation of this file.
1 #ifndef INTERACTABLEGROUNDITEM_HPP_INCLUDED
2 #define INTERACTABLEGROUNDITEM_HPP_INCLUDED
3 
4 #include "../../Core/Classes/GroundItem.hpp"
5 #include "../../Core/Classes/ItemInfo.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  private:
21  Tile LocalTile;
22  public:
24  GroundItem(const Internal::GroundItem& G, const Tile& LocalTile);
25 
26  GroundItem() = default;
27  GroundItem(GroundItem&& Obj) = default;
28  GroundItem(const GroundItem& Obj) = default;
30  GroundItem& operator=(const GroundItem& Obj) = default;
31 
32  std::string GetName() const;
34 
35  std::vector<Point> GetModel() const;
37 
38  Convex GetConvex() const;
39  Box GetBox() const;
40  Point GetPoint() const;
41  Point GetPoint(double PointGenAccuracy) const;
42 
43  double GetVisibility() const;
44  Tile GetTile() const;
45  Tile GetLocalTile() const;
47  bool IsReachable() const;
48  bool RotateTo(std::int32_t Angle = 0) const;
49  bool RotateTo(Camera::COMPASS_DIRECTION Direction) const;
50 
51  bool Hover() const;
52  bool Interact(const Button& B = BUTTON_LEFT) const;
53  bool Interact(const std::string& Option, bool CheckTarget = true) const;
54  bool Interact(const std::vector<std::string>& Options, bool CheckTarget = true) const;
55  bool Interact(const std::function<bool (const std::vector<Point>&)>& InteractMethod) const;
56 
57  };
58 }
59 
60 
61 #endif // INTERACTABLEGROUNDITEM_HPP_INCLUDED
Button
Definition: Input.hpp:16
@ BUTTON_LEFT
Definition: Input.hpp:18
Definition: Box.hpp:11
Definition: Convex.hpp:9
GroundItem(GroundItem &&Obj)=default
Tile GetReachableTile() const
Internal::ItemInfo GetInfo() const
double GetVisibility() const
Point GetPoint(double PointGenAccuracy) const
bool RotateTo(std::int32_t Angle=0) const
GroundItem(const Internal::GroundItem &G)
bool RotateTo(Camera::COMPASS_DIRECTION Direction) const
bool Interact(const Button &B=BUTTON_LEFT) const
GroundItem & operator=(const GroundItem &Obj)=default
std::vector< Point > GetModel() const
GroundItem(const GroundItem &Obj)=default
Convex GetConvex() const
bool Interact(const std::string &Option, bool CheckTarget=true) const
std::string GetName() const
bool Interact(const std::function< bool(const std::vector< Point > &)> &InteractMethod) const
Wireframe GetWireframe() const
GroundItem(const Internal::GroundItem &G, const Tile &LocalTile)
GroundItem & operator=(GroundItem &&Obj)=default
bool Interact(const std::vector< std::string > &Options, bool CheckTarget=true) const
Definition: Point.hpp:10
Definition: Tile.hpp:8
COMPASS_DIRECTION
Definition: Camera.hpp:10