Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
#include <navpath.h>
Protected Attributes | |
bool | visible |
std::string | name |
GFXColor | color |
PathNode * | source |
PathNode * | destination |
std::list< unsigned > | path |
std::map< unsigned, std::pair < unsigned, unsigned > > | pathNeighbors |
std::set< NavPath * > | dependants |
TopoColor | topoColor |
unsigned | topoTime |
bool | updated |
Friends | |
class | PathManager |
NavPath::NavPath | ( | ) |
Definition at line 503 of file navpath.cpp.
References color, destination, name, source, and visible.
NavPath::~NavPath | ( | ) |
Definition at line 512 of file navpath.cpp.
References destination, getDependants(), PathNode::getRequiredPath(), i, removeDependant(), removeOldPath(), and source.
void NavPath::addDependant | ( | NavPath * | dependant) |
Definition at line 230 of file navpath.cpp.
References dependants.
Referenced by setDestinationNode(), and setSourceNode().
void NavPath::addNewPath | ( | ) |
Definition at line 458 of file navpath.cpp.
References _Universe, Universe::AccessCockpit(), Cockpit::AccessNavSystem(), i, path, and pathNeighbors.
Referenced by update().
bool NavPath::checkForCycles | ( | ) | const |
Definition at line 266 of file navpath.cpp.
References getRequiredPaths(), i, and v.
Referenced by setDestinationNode(), and setSourceNode().
bool NavPath::evaluate | ( | ) |
Definition at line 289 of file navpath.cpp.
References _Universe, Universe::AccessCockpit(), Cockpit::AccessNavSystem(), destination, fprintf, VegaConfig::getVariable(), i, index, PathNode::initSearchQueue(), isAbsolute(), isComplete(), PathNode::isDestination(), XMLSupport::parse_int(), path, NavigationSystem::CachedSystemIterator::size(), source, and vs_config.
Referenced by update().
unsigned NavPath::getAbsoluteDestination | ( | ) | const |
Definition at line 215 of file navpath.cpp.
References path.
Referenced by ChainPathNode::initSearchQueue(), and ChainPathNode::isDestination().
unsigned NavPath::getAbsoluteSource | ( | ) | const |
Definition at line 210 of file navpath.cpp.
References path.
Referenced by ChainPathNode::initSearchQueue(), and ChainPathNode::isDestination().
const std::list< unsigned > * NavPath::getAllPoints | ( | ) | const |
Definition at line 220 of file navpath.cpp.
References path.
Referenced by ChainPathNode::initSearchQueue(), and ChainPathNode::isDestination().
std::list< unsigned > * NavPath::getAllPoints | ( | ) |
GFXColor NavPath::getColor | ( | ) | const |
const std::set< NavPath * > * NavPath::getDependants | ( | ) | const |
Definition at line 244 of file navpath.cpp.
References dependants.
Referenced by PathManager::dfsVisit(), PathManager::updateDependants(), and ~NavPath().
std::set< NavPath * > * NavPath::getDependants | ( | ) |
Definition at line 249 of file navpath.cpp.
References dependants.
string NavPath::getDescription | ( | ) | const |
Definition at line 99 of file navpath.cpp.
References destination, PathNode::getDescription(), getName(), getVisible(), isComplete(), isEvaluated(), and source.
Referenced by NavComputer::updateDescription().
|
inline |
|
inline |
string NavPath::getName | ( | ) | const |
Definition at line 153 of file navpath.cpp.
References name.
Referenced by getDescription(), and ChainPathNode::getDescription().
std::vector< NavPath * > NavPath::getRequiredPaths | ( | ) | const |
Definition at line 254 of file navpath.cpp.
References destination, PathNode::getRequiredPath(), and source.
Referenced by checkForCycles().
|
inline |
|
inline |
bool NavPath::getVisible | ( | ) | const |
Definition at line 143 of file navpath.cpp.
References visible.
Referenced by NavComputer::actionShowPath(), and getDescription().
bool NavPath::isAbsolute | ( | ) | const |
Definition at line 55 of file navpath.cpp.
References destination, PathNode::isAbsolute(), isComplete(), and source.
Referenced by evaluate().
bool NavPath::isComplete | ( | ) | const |
Definition at line 64 of file navpath.cpp.
References destination, PathNode::getRequiredPath(), isEvaluated(), and source.
Referenced by evaluate(), getDescription(), and isAbsolute().
bool NavPath::isCurrentDependant | ( | ) | const |
Definition at line 77 of file navpath.cpp.
References destination, PathNode::isCurrentDependant(), and source.
|
inline |
Definition at line 51 of file navpath.h.
References path.
Referenced by getDescription(), and isComplete().
bool NavPath::isNeighborPath | ( | unsigned | system, |
unsigned | neighbor | ||
) |
bool NavPath::isTargetDependant | ( | ) | const |
Definition at line 88 of file navpath.cpp.
References destination, PathNode::isTargetDependant(), and source.
void NavPath::removeDependant | ( | NavPath * | dependant) |
Definition at line 237 of file navpath.cpp.
References dependants.
Referenced by setDestinationNode(), setSourceNode(), and ~NavPath().
void NavPath::removeOldPath | ( | ) |
Definition at line 446 of file navpath.cpp.
References _Universe, Universe::AccessCockpit(), Cockpit::AccessNavSystem(), i, path, and pathNeighbors.
Referenced by update(), and ~NavPath().
void NavPath::setColor | ( | GFXColor | col) |
Definition at line 185 of file navpath.cpp.
References _Universe, Universe::AccessCockpit(), Cockpit::AccessNavSystem(), addDependant(), checkForCycles(), destination, PathNode::getRequiredPath(), NavigationSystem::pathman, removeDependant(), and PathManager::updateSpecificPath().
Referenced by NavComputer::actionDestination(), and NavComputer::init().
void NavPath::setName | ( | std::string | n) |
Definition at line 138 of file navpath.cpp.
References name.
Referenced by NavComputer::actionRenameConfirmed(), and NavComputer::init().
Definition at line 158 of file navpath.cpp.
References _Universe, Universe::AccessCockpit(), Cockpit::AccessNavSystem(), addDependant(), checkForCycles(), PathNode::getRequiredPath(), PathNode::isSourceable(), NavigationSystem::pathman, removeDependant(), source, and PathManager::updateSpecificPath().
Referenced by NavComputer::actionSource(), PathManager::addPath(), and NavComputer::init().
void NavPath::setVisible | ( | bool | vis) |
Definition at line 128 of file navpath.cpp.
References visible.
Referenced by NavComputer::actionShowPath().
bool NavPath::update | ( | ) |
Definition at line 492 of file navpath.cpp.
References addNewPath(), evaluate(), and removeOldPath().
Referenced by PathManager::updateSpecificPath().
|
friend |
|
protected |
Definition at line 113 of file navpath.h.
Referenced by getColor(), NavPath(), and setColor().
|
protected |
Definition at line 118 of file navpath.h.
Referenced by addDependant(), getDependants(), and removeDependant().
|
protected |
Definition at line 115 of file navpath.h.
Referenced by evaluate(), getDescription(), getDestinationNode(), getRequiredPaths(), isAbsolute(), isComplete(), isCurrentDependant(), isTargetDependant(), NavPath(), setDestinationNode(), and ~NavPath().
|
protected |
|
protected |
Definition at line 116 of file navpath.h.
Referenced by addNewPath(), evaluate(), getAbsoluteDestination(), getAbsoluteSource(), getAllPoints(), isEvaluated(), isNeighborPath(), and removeOldPath().
|
protected |
Definition at line 117 of file navpath.h.
Referenced by addNewPath(), isNeighborPath(), and removeOldPath().
|
protected |
Definition at line 114 of file navpath.h.
Referenced by evaluate(), getDescription(), getRequiredPaths(), getSourceNode(), isAbsolute(), isComplete(), isCurrentDependant(), isTargetDependant(), NavPath(), setSourceNode(), and ~NavPath().
|
protected |
Definition at line 120 of file navpath.h.
Referenced by PathManager::dfsVisit().
|
protected |
Definition at line 121 of file navpath.h.
Referenced by PathManager::dfsVisit().
|
protected |
Definition at line 122 of file navpath.h.
Referenced by PathManager::updateSpecificPath().
|
protected |
Definition at line 111 of file navpath.h.
Referenced by getVisible(), NavPath(), and setVisible().