Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <navpath.h>
Public Types | |
enum | UpdateType { ALL, CURRENT, TARGET } |
Public Member Functions | |
void | addPath () |
bool | removePath (NavPath *path) |
void | showAll () |
void | showNone () |
bool | updateSpecificPath (NavPath *path) |
void | updatePaths (UpdateType type=ALL) |
void | updateDependants (NavPath *parent) |
PathManager () | |
~PathManager () | |
Protected Member Functions | |
void | DFS () |
void | dfsVisit (NavPath *path) |
Protected Attributes | |
std::vector< NavPath * > | paths |
std::list< NavPath * > | topoOrder |
unsigned | topoTime |
Friends | |
class | NavPath |
class | NavComputer |
PathManager::PathManager | ( | ) |
Definition at line 646 of file navpath.cpp.
PathManager::~PathManager | ( | ) |
void PathManager::addPath | ( | ) |
Definition at line 546 of file navpath.cpp.
References NavPath, paths, and NavPath::setSourceNode().
Referenced by NavComputer::actionAdd().
|
protected |
Definition at line 620 of file navpath.cpp.
References dfsVisit(), paths, TOPO_WHITE, topoOrder, and topoTime.
Referenced by updatePaths().
|
protected |
Definition at line 632 of file navpath.cpp.
References NavPath::getDependants(), TOPO_BLACK, TOPO_GRAY, TOPO_WHITE, NavPath::topoColor, topoOrder, NavPath::topoTime, topoTime, and v.
Referenced by DFS().
Definition at line 553 of file navpath.cpp.
Referenced by NavComputer::actionRemove().
void PathManager::showAll | ( | ) |
Definition at line 565 of file navpath.cpp.
Referenced by NavComputer::actionShowAll().
void PathManager::showNone | ( | ) |
Definition at line 571 of file navpath.cpp.
Referenced by NavComputer::actionShowNone().
void PathManager::updateDependants | ( | NavPath * | parent) |
Definition at line 613 of file navpath.cpp.
References NavPath::getDependants(), i, and updateSpecificPath().
Referenced by updateSpecificPath().
void PathManager::updatePaths | ( | UpdateType | type = ALL ) |
Definition at line 585 of file navpath.cpp.
References ALL, CURRENT, DFS(), i, j, paths, topoOrder, and updateSpecificPath().
Referenced by NavComputer::toggleVisibility(), and GameCockpit::visitSystem().
Definition at line 577 of file navpath.cpp.
References NavPath::update(), NavPath::updated, and updateDependants().
Referenced by NavPath::setDestinationNode(), NavPath::setSourceNode(), updateDependants(), and updatePaths().
|
friend |
|
protected |
Definition at line 151 of file navpath.h.
Referenced by addPath(), DFS(), NavComputer::init(), NavComputer::loadChainLister(), NavComputer::loadPathLister(), removePath(), showAll(), showNone(), updatePaths(), and ~PathManager().
|
protected |
Definition at line 152 of file navpath.h.
Referenced by DFS(), dfsVisit(), and updatePaths().
|
protected |
Definition at line 156 of file navpath.h.
Referenced by DFS(), and dfsVisit().