Enumerations | |
| enum | EAlarmClockState { UNSET , SET , RINGING , COUNT } |
Functions | |
| void | ClockBase () |
| void | ~ClockBase () |
| void | Init () |
| Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) | |
| override void | SetActions () |
| protected int | GetAlarmInMin () |
| static int | ConvertAlarmHand01ToMins12h (float time01) |
| static int | ConvertAlarmHand01ToMins (float time01, int mins_max) |
| static float | ConvertMins12hToAlarmHand01 (int mins) |
| static int | ConvertTimeToMins12h (int hour, int minute) |
| static int | GetTimeDiffInMins12h (int from_mins, int to_mins) |
| string | GetToggleSound () |
| string | GetRingingSound () |
| string | GetHitSound () |
| string | GetDestroyedSound () |
| string | GetWorkingSound () |
| override void | EEKilled (Object killer) |
| override void | EEHitByRemote (int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos) |
| override void | OnDamageDestroyed (int oldLevel) |
| protected void | OnRingingStartServer () |
| protected void | OnRingingStartClient () |
| protected void | OnRingingStopServer () |
| protected void | OnRingingStopClient () |
| void | SetAlarmInXMins (int in_mins) |
| float | GetRingingDurationMax () |
| protected void | SetupTimerServer () |
| protected void | SetState (EAlarmClockState state) |
| protected void | Disarm () |
| protected void | Arm () |
| protected void | ActivateParent () |
| protected void | MakeRingingStart () |
| protected void | MakeRingingStop () |
| void | TurnOnClient () |
| void | TurnOffClient () |
| override void | OnVariablesSynchronized () |
| bool | IsRinging () |
| bool | IsAlarmOn () |
| void | TurnOn () |
| void | TurnOff () |
| void | SetAlarmTimeServer (float time01) |
Variables | |
| enum EAlarmClockState | m_AlarmTime01 |
| int | m_State = EAlarmClockState.UNSET |
| static const float | UPDATE_TICK_RATE = 1 |
| ref Timer | m_TimerUpdate |
| float | m_RingingDuration |
| int | m_StatePrev = -1 |
| EffectSound | m_RingingSoundLoop |
| EffectSound | m_TurnOnSound |
| EffectSound | m_DestoryedSound |
| EffectSound | m_HitSound |
| EffectSound | m_WorkingSound |
| const float | RINGING_DURATION_MAX = 60 |
| enum EAlarmClockState |
| protected void ActivateParent | ( | ) |
Referenced by OnRingingStartServer().
| protected void Arm | ( | ) |
References m_RingingDuration, Inventory_Base::SetState(), and SetupTimerServer().
| void ClockBase | ( | ) |
References Math::Lerp().
References Math::Lerp().
Referenced by GetAlarmInMin(), and AlarmClock_ColorBase::OnUpdate().
References Math::InverseLerp().
Referenced by SetAlarmInXMins().
Referenced by GetAlarmInMin(), AlarmClock_ColorBase::OnUpdate(), and SetAlarmInXMins().
| protected void Disarm | ( | ) |
References Inventory_Base::SetState().
Referenced by TurnOff().
| override void EEHitByRemote | ( | int | damageType, |
| EntityAI | source, | ||
| int | component, | ||
| string | dmgZone, | ||
| string | ammo, | ||
| vector | modelPos | ||
| ) |
References component, GetHitSound(), and m_HitSound.
| protected int GetAlarmInMin | ( | ) |
References ConvertAlarmHand01ToMins12h(), ConvertTimeToMins12h(), World::GetDate(), GetGame(), GetTimeDiffInMins12h(), CGame::GetWorld(), and m_AlarmTime01.
Referenced by AlarmClock_ColorBase::GetDebugText().
| string GetDestroyedSound | ( | ) |
Referenced by OnDamageDestroyed().
| string GetHitSound | ( | ) |
Referenced by EEHitByRemote().
| float GetRingingDurationMax | ( | ) |
References RINGING_DURATION_MAX.
Referenced by AlarmClock_ColorBase::GetDebugText(), and AlarmClock_ColorBase::OnUpdate().
| string GetRingingSound | ( | ) |
Referenced by OnRingingStartClient().
Referenced by GetAlarmInMin().
| string GetToggleSound | ( | ) |
Referenced by OnVariablesSynchronized().
| string GetWorkingSound | ( | ) |
Referenced by OnVariablesSynchronized().
| void Init | ( | ) |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
| bool IsAlarmOn | ( | ) |
References m_State.
Referenced by AlarmClock_ColorBase::OnUpdate().
| bool IsRinging | ( | ) |
References m_State.
Referenced by AlarmClock_ColorBase::OnUpdate(), KitchenTimer::OnUpdate(), and TurnOff().
| protected void MakeRingingStart | ( | ) |
| protected void MakeRingingStop | ( | ) |
References OnRingingStopServer(), and Inventory_Base::SetState().
Referenced by KitchenTimer::OnUpdate(), and TurnOff().
| override void OnDamageDestroyed | ( | int | oldLevel | ) |
References GetDestroyedSound(), GetGame(), m_DestoryedSound, and OnRingingStopClient().
| protected void OnRingingStartClient | ( | ) |
References SEffectManager::DestroyEffect(), GetRingingSound(), m_RingingSoundLoop, and m_WorkingSound.
Referenced by OnVariablesSynchronized().
| protected void OnRingingStartServer | ( | ) |
References ActivateParent().
Referenced by MakeRingingStart().
| protected void OnRingingStopClient | ( | ) |
References SEffectManager::DestroyEffect(), and m_RingingSoundLoop.
Referenced by OnDamageDestroyed(), OnVariablesSynchronized(), and AlarmClock_ColorBase::~AlarmClock_ColorBase().
| protected void OnRingingStopServer | ( | ) |
Referenced by MakeRingingStop().
| override void OnVariablesSynchronized | ( | ) |
| override void SetActions | ( | ) |
References ActionAttachExplosivesTrigger(), and AddAction().
| void SetAlarmInXMins | ( | int | in_mins | ) |
References Arm(), ConvertMins12hToAlarmHand01(), ConvertTimeToMins12h(), World::GetDate(), GetGame(), CGame::GetWorld(), and SetAlarmTimeServer().
Referenced by AlarmClock_ColorBase::OnAction().
| void SetAlarmTimeServer | ( | float | time01 | ) |
References m_AlarmTime01.
Referenced by AlarmClock_ColorBase::OnStoreLoad(), and SetAlarmInXMins().
| protected void SetState | ( | EAlarmClockState | state | ) |
References m_State.
| protected void SetupTimerServer | ( | ) |
References m_TimerUpdate, and UPDATE_TICK_RATE.
Referenced by Arm(), and MakeRingingStart().
| void TurnOff | ( | ) |
References Disarm(), IsRinging(), m_TimerUpdate, and MakeRingingStop().
Referenced by EEKilled(), and AlarmClock_ColorBase::OnUpdate().
| void TurnOffClient | ( | ) |
| void TurnOn | ( | ) |
References Arm().
Referenced by AlarmClock_ColorBase::OnDebugSpawn(), AlarmClock_ColorBase::OnStoreLoad(), and KitchenTimer::SetAlarmTimeServer().
| void TurnOnClient | ( | ) |
| void ~ClockBase | ( | ) |
References SEffectManager::DestroyEffect(), m_DestoryedSound, m_HitSound, m_RingingSoundLoop, m_TurnOnSound, and m_WorkingSound.
| enum EAlarmClockState m_AlarmTime01 |
| EffectSound m_DestoryedSound |
Referenced by OnDamageDestroyed(), and ~ClockBase().
| EffectSound m_HitSound |
Referenced by EEHitByRemote(), and ~ClockBase().
| float m_RingingDuration |
| EffectSound m_RingingSoundLoop |
Referenced by OnRingingStartClient(), OnRingingStopClient(), KitchenTimer::OnRingingStopClient(), and ~ClockBase().
| int m_State = EAlarmClockState.UNSET |
| int m_StatePrev = -1 |
Referenced by OnVariablesSynchronized(), and SetState().
| ref Timer m_TimerUpdate |
Referenced by Init(), MakeRingingStart(), SetupTimerServer(), TurnOff(), and ~HudDebug().
| EffectSound m_TurnOnSound |
Referenced by OnVariablesSynchronized(), and ~ClockBase().
| EffectSound m_WorkingSound |
Referenced by OnRingingStartClient(), OnVariablesSynchronized(), KitchenTimer::TurnOff(), and ~ClockBase().
| const float RINGING_DURATION_MAX = 60 |
Referenced by GetRingingDurationMax().
|
static |
Referenced by AlarmClock_ColorBase::OnUpdate(), KitchenTimer::OnUpdate(), and SetupTimerServer().