Pathfinder.cpp File Reference

Go to the source code of this file.

Classes

struct  PathNode

Functions

static void drawbox (Item *item)
static void drawdot (sint32 x, sint32 y, sint32 z, int size, uint32 rgb)
static void drawedge (PathNode *from, PathNode *to, uint32 rgb)
static void drawpath (PathNode *to, uint32 rgb, bool done)

Variables

static unsigned int expandednodes = 0


Function Documentation

static void drawbox ( Item item  )  [static]

Definition at line 257 of file Pathfinder.cpp.

References RenderSurface::DrawLine32(), RenderSurface::Fill32(), GUIApp::get_instance(), GameMapGump::GetCameraLocation(), Item::getFootpadWorld(), GUIApp::getGameMapGump(), Item::getLocation(), GUIApp::getScreen(), RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, and Pentagram::Rect::w.

Referenced by Pathfinder::pathfind().

static void drawdot ( sint32  x,
sint32  y,
sint32  z,
int  size,
uint32  rgb 
) [static]

Definition at line 298 of file Pathfinder.cpp.

References RenderSurface::Fill32(), GUIApp::get_instance(), GameMapGump::GetCameraLocation(), GUIApp::getGameMapGump(), GUIApp::getScreen(), RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, and Pentagram::Rect::w.

Referenced by drawpath(), and Pathfinder::pathfind().

static void drawedge ( PathNode from,
PathNode to,
uint32  rgb 
) [static]

Definition at line 316 of file Pathfinder.cpp.

References RenderSurface::DrawLine32(), GUIApp::get_instance(), GameMapGump::GetCameraLocation(), GUIApp::getGameMapGump(), GUIApp::getScreen(), RenderSurface::GetSurfaceDims(), Pentagram::Rect::h, PathNode::state, Pentagram::Rect::w, PathfindingState::x, PathfindingState::y, and PathfindingState::z.

Referenced by drawpath().

static void drawpath ( PathNode to,
uint32  rgb,
bool  done 
) [static]

Definition at line 347 of file Pathfinder.cpp.

References drawdot(), drawedge(), PathNode::parent, PathNode::state, PathfindingState::x, PathfindingState::y, and PathfindingState::z.

Referenced by Pathfinder::newNode().


Variable Documentation

unsigned int expandednodes = 0 [static]

Definition at line 45 of file Pathfinder.cpp.

Referenced by Pathfinder::expandNode(), Pathfinder::pathfind(), Pathfinder::Pathfinder(), and Pathfinder::~Pathfinder().


Generated on Fri Jul 27 22:28:08 2007 for pentagram by  doxygen 1.4.7