PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
MapNavigationBehaviour.c File Reference

Enumerations

enum  EMapNavigationType { BASIC = 0 , COMPASS = 1 , GPS = 2 , ALL = 4 }
 

Functions

void MapNavigationBehaviour (PlayerBase pPlayer, EMapNavigationType pNavigationType=EMapNavigationType.BASIC)
 
protected void SetNavigationType (EMapNavigationType pType)
 
protected void UnsetNavigationType (EMapNavigationType pType)
 
EMapNavigationType GetNavigationType ()
 
void OnItemInPlayerPossession (EntityAI item)
 
void OnItemNotInPlayerPossession (EntityAI item)
 
void RandomizePosition ()
 
protected float RandomizedDeviation ()
 
vector GetPositionRandomized ()
 
vector GetPositionReal ()
 
static array< intOrderedPositionNumbersFromGridCoords (EntityAI pEntity)
 
static array< intOrderedAltitudeNumbersPosition (EntityAI pEntity)
 
static bool IsOutOfMap (EntityAI pEntity)
 

Variables

enum EMapNavigationType RANDOM_DEVIATION_MIN = 4
 
const int RANDOM_DEVIATION_MAX = 15
 
static const int DISPLAY_GRID_POS_MAX_CHARS_COUNT = 3
 
static const int DISPLAY_ALT_MAX_CHARS_COUNT = 4
 
static protected const string GRID_SIZE_CFG_PATH = "CfgWorlds %1 Grid Zoom1 stepX"
 
protected int m_RandomPositionDeviationX
 
protected int m_RandomPositionDeviationZ
 
protected EMapNavigationType m_NavigationType
 
protected PlayerBase m_Player
 
protected ref array< EntityAIm_GPSInPossessionArr
 
protected ref array< EntityAIm_CompassInPossessionArr
 

Enumeration Type Documentation

◆ EMapNavigationType

Enumerator
BASIC 
COMPASS 
GPS 
ALL 

Function Documentation

◆ GetNavigationType()

EMapNavigationType GetNavigationType ( )

References m_NavigationType.

◆ GetPositionRandomized()

vector GetPositionRandomized ( )

◆ GetPositionReal()

vector GetPositionReal ( )

References m_Player.

◆ IsOutOfMap()

static bool IsOutOfMap ( EntityAI  pEntity)
static

◆ MapNavigationBehaviour()

◆ OnItemInPlayerPossession()

void OnItemInPlayerPossession ( EntityAI  item)

◆ OnItemNotInPlayerPossession()

void OnItemNotInPlayerPossession ( EntityAI  item)

◆ OrderedAltitudeNumbersPosition()

static array< int > OrderedAltitudeNumbersPosition ( EntityAI  pEntity)
static

◆ OrderedPositionNumbersFromGridCoords()

◆ RandomizedDeviation()

◆ RandomizePosition()

◆ SetNavigationType()

protected void SetNavigationType ( EMapNavigationType  pType)

References m_NavigationType.

Referenced by OnItemInPlayerPossession().

◆ UnsetNavigationType()

protected void UnsetNavigationType ( EMapNavigationType  pType)

References m_NavigationType.

Referenced by OnItemNotInPlayerPossession().

Variable Documentation

◆ DISPLAY_ALT_MAX_CHARS_COUNT

const int DISPLAY_ALT_MAX_CHARS_COUNT = 4
static

◆ DISPLAY_GRID_POS_MAX_CHARS_COUNT

const int DISPLAY_GRID_POS_MAX_CHARS_COUNT = 3
static

◆ GRID_SIZE_CFG_PATH

protected const string GRID_SIZE_CFG_PATH = "CfgWorlds %1 Grid Zoom1 stepX"
static

◆ m_CompassInPossessionArr

protected ref array<EntityAI> m_CompassInPossessionArr

◆ m_GPSInPossessionArr

protected ref array<EntityAI> m_GPSInPossessionArr

◆ m_NavigationType

◆ m_Player

protected PlayerBase m_Player

◆ m_RandomPositionDeviationX

protected int m_RandomPositionDeviationX

◆ m_RandomPositionDeviationZ

protected int m_RandomPositionDeviationZ

◆ RANDOM_DEVIATION_MAX

const int RANDOM_DEVIATION_MAX = 15

Referenced by RandomizedDeviation().

◆ RANDOM_DEVIATION_MIN

enum EMapNavigationType RANDOM_DEVIATION_MIN = 4

Referenced by RandomizedDeviation().