Pyrogenesis trunk
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< STerritoryBoundaryComputeBoundaries (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.

Constructor & Destructor Documentation

◆ CTerritoryBoundaryCalculator()

CTerritoryBoundaryCalculator::CTerritoryBoundaryCalculator ( )
inlineprivate

Member Function Documentation

◆ ComputeBoundaries()

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).


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