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
TerritoryOverlay Class Reference
Inheritance diagram for TerritoryOverlay:
TerrainOverlay ITerrainOverlay

Public Member Functions

 TerritoryOverlay (CCmpTerritoryManager &manager)
 
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...
 
- Public Member Functions inherited from ITerrainOverlay
virtual ~ITerrainOverlay ()
 
virtual void RenderAfterWater ()
 

Public Attributes

CCmpTerritoryManagerm_TerritoryManager
 

Private Member Functions

 NONCOPYABLE (TerritoryOverlay)
 

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 EndRender ()
 Override to perform processing at the end of the overlay rendering, after the ProcessTile calls. 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

Definition at line 51 of file CCmpTerritoryManager.cpp.

Constructor & Destructor Documentation

TerritoryOverlay::TerritoryOverlay ( CCmpTerritoryManager manager)

Definition at line 737 of file CCmpTerritoryManager.cpp.

Member Function Documentation

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

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 746 of file CCmpTerritoryManager.cpp.

void TerritoryOverlay::StartRender ( )
virtual

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

Reimplemented from TerrainOverlay.

Definition at line 741 of file CCmpTerritoryManager.cpp.

Member Data Documentation

CCmpTerritoryManager& TerritoryOverlay::m_TerritoryManager

Definition at line 55 of file CCmpTerritoryManager.cpp.


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