Release 0.92

master
Kasi 2018-09-03 04:13:53 +01:00
parent 3870393543
commit 5a26983246
14 changed files with 88 additions and 0 deletions

View File

@ -17,6 +17,8 @@
#include "Types/Convex.hpp"
#include "Types/Area.hpp"
#include "Types/Logger.hpp"
#include "Types/Triangle.hpp"
#include "Types/Wireframe.hpp"
#include "JavaClass/ByteBuffer.hpp"
#include "JavaClass/Canvas.hpp"

View File

@ -14,6 +14,7 @@ std::int32_t UniformRandom(std::int32_t Min, std::int32_t Max);
double UniformRandom();
std::int32_t NormalRandom(std::int32_t Mean, double StandardDeviation);
std::int32_t NormalRandom(std::int32_t Low, std::int32_t High, double PercentageDeviation);
void GetLine(Point A, Point B, std::vector<Point>* Res);
std::vector<Point> ConvexHull(std::vector<Point> Points);
/** @} */

View File

@ -0,0 +1,21 @@
#ifndef TRIANGLE_HPP
#define TRIANGLE_HPP
#include "Point.hpp"
class Triangle
{
public:
Point A;
Point B;
Point C;
Triangle();
Triangle(const Point& A, const Point& B, const Point& C);
~Triangle();
bool Contains(const Point& P) const;
};
#endif // TRIANGLE_HPP

View File

@ -0,0 +1,31 @@
#ifndef WIREFRAME_HPP
#define WIREFRAME_HPP
#include <vector>
#include "Point.hpp"
#include "Triangle.hpp"
#include "Convex.hpp"
#include "Box.hpp"
class Wireframe
{
public:
Wireframe();
Wireframe(const std::vector<Point>& Points);
~Wireframe();
Point GetHybridRandomPoint(double ProbabilityX, double ProbabilityY, double StandardDeviationX, double StandardDeviationY, double PointGenAccuracy) const;
Point GetProfileHybridRandomPoint() const;
Point GetProfileHybridRandomPoint(double PointGenAccuracy) const;
Box GetBox() const;
Convex GetConvex() const;
bool Contains(const Point& P) const;
operator bool() const;
private:
std::vector<Point> Points;
std::vector<Triangle> Triangles;
Convex C;
Box B;
};
#endif // WIREFRAME_HPP

View File

@ -12,6 +12,7 @@
#include "Tools/RandomHandler.hpp"
#include "Tools/Camera.hpp"
#include "Tools/Pathfinding.hpp"
#include "Tools/Antiban.hpp"
#include "Interfaces/Bank.hpp"
#include "Interfaces/Chat.hpp"

View File

@ -7,6 +7,7 @@
#include "../../Core/Types/Point.hpp"
#include "../../Core/Types/Box.hpp"
#include "../../Core/Types/Convex.hpp"
#include "../../Core/Types/Wireframe.hpp"
#include "../../Core/Input.hpp"
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
@ -24,6 +25,8 @@ namespace Interactable
Internal::ObjectInfo GetInfo() const;
std::vector<Point> GetModel() const;
Wireframe GetWireframe() const;
Convex GetConvex() const;
Box GetBox() const;
Point GetPoint() const;

View File

@ -7,6 +7,7 @@
#include "../../Core/Types/Point.hpp"
#include "../../Core/Types/Box.hpp"
#include "../../Core/Types/Convex.hpp"
#include "../../Core/Types/Wireframe.hpp"
#include "../../Core/Input.hpp"
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
@ -24,6 +25,8 @@ namespace Interactable
Internal::ObjectInfo GetInfo() const;
std::vector<Point> GetModel() const;
Wireframe GetWireframe() const;
Convex GetConvex() const;
Box GetBox() const;
Point GetPoint() const;

View File

@ -7,6 +7,7 @@
#include "../../Core/Types/Point.hpp"
#include "../../Core/Types/Box.hpp"
#include "../../Core/Types/Convex.hpp"
#include "../../Core/Types/Wireframe.hpp"
#include "../../Core/Input.hpp"
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
@ -27,6 +28,8 @@ namespace Interactable
Internal::ItemInfo GetInfo() const;
std::vector<Point> GetModel() const;
Wireframe GetWireframe() const;
Convex GetConvex() const;
Box GetBox() const;
Point GetPoint() const;

View File

@ -7,6 +7,7 @@
#include "../../Core/Types/Point.hpp"
#include "../../Core/Types/Box.hpp"
#include "../../Core/Types/Convex.hpp"
#include "../../Core/Types/Wireframe.hpp"
#include "../../Core/Input.hpp"
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
@ -24,6 +25,8 @@ namespace Interactable
Internal::ObjectInfo GetInfo() const;
std::vector<Point> GetModel() const;
Wireframe GetWireframe() const;
Convex GetConvex() const;
Box GetBox() const;
Point GetPoint() const;

View File

@ -7,6 +7,7 @@
#include "../../Core/Types/Point.hpp"
#include "../../Core/Types/Box.hpp"
#include "../../Core/Types/Convex.hpp"
#include "../../Core/Types/Wireframe.hpp"
#include "../../Core/Input.hpp"
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
@ -24,6 +25,8 @@ namespace Interactable
Internal::NPCInfo GetInfo() const;
std::vector<Point> GetModel() const;
Wireframe GetWireframe() const;
Convex GetConvex() const;
Box GetBox() const;
Point GetPoint() const;

View File

@ -7,6 +7,7 @@
#include "../../Core/Types/Point.hpp"
#include "../../Core/Types/Box.hpp"
#include "../../Core/Types/Convex.hpp"
#include "../../Core/Types/Wireframe.hpp"
#include "../../Core/Input.hpp"
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
@ -23,6 +24,8 @@ namespace Interactable
Internal::PlayerInfo GetInfo() const;
std::vector<Point> GetModel() const;
Wireframe GetWireframe() const;
Convex GetConvex() const;
Box GetBox() const;
Point GetPoint() const;

View File

@ -7,6 +7,7 @@
#include "../../Core/Types/Point.hpp"
#include "../../Core/Types/Box.hpp"
#include "../../Core/Types/Convex.hpp"
#include "../../Core/Types/Wireframe.hpp"
#include "../../Core/Input.hpp"
#include "../../Game/Tools/Camera.hpp"
#include <cstdint>
@ -24,6 +25,8 @@ namespace Interactable
Internal::ObjectInfo GetInfo() const;
std::vector<Point> GetModel() const;
Wireframe GetWireframe() const;
Convex GetConvex() const;
Box GetBox() const;
Point GetPoint() const;

View File

@ -0,0 +1,11 @@
#ifndef ANTIBAN_HPP_INCLUDED
#define ANTIBAN_HPP_INCLUDED
class Antiban
{
public:
static void LoseClientFocus();
static void MouseOffClient(bool LoseFocus = true);
};
#endif // ANTIBAN_HPP_INCLUDED

Binary file not shown.