Xenon
A framework for cheat development.
 
Loading...
Searching...
No Matches
CWaypoints Class Reference

A class that represents the waypoints functionality in the Xenon cheat engine. More...

#include <waypoints.hpp>

Inheritance diagram for CWaypoints:
Collaboration diagram for CWaypoints:

Public Member Functions

void SetWaypoint (std::string title, const Vec2 &pos, ImColor color)
 Set the Waypoint object in the current localplayer position 2D.
 
void SetWaypoint (std::string title, const Vec3 &pos, ImColor color)
 Set the Waypoint object in the current localplayer position 3D.
 
std::vector< WaypointGetWaypoints ()
 Get the Waypoints object.
 
void ClearWaypoints ()
 Clear the Waypoints object.
 
void RenderInWorld ()
 Render the Waypoints object in the world.
 
void RenderInRadar (std::function< bool(ImVec2)> fnIsPointInRadar, Vec2 localPos, float defaultScale, float radarSize, float zoomFactor, ImVec2 radarCenter)
 Render the Waypoints object in the radar 2D.
 
void RenderInRadar (std::function< bool(ImVec2)> fnIsPointInRadar, Vec3 localPos, float defaultScale, float radarSize, float zoomFactor, ImVec2 radarCenter)
 Render the Waypoints object in the radar 3D.
 
void Update () override
 Update the Waypoints object every frame.
 
- Public Member Functions inherited from CComponent
virtual void Init ()
 Will be executed when the component is initialized.
 
virtual void UpdateCurrentTarget (TargetProfile *target)
 If Update loop enabled, this function will be executed every frame for each target.
 
virtual ~CComponent ()=default
 

Additional Inherited Members

- Public Attributes inherited from CComponent
std::shared_ptr< Xenong_pXenon
 
std::shared_ptr< XenonVariablesg_pXenonVariables
 
std::shared_ptr< XenonConfigg_pXenonConfigs
 

Detailed Description

A class that represents the waypoints functionality in the Xenon cheat engine.

Member Function Documentation

◆ ClearWaypoints()

void CWaypoints::ClearWaypoints ( )

Clear the Waypoints object.

◆ GetWaypoints()

std::vector< Waypoint > CWaypoints::GetWaypoints ( )

Get the Waypoints object.

Returns
std::vector<Waypoint>

◆ RenderInRadar() [1/2]

void CWaypoints::RenderInRadar ( std::function< bool(ImVec2)>  fnIsPointInRadar,
Vec2  localPos,
float  defaultScale,
float  radarSize,
float  zoomFactor,
ImVec2  radarCenter 
)

Render the Waypoints object in the radar 2D.

Parameters
fnIsPointInRadarFunction to check if the point is in the radar.
localPosLocal position of the player.
defaultScaleDefault scale of the radar.
radarSizeSize of the radar.
zoomFactorZoom factor of the radar.
radarCenterCenter of the radar.

◆ RenderInRadar() [2/2]

void CWaypoints::RenderInRadar ( std::function< bool(ImVec2)>  fnIsPointInRadar,
Vec3  localPos,
float  defaultScale,
float  radarSize,
float  zoomFactor,
ImVec2  radarCenter 
)

Render the Waypoints object in the radar 3D.

Parameters
fnIsPointInRadarFunction to check if the point is in the radar.
localPosLocal position of the player.
defaultScaleDefault scale of the radar.
radarSizeSize of the radar.
zoomFactorZoom factor of the radar.
radarCenterCenter of the radar.

◆ RenderInWorld()

void CWaypoints::RenderInWorld ( )

Render the Waypoints object in the world.

◆ SetWaypoint() [1/2]

void CWaypoints::SetWaypoint ( std::string  title,
const Vec2 pos,
ImColor  color 
)

Set the Waypoint object in the current localplayer position 2D.

Parameters
titleThe name of the waypoint.
posThe position of the waypoint.
colorThe color of the waypoint.

◆ SetWaypoint() [2/2]

void CWaypoints::SetWaypoint ( std::string  title,
const Vec3 pos,
ImColor  color 
)

Set the Waypoint object in the current localplayer position 3D.

Parameters
titleThe name of the waypoint.
posThe position of the waypoint.
colorThe color of the waypoint.

◆ Update()

void CWaypoints::Update ( )
overridevirtual

Update the Waypoints object every frame.

Reimplemented from CComponent.


The documentation for this class was generated from the following file: