AlpacaLibary  1.63
A closed source C++ bot for OSRS
Player.hpp
Go to the documentation of this file.
1 #ifndef INTERACTABLEPLAYER_HPP_INCLUDED
2 #define INTERACTABLEPLAYER_HPP_INCLUDED
3 
4 #include "../../Core/Classes/Player.hpp"
5 #include "../../Core/Classes/PlayerInfo.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 {
18  class Player : public Internal::Player
19  {
20  public:
22 
23  Player() = default;
24  Player(Player&& Obj) = default;
25  Player(const Player& Obj) = default;
26  Player& operator=(Player&& Obj) = default;
27  Player& operator=(const Player& Obj) = default;
28 
29  std::string GetName() const;
31 
32  std::vector<Point> GetModel() const;
34 
35  Convex GetConvex() const;
36  Box GetBox() const;
37  Point GetPoint() const;
38  Point GetPoint(double PointGenAccuracy) const;
39 
40  double GetVisibility() const;
41  Tile GetTile() const;
43  bool IsReachable() const;
44  bool RotateTo(std::int32_t Angle = 0) const;
45  bool RotateTo(Camera::COMPASS_DIRECTION Direction) const;
46 
48  bool Interacting() const;
49  bool Interacting(const Internal::Character& C) 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 // INTERACTABLEPLAYER_HPP_INCLUDED
Button
Definition: Input.hpp:16
@ BUTTON_LEFT
Definition: Input.hpp:18
Definition: Box.hpp:11
Definition: Convex.hpp:9
Convex GetConvex() const
Player(Player &&Obj)=default
bool RotateTo(Camera::COMPASS_DIRECTION Direction) const
Tile GetTile() const
Internal::Character GetInteracting() const
bool Interact(const std::string &Option, bool CheckTarget=true) const
std::string GetName() const
double GetVisibility() const
Internal::PlayerInfo GetInfo() const
bool Interacting() const
bool Interact(const std::function< bool(const std::vector< Point > &)> &InteractMethod) const
bool Hover() const
Player & operator=(const Player &Obj)=default
Player(const Internal::Player &P)
Point GetPoint(double PointGenAccuracy) const
bool Interact(const std::vector< std::string > &Options, bool CheckTarget=true) const
std::vector< Point > GetModel() const
bool RotateTo(std::int32_t Angle=0) const
Tile GetReachableTile() const
Player & operator=(Player &&Obj)=default
bool IsReachable() const
Point GetPoint() const
bool Interacting(const Internal::Character &C) const
Player(const Player &Obj)=default
Wireframe GetWireframe() const
bool Interact(const Button &B=BUTTON_LEFT) const
Definition: Point.hpp:10
Definition: Tile.hpp:8
COMPASS_DIRECTION
Definition: Camera.hpp:10