DayZ Enforce
Script API
Private Member Functions | Private Attributes | List of all members
TrapSpawnBase Class Reference

#include <TrapSpawnBase.h>

Inheritance diagram for TrapSpawnBase:
ItemBase Trap_FishNet Trap_RabbitSnare Trap_SmallFish EN5C_FishNetTrap EN5C_RabbitSnareTrap EN5C_SmallFishTrap

Private Member Functions

void  TrapSpawnBase ()
 
void  ~TrapSpawnBase ()
 
bool  IsActive ()
 
bool  IsTakeable ()
 
bool  IsPlaceable ()
 
bool  IsPlaceableAtPosition (vector position)
 
void  SetupTrap ()
 
void  SetupTrapPlayer (PlayerBase player, bool set_position=true)
 
void  Fold ()
 
protected bool  AddDefect ()
 
void  StartActivate (PlayerBase player)
 
void  SetActive ()
 
void  SetInactive ()
 
void  SetUsed ()
 
void  SpawnCatch ()
 
void  AlignCatch (ItemBase obj, string catch_name)
 
protected void  EEItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
void  OnPlacementFinished (PlayerBase player)
 
bool  CanBePlaced (PlayerBase player, vector position)
 
string  CanBePlacedFailMessage (PlayerBase player, vector position)
 

Private Attributes

int  m_InitWaitTime
 
int  m_UpdateWaitTime
 
float  m_DefectRate
 
bool  m_NeedInstalation
 
bool  m_BaitNeeded
 
bool  m_IsFoldable
 
bool  m_IsUsable
 
float  m_MinimalDistanceFromPlayersToCatch
 
private bool  m_IsActive
 
private bool  m_IsInProgress
 
autoptr Timer  m_Timer
 
autoptr Timer  m_PrevTimer
 
private ItemBase  m_Catch
 
autoptr Timer  m_AlignCatchTimer
 
string  m_AnimationPhaseSet
 
string  m_AnimationPhaseTriggered
 
string  m_AnimationPhaseUsed
 
autoptr map< string, float >  m_SurfaceForSetup
 
bool  m_WaterSurfaceForSetup
 
autoptr multiMap< string, float >  m_CatchesPond
 
autoptr multiMap< string, float >  m_CatchesSea
 
autoptr multiMap< string, float >  m_CatchesGroundAnimal
 
string  m_InfoSetup
 

Constructor & Destructor Documentation

void TrapSpawnBase::TrapSpawnBase ( )
private
void TrapSpawnBase::~TrapSpawnBase ( )
private

Member Function Documentation

bool TrapSpawnBase::IsActive ( )
private

References m_IsActive, and m_IsInProgress.

Referenced by SetInactive(), and SetUsed().

bool TrapSpawnBase::IsTakeable ( )
private
bool TrapSpawnBase::IsPlaceable ( )
private
bool TrapSpawnBase::IsPlaceableAtPosition ( vector  position )
private
void TrapSpawnBase::SetupTrap ( )
private
void TrapSpawnBase::SetupTrapPlayer ( PlayerBase  player,
bool  set_position = true 
)
private
void TrapSpawnBase::Fold ( )
private

References g_Game, m_IsFoldable, and SetInactive().

Referenced by EEItemLocationChanged().

bool TrapSpawnBase::AddDefect ( )
private
void TrapSpawnBase::StartActivate ( PlayerBase  player )
private
void TrapSpawnBase::SetActive ( )
private
void TrapSpawnBase::SetInactive ( )
private
void TrapSpawnBase::SetUsed ( )
private
void TrapSpawnBase::SpawnCatch ( )
private
void TrapSpawnBase::AlignCatch ( ItemBase  obj,
string  catch_name 
)
private
void TrapSpawnBase::EEItemLocationChanged ( EntityAI  old_owner,
EntityAI  new_owner 
)
private
void TrapSpawnBase::OnPlacementFinished ( PlayerBase  player )
private

References SetupTrapPlayer().

bool TrapSpawnBase::CanBePlaced ( PlayerBase  player,
vector  position 
)
private
string TrapSpawnBase::CanBePlacedFailMessage ( PlayerBase  player,
vector  position 
)
private

Member Data Documentation

int TrapSpawnBase::m_InitWaitTime
private
int TrapSpawnBase::m_UpdateWaitTime
private
float TrapSpawnBase::m_DefectRate
private

Referenced by AddDefect(), and TrapSpawnBase().

bool TrapSpawnBase::m_NeedInstalation
private
bool TrapSpawnBase::m_BaitNeeded
private
bool TrapSpawnBase::m_IsFoldable
private
bool TrapSpawnBase::m_IsUsable
private
float TrapSpawnBase::m_MinimalDistanceFromPlayersToCatch
private
private bool TrapSpawnBase::m_IsActive
private
private bool TrapSpawnBase::m_IsInProgress
private

Referenced by IsActive(), SetActive(), and TrapSpawnBase().

autoptr Timer TrapSpawnBase::m_Timer
private
autoptr Timer TrapSpawnBase::m_PrevTimer
private

Referenced by SpawnCatch(), and TrapSpawnBase().

private ItemBase TrapSpawnBase::m_Catch
private

Referenced by SpawnCatch().

autoptr Timer TrapSpawnBase::m_AlignCatchTimer
private

Referenced by SpawnCatch().

string TrapSpawnBase::m_AnimationPhaseSet
private
string TrapSpawnBase::m_AnimationPhaseTriggered
private
string TrapSpawnBase::m_AnimationPhaseUsed
private
autoptr map<string, float> TrapSpawnBase::m_SurfaceForSetup
private
bool TrapSpawnBase::m_WaterSurfaceForSetup
private
autoptr multiMap<string, float> TrapSpawnBase::m_CatchesPond
private
autoptr multiMap<string, float> TrapSpawnBase::m_CatchesSea
private
autoptr multiMap<string, float> TrapSpawnBase::m_CatchesGroundAnimal
private
string TrapSpawnBase::m_InfoSetup
private

The documentation for this class was generated from the following files:
Converted from CHM to HTML with chm2web Pro 2.85 (unicode)