AlpacaLibary  1.63
A closed source C++ bot for OSRS
Area.hpp
Go to the documentation of this file.
1 #ifndef AREA_HPP_INCLUDED
2 #define AREA_HPP_INCLUDED
3 
4 #include "Tile.hpp"
5 #include "Convex.hpp"
6 #include <vector>
7 #include <cstdint>
8 
9 class Area
10 {
11  private:
12  std::int32_t Plane;
13  std::vector<Tile> Vertices;
14 
15  public:
16  Area();
17  Area(const Tile& TopLeft, const Tile& BottomRight);
18  Area(const std::vector<Tile>& Vertices);
19  Area(const Area& A);
20 
21  bool Valid() const;
22  bool Contains(const Tile& T) const;
23  Tile GetMiddle() const;
24  std::int32_t GetPlane() const;
25  std::vector<Tile> GetVertices() const;
26 
27  Tile GetHybridRandomTile(double ProbabilityX, double ProbabilityY, double StandardDeviationX, double StandardDeviationY, double PointGenAccuracy) const;
29  Tile GetProfileHybridRandomTile(double PointGenAccuracy) const;
30 
31  friend std::ostream& operator<<(std::ostream& OS, const Area& A);
32  ~Area();
33 };
34 
35 #endif // AREA_HPP_INCLUDED
Definition: Area.hpp:10
Tile GetProfileHybridRandomTile() const
Area(const Area &A)
bool Contains(const Tile &T) const
Area(const Tile &TopLeft, const Tile &BottomRight)
bool Valid() const
Tile GetHybridRandomTile(double ProbabilityX, double ProbabilityY, double StandardDeviationX, double StandardDeviationY, double PointGenAccuracy) const
friend std::ostream & operator<<(std::ostream &OS, const Area &A)
Tile GetMiddle() const
std::int32_t GetPlane() const
std::vector< Tile > GetVertices() const
Tile GetProfileHybridRandomTile(double PointGenAccuracy) const
Area(const std::vector< Tile > &Vertices)
Definition: Tile.hpp:8