Release 0.92
							parent
							
								
									3870393543
								
							
						
					
					
						commit
						5a26983246
					
				| 
						 | 
					@ -17,6 +17,8 @@
 | 
				
			||||||
#include "Types/Convex.hpp"
 | 
					#include "Types/Convex.hpp"
 | 
				
			||||||
#include "Types/Area.hpp"
 | 
					#include "Types/Area.hpp"
 | 
				
			||||||
#include "Types/Logger.hpp"
 | 
					#include "Types/Logger.hpp"
 | 
				
			||||||
 | 
					#include "Types/Triangle.hpp"
 | 
				
			||||||
 | 
					#include "Types/Wireframe.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "JavaClass/ByteBuffer.hpp"
 | 
					#include "JavaClass/ByteBuffer.hpp"
 | 
				
			||||||
#include "JavaClass/Canvas.hpp"
 | 
					#include "JavaClass/Canvas.hpp"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,6 +14,7 @@ std::int32_t UniformRandom(std::int32_t Min, std::int32_t Max);
 | 
				
			||||||
double UniformRandom();
 | 
					double UniformRandom();
 | 
				
			||||||
std::int32_t NormalRandom(std::int32_t Mean, double StandardDeviation);
 | 
					std::int32_t NormalRandom(std::int32_t Mean, double StandardDeviation);
 | 
				
			||||||
std::int32_t NormalRandom(std::int32_t Low, std::int32_t High, double PercentageDeviation);
 | 
					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);
 | 
					std::vector<Point> ConvexHull(std::vector<Point> Points);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** @} */
 | 
					/** @} */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
				
			||||||
| 
						 | 
					@ -12,6 +12,7 @@
 | 
				
			||||||
#include "Tools/RandomHandler.hpp"
 | 
					#include "Tools/RandomHandler.hpp"
 | 
				
			||||||
#include "Tools/Camera.hpp"
 | 
					#include "Tools/Camera.hpp"
 | 
				
			||||||
#include "Tools/Pathfinding.hpp"
 | 
					#include "Tools/Pathfinding.hpp"
 | 
				
			||||||
 | 
					#include "Tools/Antiban.hpp"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "Interfaces/Bank.hpp"
 | 
					#include "Interfaces/Bank.hpp"
 | 
				
			||||||
#include "Interfaces/Chat.hpp"
 | 
					#include "Interfaces/Chat.hpp"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
#include "../../Core/Types/Point.hpp"
 | 
					#include "../../Core/Types/Point.hpp"
 | 
				
			||||||
#include "../../Core/Types/Box.hpp"
 | 
					#include "../../Core/Types/Box.hpp"
 | 
				
			||||||
#include "../../Core/Types/Convex.hpp"
 | 
					#include "../../Core/Types/Convex.hpp"
 | 
				
			||||||
 | 
					#include "../../Core/Types/Wireframe.hpp"
 | 
				
			||||||
#include "../../Core/Input.hpp"
 | 
					#include "../../Core/Input.hpp"
 | 
				
			||||||
#include "../../Game/Tools/Camera.hpp"
 | 
					#include "../../Game/Tools/Camera.hpp"
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
| 
						 | 
					@ -24,6 +25,8 @@ namespace Interactable
 | 
				
			||||||
            Internal::ObjectInfo GetInfo() const;
 | 
					            Internal::ObjectInfo GetInfo() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            std::vector<Point> GetModel() const;
 | 
					            std::vector<Point> GetModel() const;
 | 
				
			||||||
 | 
					            Wireframe GetWireframe() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Convex GetConvex() const;
 | 
					            Convex GetConvex() const;
 | 
				
			||||||
            Box GetBox() const;
 | 
					            Box GetBox() const;
 | 
				
			||||||
            Point GetPoint() const;
 | 
					            Point GetPoint() const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
#include "../../Core/Types/Point.hpp"
 | 
					#include "../../Core/Types/Point.hpp"
 | 
				
			||||||
#include "../../Core/Types/Box.hpp"
 | 
					#include "../../Core/Types/Box.hpp"
 | 
				
			||||||
#include "../../Core/Types/Convex.hpp"
 | 
					#include "../../Core/Types/Convex.hpp"
 | 
				
			||||||
 | 
					#include "../../Core/Types/Wireframe.hpp"
 | 
				
			||||||
#include "../../Core/Input.hpp"
 | 
					#include "../../Core/Input.hpp"
 | 
				
			||||||
#include "../../Game/Tools/Camera.hpp"
 | 
					#include "../../Game/Tools/Camera.hpp"
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
| 
						 | 
					@ -24,6 +25,8 @@ namespace Interactable
 | 
				
			||||||
            Internal::ObjectInfo GetInfo() const;
 | 
					            Internal::ObjectInfo GetInfo() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            std::vector<Point> GetModel() const;
 | 
					            std::vector<Point> GetModel() const;
 | 
				
			||||||
 | 
					            Wireframe GetWireframe() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Convex GetConvex() const;
 | 
					            Convex GetConvex() const;
 | 
				
			||||||
            Box GetBox() const;
 | 
					            Box GetBox() const;
 | 
				
			||||||
            Point GetPoint() const;
 | 
					            Point GetPoint() const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
#include "../../Core/Types/Point.hpp"
 | 
					#include "../../Core/Types/Point.hpp"
 | 
				
			||||||
#include "../../Core/Types/Box.hpp"
 | 
					#include "../../Core/Types/Box.hpp"
 | 
				
			||||||
#include "../../Core/Types/Convex.hpp"
 | 
					#include "../../Core/Types/Convex.hpp"
 | 
				
			||||||
 | 
					#include "../../Core/Types/Wireframe.hpp"
 | 
				
			||||||
#include "../../Core/Input.hpp"
 | 
					#include "../../Core/Input.hpp"
 | 
				
			||||||
#include "../../Game/Tools/Camera.hpp"
 | 
					#include "../../Game/Tools/Camera.hpp"
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
| 
						 | 
					@ -27,6 +28,8 @@ namespace Interactable
 | 
				
			||||||
            Internal::ItemInfo GetInfo() const;
 | 
					            Internal::ItemInfo GetInfo() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            std::vector<Point> GetModel() const;
 | 
					            std::vector<Point> GetModel() const;
 | 
				
			||||||
 | 
					            Wireframe GetWireframe() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Convex GetConvex() const;
 | 
					            Convex GetConvex() const;
 | 
				
			||||||
            Box GetBox() const;
 | 
					            Box GetBox() const;
 | 
				
			||||||
            Point GetPoint() const;
 | 
					            Point GetPoint() const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
#include "../../Core/Types/Point.hpp"
 | 
					#include "../../Core/Types/Point.hpp"
 | 
				
			||||||
#include "../../Core/Types/Box.hpp"
 | 
					#include "../../Core/Types/Box.hpp"
 | 
				
			||||||
#include "../../Core/Types/Convex.hpp"
 | 
					#include "../../Core/Types/Convex.hpp"
 | 
				
			||||||
 | 
					#include "../../Core/Types/Wireframe.hpp"
 | 
				
			||||||
#include "../../Core/Input.hpp"
 | 
					#include "../../Core/Input.hpp"
 | 
				
			||||||
#include "../../Game/Tools/Camera.hpp"
 | 
					#include "../../Game/Tools/Camera.hpp"
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
| 
						 | 
					@ -24,6 +25,8 @@ namespace Interactable
 | 
				
			||||||
            Internal::ObjectInfo GetInfo() const;
 | 
					            Internal::ObjectInfo GetInfo() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            std::vector<Point> GetModel() const;
 | 
					            std::vector<Point> GetModel() const;
 | 
				
			||||||
 | 
					            Wireframe GetWireframe() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Convex GetConvex() const;
 | 
					            Convex GetConvex() const;
 | 
				
			||||||
            Box GetBox() const;
 | 
					            Box GetBox() const;
 | 
				
			||||||
            Point GetPoint() const;
 | 
					            Point GetPoint() const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
#include "../../Core/Types/Point.hpp"
 | 
					#include "../../Core/Types/Point.hpp"
 | 
				
			||||||
#include "../../Core/Types/Box.hpp"
 | 
					#include "../../Core/Types/Box.hpp"
 | 
				
			||||||
#include "../../Core/Types/Convex.hpp"
 | 
					#include "../../Core/Types/Convex.hpp"
 | 
				
			||||||
 | 
					#include "../../Core/Types/Wireframe.hpp"
 | 
				
			||||||
#include "../../Core/Input.hpp"
 | 
					#include "../../Core/Input.hpp"
 | 
				
			||||||
#include "../../Game/Tools/Camera.hpp"
 | 
					#include "../../Game/Tools/Camera.hpp"
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
| 
						 | 
					@ -24,6 +25,8 @@ namespace Interactable
 | 
				
			||||||
            Internal::NPCInfo GetInfo() const;
 | 
					            Internal::NPCInfo GetInfo() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            std::vector<Point> GetModel() const;
 | 
					            std::vector<Point> GetModel() const;
 | 
				
			||||||
 | 
					            Wireframe GetWireframe() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Convex GetConvex() const;
 | 
					            Convex GetConvex() const;
 | 
				
			||||||
            Box GetBox() const;
 | 
					            Box GetBox() const;
 | 
				
			||||||
            Point GetPoint() const;
 | 
					            Point GetPoint() const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
#include "../../Core/Types/Point.hpp"
 | 
					#include "../../Core/Types/Point.hpp"
 | 
				
			||||||
#include "../../Core/Types/Box.hpp"
 | 
					#include "../../Core/Types/Box.hpp"
 | 
				
			||||||
#include "../../Core/Types/Convex.hpp"
 | 
					#include "../../Core/Types/Convex.hpp"
 | 
				
			||||||
 | 
					#include "../../Core/Types/Wireframe.hpp"
 | 
				
			||||||
#include "../../Core/Input.hpp"
 | 
					#include "../../Core/Input.hpp"
 | 
				
			||||||
#include "../../Game/Tools/Camera.hpp"
 | 
					#include "../../Game/Tools/Camera.hpp"
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
| 
						 | 
					@ -23,6 +24,8 @@ namespace Interactable
 | 
				
			||||||
            Internal::PlayerInfo GetInfo() const;
 | 
					            Internal::PlayerInfo GetInfo() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            std::vector<Point> GetModel() const;
 | 
					            std::vector<Point> GetModel() const;
 | 
				
			||||||
 | 
					            Wireframe GetWireframe() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Convex GetConvex() const;
 | 
					            Convex GetConvex() const;
 | 
				
			||||||
            Box GetBox() const;
 | 
					            Box GetBox() const;
 | 
				
			||||||
            Point GetPoint() const;
 | 
					            Point GetPoint() const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@
 | 
				
			||||||
#include "../../Core/Types/Point.hpp"
 | 
					#include "../../Core/Types/Point.hpp"
 | 
				
			||||||
#include "../../Core/Types/Box.hpp"
 | 
					#include "../../Core/Types/Box.hpp"
 | 
				
			||||||
#include "../../Core/Types/Convex.hpp"
 | 
					#include "../../Core/Types/Convex.hpp"
 | 
				
			||||||
 | 
					#include "../../Core/Types/Wireframe.hpp"
 | 
				
			||||||
#include "../../Core/Input.hpp"
 | 
					#include "../../Core/Input.hpp"
 | 
				
			||||||
#include "../../Game/Tools/Camera.hpp"
 | 
					#include "../../Game/Tools/Camera.hpp"
 | 
				
			||||||
#include <cstdint>
 | 
					#include <cstdint>
 | 
				
			||||||
| 
						 | 
					@ -24,6 +25,8 @@ namespace Interactable
 | 
				
			||||||
            Internal::ObjectInfo GetInfo() const;
 | 
					            Internal::ObjectInfo GetInfo() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            std::vector<Point> GetModel() const;
 | 
					            std::vector<Point> GetModel() const;
 | 
				
			||||||
 | 
					            Wireframe GetWireframe() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            Convex GetConvex() const;
 | 
					            Convex GetConvex() const;
 | 
				
			||||||
            Box GetBox() const;
 | 
					            Box GetBox() const;
 | 
				
			||||||
            Point GetPoint() const;
 | 
					            Point GetPoint() const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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.
										
									
								
							
		Loading…
	
		Reference in New Issue