Pyrogenesis  trunk
Classes | Enumerations | Variables
ICmpRangeManager.h File Reference
#include "maths/FixedVector3D.h"
#include "maths/FixedVector2D.h"
#include "simulation2/system/Interface.h"
#include "simulation2/helpers/Position.h"
#include "simulation2/helpers/Player.h"
#include <vector>
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  LosVisibility : u8 { LosVisibility::HIDDEN = 0, LosVisibility::FOGGED = 1, LosVisibility::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 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.