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

Responsible for calculating territory boundaries, given an input territory map. More...

#include <TerritoryBoundary.h>

Static Public Member Functions

static std::vector
< STerritoryBoundary
ComputeBoundaries (const Grid< u8 > *territories)
 Computes and returns all territory boundaries on the provided territory map (see STerritoryBoundary for a definition). More...
 

Private Member Functions

 CTerritoryBoundaryCalculator ()
 

Detailed Description

Responsible for calculating territory boundaries, given an input territory map.

Factored out for testing.

Definition at line 51 of file TerritoryBoundary.h.

Constructor & Destructor Documentation

CTerritoryBoundaryCalculator::CTerritoryBoundaryCalculator ( )
inlineprivate

Definition at line 54 of file TerritoryBoundary.h.

Member Function Documentation

std::vector< STerritoryBoundary > CTerritoryBoundaryCalculator::ComputeBoundaries ( const Grid< u8 > *  territories)
static

Computes and returns all territory boundaries on the provided territory map (see STerritoryBoundary for a definition).

The result includes both inner and outer territory boundaries. Outer boundaries have their points in CCW order, inner boundaries have them in CW order (because this matches the winding orders needed by the renderer to offset them inwards/outwards appropriately).

Definition at line 26 of file TerritoryBoundary.cpp.


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