Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | List of all members
PathfinderOverlay Class Reference

Terrain overlay for pathfinder debugging. More...

Inheritance diagram for PathfinderOverlay:
TerrainOverlay ITerrainOverlay

Public Member Functions

 PathfinderOverlay (CCmpPathfinder &pathfinder)
 
virtual void StartRender ()
 Override to perform processing at the start of the overlay rendering, before the ProcessTile calls. More...
 
virtual void ProcessTile (ssize_t i, ssize_t j)
 Override to perform processing of each tile. More...
 
virtual void EndRender ()
 Override to perform processing at the end of the overlay rendering, after the ProcessTile calls. More...
 
- Public Member Functions inherited from ITerrainOverlay
virtual ~ITerrainOverlay ()
 
virtual void RenderAfterWater ()
 

Public Attributes

CCmpPathfinderm_Pathfinder
 

Private Member Functions

 NONCOPYABLE (PathfinderOverlay)
 

Additional Inherited Members

- Static Public Member Functions inherited from ITerrainOverlay
static void RenderOverlaysBeforeWater ()
 Draw all ITerrainOverlay objects that exist and that should be drawn before water. More...
 
static void RenderOverlaysAfterWater ()
 Draw all ITerrainOverlay objects that exist and that should be drawn after water. More...
 
- Protected Member Functions inherited from TerrainOverlay
 TerrainOverlay (const CSimContext &simContext, int priority=100)
 Construct the object and register it with the global list of terrain overlays. More...
 
virtual void GetTileExtents (ssize_t &min_i_inclusive, ssize_t &min_j_inclusive, ssize_t &max_i_inclusive, ssize_t &max_j_inclusive)
 Override to limit the range over which ProcessTile will be called. More...
 
void RenderTile (const CColor &colour, bool draw_hidden)
 Draw a filled quad on top of the current tile. More...
 
void RenderTile (const CColor &colour, bool draw_hidden, ssize_t i, ssize_t j)
 Draw a filled quad on top of the given tile. More...
 
void RenderTileOutline (const CColor &colour, int line_width, bool draw_hidden)
 Draw an outlined quad on top of the current tile. More...
 
void RenderTileOutline (const CColor &colour, int line_width, bool draw_hidden, ssize_t i, ssize_t j)
 Draw an outlined quad on top of the given tile. More...
 
- Protected Member Functions inherited from ITerrainOverlay
 ITerrainOverlay (int priority)
 

Detailed Description

Terrain overlay for pathfinder debugging.

Renders a representation of the most recent pathfinding operation.

Definition at line 100 of file CCmpPathfinder_Tile.cpp.

Constructor & Destructor Documentation

PathfinderOverlay::PathfinderOverlay ( CCmpPathfinder pathfinder)
inline

Definition at line 106 of file CCmpPathfinder_Tile.cpp.

Member Function Documentation

virtual void PathfinderOverlay::EndRender ( )
inlinevirtual

Override to perform processing at the end of the overlay rendering, after the ProcessTile calls.

Reimplemented from TerrainOverlay.

Definition at line 134 of file CCmpPathfinder_Tile.cpp.

PathfinderOverlay::NONCOPYABLE ( PathfinderOverlay  )
private
virtual void PathfinderOverlay::ProcessTile ( ssize_t  i,
ssize_t  j 
)
inlinevirtual

Override to perform processing of each tile.

Typically calls RenderTile and/or RenderTileOutline.

Parameters
ii coordinate of tile being processed
jj coordinate of tile being processed

Implements TerrainOverlay.

Definition at line 116 of file CCmpPathfinder_Tile.cpp.

virtual void PathfinderOverlay::StartRender ( )
inlinevirtual

Override to perform processing at the start of the overlay rendering, before the ProcessTile calls.

Reimplemented from TerrainOverlay.

Definition at line 111 of file CCmpPathfinder_Tile.cpp.

Member Data Documentation

CCmpPathfinder& PathfinderOverlay::m_Pathfinder

Definition at line 104 of file CCmpPathfinder_Tile.cpp.


The documentation for this class was generated from the following file: