i6engine  1.0
i6e::api::WaynetManager Class Reference

handles the current Waynet More...

#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/api/manager/WaynetManager.h>

Public Member Functions

 WaynetManager ()
 
void createWaynet ()
 recreates waynet out of all found waypoints More...
 
std::vector< Vec3getShortestPath (const Vec3 &startPos, const std::string &targetWP)
 returns the shortest path between startPos and targetWP More...
 
void showWaynet () const
 shows waynet (has to be called in each tick because lines are resetted after one graphics tick) More...
 
std::string getNearestWaypoint (const Vec3 &pos) const
 returns the waypoint name being next to the position More...
 

Friends

class EngineController
 

Detailed Description

handles the current Waynet

Definition at line 45 of file WaynetManager.h.

Constructor & Destructor Documentation

i6e::api::WaynetManager::WaynetManager ( )

Member Function Documentation

void i6e::api::WaynetManager::createWaynet ( )

recreates waynet out of all found waypoints

std::string i6e::api::WaynetManager::getNearestWaypoint ( const Vec3 pos) const

returns the waypoint name being next to the position

std::vector<Vec3> i6e::api::WaynetManager::getShortestPath ( const Vec3 startPos,
const std::string &  targetWP 
)

returns the shortest path between startPos and targetWP

void i6e::api::WaynetManager::showWaynet ( ) const

shows waynet (has to be called in each tick because lines are resetted after one graphics tick)

Friends And Related Function Documentation

friend class EngineController
friend

Definition at line 46 of file WaynetManager.h.


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