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

Private Member Functions

void Init ()
 
array< EntityAIGetVicinityItems ()
 
void AddVicinityItems (Object object)
 
array< CargoBaseGetVicinityCargos ()
 
void AddVicinityCargos (CargoBase object)
 
void ResetRefreshCounter ()
 
void Update (float delta_time)
 
bool ExcludeFromContainer_Phase1 (Object actor_in_radius)
 
bool ExcludeFromContainer_Phase2 (Object object_in_radius)
 
bool ExcludeFromContainer_Phase3 (Object object_in_cone)
 
bool CanIgnoreDistanceCheck (EntityAI entity_ai)
 
void RefreshVicinityItems ()
 
protected float GetFixedHeadHeightAdjustment (PlayerBase player)
 
bool IsObstructed (Object filtered_object)
 

Static Private Member Functions

static VicinityItemManager GetInstance ()
 

Private Attributes

private const float UPDATE_FREQUENCY = 0.25
 
private const float VICINITY_DISTANCE = 0.5
 
private const float VICINITY_ACTOR_DISTANCE = 2.0
 
private const float VICINITY_LARGE_ACTOR_DISTANCE = 3.0
 
private const float VICINITY_CONE_DISTANCE = 2.0
 
private const float VICINITY_CONE_REACH_DISTANCE = 2.0
 
private const float VICINITY_CONE_ANGLE = 30
 
private const float VICINITY_CONE_RADIANS = 0.5
 
private const string CE_CENTER = "ce_center"
 
private const float HEIGHT_OFFSET = 0.2
 
private const int OBJECT_OBSTRUCTION_WEIGHT = 10000
 
private const float CONE_HEIGHT_MIN = -0.5
 
private const float CONE_HEIGHT_MAX = 3.0
 
private ref array< EntityAIm_VicinityItems = new array<EntityAI>()
 
private ref array< CargoBasem_VicinityCargos = new array<CargoBase>()
 
private float m_RefreshCounter
 

Static Private Attributes

static private ref VicinityItemManager s_Instance
 

Member Function Documentation

◆ AddVicinityCargos()

void AddVicinityCargos ( CargoBase  object)
inlineprivate

References INDEX_NOT_FOUND, and m_VicinityCargos.

Referenced by RefreshVicinityItems().

◆ AddVicinityItems()

◆ CanIgnoreDistanceCheck()

bool CanIgnoreDistanceCheck ( EntityAI  entity_ai)
inlineprivate

Referenced by RefreshVicinityItems().

◆ ExcludeFromContainer_Phase1()

bool ExcludeFromContainer_Phase1 ( Object  actor_in_radius)
inlineprivate

If in free camera, allow viewing of inventory

References Class::CastTo(), vector::Dot(), GetGame(), GetPlayer(), EntityAI::IsMan(), and vector::Normalize().

Referenced by RefreshVicinityItems().

◆ ExcludeFromContainer_Phase2()

bool ExcludeFromContainer_Phase2 ( Object  object_in_radius)
inlineprivate

References Class::CastTo(), GetGame(), and GetPlayer().

Referenced by RefreshVicinityItems().

◆ ExcludeFromContainer_Phase3()

bool ExcludeFromContainer_Phase3 ( Object  object_in_cone)
inlineprivate

References Class::CastTo(), GetGame(), and GetPlayer().

Referenced by RefreshVicinityItems().

◆ GetFixedHeadHeightAdjustment()

protected float GetFixedHeadHeightAdjustment ( PlayerBase  player)
inlineprivate

◆ GetInstance()

static VicinityItemManager GetInstance ( )
inlinestaticprivate

◆ GetVicinityCargos()

array< CargoBase > GetVicinityCargos ( )
inlineprivate

◆ GetVicinityItems()

array< EntityAI > GetVicinityItems ( )
inlineprivate

◆ Init()

void Init ( )
inlineprivate

◆ IsObstructed()

bool IsObstructed ( Object  filtered_object)
inlineprivate

Referenced by RefreshVicinityItems().

◆ RefreshVicinityItems()

◆ ResetRefreshCounter()

void ResetRefreshCounter ( )
inlineprivate

References m_RefreshCounter.

Referenced by MissionBase::HideInventory().

◆ Update()

void Update ( float  delta_time)
inlineprivate

Field Documentation

◆ CE_CENTER

private const string CE_CENTER = "ce_center"
private

◆ CONE_HEIGHT_MAX

private const float CONE_HEIGHT_MAX = 3.0
private

Referenced by RefreshVicinityItems().

◆ CONE_HEIGHT_MIN

private const float CONE_HEIGHT_MIN = -0.5
private

Referenced by RefreshVicinityItems().

◆ HEIGHT_OFFSET

private const float HEIGHT_OFFSET = 0.2
private

◆ m_RefreshCounter

private float m_RefreshCounter
private

Referenced by ResetRefreshCounter(), and Update().

◆ m_VicinityCargos

private ref array<CargoBase> m_VicinityCargos = new array<CargoBase>()
private

◆ m_VicinityItems

private ref array<EntityAI> m_VicinityItems = new array<EntityAI>()
private

◆ OBJECT_OBSTRUCTION_WEIGHT

private const int OBJECT_OBSTRUCTION_WEIGHT = 10000
private

◆ s_Instance

private ref VicinityItemManager s_Instance
staticprivate

Referenced by GetInstance().

◆ UPDATE_FREQUENCY

private const float UPDATE_FREQUENCY = 0.25
private

Referenced by Update().

◆ VICINITY_ACTOR_DISTANCE

private const float VICINITY_ACTOR_DISTANCE = 2.0
private

Referenced by RefreshVicinityItems().

◆ VICINITY_CONE_ANGLE

private const float VICINITY_CONE_ANGLE = 30
private

Referenced by RefreshVicinityItems().

◆ VICINITY_CONE_DISTANCE

private const float VICINITY_CONE_DISTANCE = 2.0
private

Referenced by RefreshVicinityItems().

◆ VICINITY_CONE_RADIANS

private const float VICINITY_CONE_RADIANS = 0.5
private

◆ VICINITY_CONE_REACH_DISTANCE

private const float VICINITY_CONE_REACH_DISTANCE = 2.0
private

◆ VICINITY_DISTANCE

private const float VICINITY_DISTANCE = 0.5
private

Referenced by RefreshVicinityItems().

◆ VICINITY_LARGE_ACTOR_DISTANCE

private const float VICINITY_LARGE_ACTOR_DISTANCE = 3.0
private

Referenced by RefreshVicinityItems().


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