$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

TerrainTraversal Class Reference

#include <pathfinder.h>

List of all members.


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

Member Typedef Documentation

typedef short unsigned int TerrainTraversal::dataType


Member Function Documentation

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  ) 

template<typename T>
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


The documentation for this class was generated from the following files:
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.