Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ICmpRangeManager.h File Reference
Include dependency graph for ICmpRangeManager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ICmpRangeManager
 Provides efficient range-based queries of the game world, and also LOS-based effects (fog of war). More...
 

Enumerations

enum class  LosVisibility : u8 { HIDDEN = 0 , FOGGED = 1 , VISIBLE = 2 }
 Since GetVisibility queries are run by the range manager other code using these must include ICmpRangeManager.h anyways, so define this enum here (Ideally, it'd be in its own header file, but adding header file does incur its own compilation time increase). More...
 

Variables

const entity_pos_t ALWAYS_IN_RANGE = entity_pos_t::FromInt(-1)
 Value assigned to a range we will always be in (caused by out of world or "too high" in parabolic ranges). More...
 
const entity_pos_t NEVER_IN_RANGE = entity_pos_t::FromInt(-2)
 Value assigned to a range we will never be in (caused by out of world or "too high" in parabolic ranges). More...
 

Enumeration Type Documentation

◆ LosVisibility

enum class LosVisibility : u8
strong

Since GetVisibility queries are run by the range manager other code using these must include ICmpRangeManager.h anyways, so define this enum here (Ideally, it'd be in its own header file, but adding header file does incur its own compilation time increase).

Enumerator
HIDDEN 
FOGGED 
VISIBLE 

Variable Documentation

◆ ALWAYS_IN_RANGE

const entity_pos_t ALWAYS_IN_RANGE = entity_pos_t::FromInt(-1)

Value assigned to a range we will always be in (caused by out of world or "too high" in parabolic ranges).

TODO Add this for minRanges too.

◆ NEVER_IN_RANGE

const entity_pos_t NEVER_IN_RANGE = entity_pos_t::FromInt(-2)

Value assigned to a range we will never be in (caused by out of world or "too high" in parabolic ranges).

TODO Add this to range queries too.