DIFF

class ClockBaseSource

ClockBase Inventory_Base ItemBase InventoryItem EntityAI Entity ObjectTyped Object IEntity Managed

All members, including inherited

Constructors 2

void ClockBase()
References Init()

Constants 2

static const float UPDATE_TICK_RATE = 1

Clock update tick frequency

const float RINGING_DURATION_MAX = 60

in secs, at or past this value, the clock stops ringing

Members 10

ref Timer m_TimerUpdate
int m_StatePrev = -1
EffectSound m_TurnOnSound
EffectSound m_DestoryedSound
EffectSound m_HitSound
Referenced by ~ClockBase(), and EEHitByRemote()

Methods 37

static int ConvertAlarmHand01ToMins12h(float time01)
References Math.Lerp()
static int ConvertAlarmHand01ToMins(float time01, int mins_max)
References Math.Lerp()
static float ConvertMins12hToAlarmHand01(int mins)
Referenced by SetAlarmInXMins()
static int ConvertTimeToMins12h(int hour, int minute)
static int GetTimeDiffInMins12h(int from_mins, int to_mins)
Referenced by GetAlarmInMin()
string GetToggleSound()
string GetRingingSound()
string GetHitSound()
Referenced by EEHitByRemote()
string GetDestroyedSound()
Referenced by OnDamageDestroyed()
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()
References ActivateParent()
Referenced by MakeRingingStart()
protected void OnRingingStartClient()
protected void OnRingingStopServer()
Referenced by MakeRingingStop()
protected void SetupTimerServer()
References Timer.Run(), new Timer(), m_TimerUpdate
Show 1 more, UPDATE_TICK_RATE
Referenced by Arm(), and MakeRingingStart()
protected void Disarm()
References SetState()
Referenced by TurnOff(), and KitchenTimer.Disarm()
protected void Arm()
Referenced by SetAlarmInXMins(), and TurnOn()
protected void ActivateParent()
protected void MakeRingingStop()
void TurnOnClient()
void TurnOffClient()