Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::Navigation::WaypointGraph Class Reference

#include <WaypointGraph.h>

Public Member Functions

 WaypointGraph () noexcept=default
 
 ~WaypointGraph ()=default
 
void addWaypoint (Waypoint *wp)
 
void removeWaypoint (Waypoint *wp)
 
void updateGraph ()
 
bool isLooping () const noexcept
 
U32 getID () const noexcept
 
U32 getSize () const noexcept
 

Private Types

using WaypointMap = hashMap< U32, Waypoint * >
 
using PathMap = hashMap< I32, WaypointPath >
 

Private Attributes

WaypointMap _waypoints
 
U32 _id = 0xFFFFFFFF
 
bool _loop = true
 
vector< vec3< F32 > > _positions
 
vector< Quaternion< F32 > > _rotations
 
vector< U32_times
 

Detailed Description

Definition at line 40 of file WaypointGraph.h.

Member Typedef Documentation

◆ PathMap

◆ WaypointMap

Definition at line 41 of file WaypointGraph.h.

Constructor & Destructor Documentation

◆ WaypointGraph()

Divide::Navigation::WaypointGraph::WaypointGraph ( )
defaultnoexcept

◆ ~WaypointGraph()

Divide::Navigation::WaypointGraph::~WaypointGraph ( )
default

Member Function Documentation

◆ addWaypoint()

void Divide::Navigation::WaypointGraph::addWaypoint ( Waypoint wp)

Definition at line 9 of file WaypointGraph.cpp.

◆ getID()

U32 Divide::Navigation::WaypointGraph::getID ( ) const
inlinenoexcept

Definition at line 53 of file WaypointGraph.h.

◆ getSize()

U32 Divide::Navigation::WaypointGraph::getSize ( ) const
inlinenoexcept

Definition at line 54 of file WaypointGraph.h.

◆ isLooping()

bool Divide::Navigation::WaypointGraph::isLooping ( ) const
inlinenoexcept

Definition at line 52 of file WaypointGraph.h.

◆ removeWaypoint()

void Divide::Navigation::WaypointGraph::removeWaypoint ( Waypoint wp)

Definition at line 18 of file WaypointGraph.cpp.

◆ updateGraph()

void Divide::Navigation::WaypointGraph::updateGraph ( )

Definition at line 28 of file WaypointGraph.cpp.

Member Data Documentation

◆ _id

U32 Divide::Navigation::WaypointGraph::_id = 0xFFFFFFFF
private

Definition at line 60 of file WaypointGraph.h.

◆ _loop

bool Divide::Navigation::WaypointGraph::_loop = true
private

Definition at line 61 of file WaypointGraph.h.

◆ _positions

vector<vec3<F32> > Divide::Navigation::WaypointGraph::_positions
private

Definition at line 62 of file WaypointGraph.h.

◆ _rotations

vector<Quaternion<F32> > Divide::Navigation::WaypointGraph::_rotations
private

Definition at line 63 of file WaypointGraph.h.

◆ _times

vector<U32> Divide::Navigation::WaypointGraph::_times
private

Definition at line 64 of file WaypointGraph.h.

◆ _waypoints

WaypointMap Divide::Navigation::WaypointGraph::_waypoints
private

Definition at line 57 of file WaypointGraph.h.


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