$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <pathfinder.h>
pathfinder.cpp - The path finder routines. | |
void | SetSize (unsigned int width, unsigned int height) |
void | Init () |
void | PushPos (const Vec2i &pos) |
void | PushNeighboor (const Vec2i &pos) |
void | PushUnitPosAndNeighboor (const CUnit &unit) |
bool | IsVisited (const Vec2i &pos) const |
bool | IsReached (const Vec2i &pos) const |
bool | IsInvalid (const Vec2i &pos) const |
dataType | Get (const Vec2i &pos) const |
Public Types | |
typedef short unsigned int | dataType |
Public Member Functions | |
pathfinder.h - The path finder headerfile. | |
template<typename T> | |
bool | Run (T &context) |
Classes | |
struct | PosNode |
typedef short unsigned int TerrainTraversal::dataType |
void TerrainTraversal::SetSize | ( | unsigned int | width, | |
unsigned int | height | |||
) |
void TerrainTraversal::Init | ( | ) |
void TerrainTraversal::PushPos | ( | const Vec2i & | pos | ) |
void TerrainTraversal::PushNeighboor | ( | const Vec2i & | pos | ) |
void TerrainTraversal::PushUnitPosAndNeighboor | ( | const CUnit & | unit | ) |
bool TerrainTraversal::Run | ( | T & | context | ) | [inline] |
bool TerrainTraversal::IsVisited | ( | const Vec2i & | pos | ) | const |
bool TerrainTraversal::IsReached | ( | const Vec2i & | pos | ) | const |
bool TerrainTraversal::IsInvalid | ( | const Vec2i & | pos | ) | const |
TerrainTraversal::dataType TerrainTraversal::Get | ( | const Vec2i & | pos | ) | const |