_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Classes | Public Types | List of all members
TerrainTraversal Class Reference

#include <pathfinder.h>

Public Types

typedef short int dataType
 

Public Member Functions

pathfinder.h - The path finder headerfile.
template<typename T >
bool Run (T &context)
 

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
 

Member Typedef Documentation

◆ dataType

typedef short int TerrainTraversal::dataType

Member Function Documentation

◆ Get()

TerrainTraversal::dataType TerrainTraversal::Get ( const Vec2i pos) const

◆ Init()

void TerrainTraversal::Init ( )

◆ IsInvalid()

bool TerrainTraversal::IsInvalid ( const Vec2i pos) const

◆ IsReached()

bool TerrainTraversal::IsReached ( const Vec2i pos) const

◆ IsVisited()

bool TerrainTraversal::IsVisited ( const Vec2i pos) const

◆ PushNeighboor()

void TerrainTraversal::PushNeighboor ( const Vec2i pos)

◆ PushPos()

void TerrainTraversal::PushPos ( const Vec2i pos)

◆ PushUnitPosAndNeighboor()

void TerrainTraversal::PushUnitPosAndNeighboor ( const CUnit unit)

◆ Run()

template<typename T >
bool TerrainTraversal::Run ( T &  context)

◆ SetSize()

void TerrainTraversal::SetSize ( unsigned int  width,
unsigned int  height 
)

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.