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

Enumerations

enum  LockAction {
  NONE , DIAL_NUMBER_CHANED , DIAL_INDEX_CHANGED , LOCKED ,
  UNLOCKED , COUNT
}
 

Functions

void CombinationLock ()
 
protected void SetBaseLockValues ()
 
override void EEInit ()
 
void SetInitialized ()
 
override bool IsInitialized ()
 
override void OnItemLocationChanged (EntityAI old_owner, EntityAI new_owner)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void AfterStoreLoad ()
 
void Synchronize ()
 
void ResetActionVar ()
 
override void OnVariablesSynchronized ()
 
void SetCombination (int combination)
 
void SetCombinationLocked (int combination)
 
int GetCombination ()
 
int GetLockDigits ()
 
void DialNextNumber ()
 
int GetDialIndex ()
 
void SetNextDial ()
 
void LockServer (EntityAI parent, bool ignore_combination=false)
 
void UnlockServer (EntityAI player, EntityAI parent)
 
void ShuffleLock ()
 
bool IsLocked ()
 
void CheckLockedStateServer ()
 
bool IsLockedOnGate ()
 
bool IsLockAttached ()
 
void DestroyLock ()
 
void UpdateVisuals ()
 
void UpdateSound ()
 
protected void ShowItem ()
 
protected void HideItem ()
 
protected void ShowAttached ()
 
protected void HideAttached ()
 
protected void SoundLockOpen ()
 
protected void SoundLockClose ()
 
void SoundLockChangeNumber ()
 
void SoundLockChangeDial ()
 
override void SetActions ()
 

Variables

enum LockAction m_LockDigits
 
int m_Combination
 
int m_CombinationLocked
 
int m_DialIndex
 
protected bool m_IsLocked
 
protected LockAction m_LockActionPerformed = LockAction.NONE
 
protected bool m_IsInitialized
 
const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet"
 
const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet"
 
const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet"
 
const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet"
 
protected EffectSound m_Sound
 

Enumeration Type Documentation

◆ LockAction

enum LockAction
Enumerator
NONE 
DIAL_NUMBER_CHANED 
DIAL_INDEX_CHANGED 
LOCKED 
UNLOCKED 
COUNT 

Function Documentation

◆ AfterStoreLoad()

override void AfterStoreLoad ( )

◆ CheckLockedStateServer()

void CheckLockedStateServer ( )

◆ CombinationLock()

◆ DestroyLock()

void DestroyLock ( )

References GetGame(), and CGame::ObjectDelete().

◆ DialNextNumber()

◆ EEInit()

◆ GetCombination()

int GetCombination ( )

References m_Combination.

◆ GetDialIndex()

int GetDialIndex ( )

References m_DialIndex.

◆ GetLockDigits()

int GetLockDigits ( )

References m_LockDigits.

◆ HideAttached()

protected void HideAttached ( )

Referenced by UpdateVisuals().

◆ HideItem()

protected void HideItem ( )

Referenced by UpdateVisuals().

◆ IsInitialized()

◆ IsLockAttached()

bool IsLockAttached ( )

Referenced by LockServer(), and UnlockServer().

◆ IsLocked()

bool IsLocked ( )

References m_IsLocked.

◆ IsLockedOnGate()

bool IsLockedOnGate ( )

References IsLocked().

Referenced by UpdateVisuals().

◆ LockServer()

◆ OnItemLocationChanged()

override void OnItemLocationChanged ( EntityAI  old_owner,
EntityAI  new_owner 
)

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext  ctx,
int  version 
)

◆ OnStoreSave()

override void OnStoreSave ( ParamsWriteContext  ctx)

◆ OnVariablesSynchronized()

◆ ResetActionVar()

void ResetActionVar ( )

References m_LockActionPerformed.

Referenced by Synchronize().

◆ SetActions()

override void SetActions ( )

◆ SetBaseLockValues()

protected void SetBaseLockValues ( )

◆ SetCombination()

void SetCombination ( int  combination)

References m_Combination.

Referenced by DialNextNumber(), and ShuffleLock().

◆ SetCombinationLocked()

void SetCombinationLocked ( int  combination)

References m_CombinationLocked.

Referenced by LockServer().

◆ SetInitialized()

void SetInitialized ( )

References m_IsInitialized.

Referenced by EEInit().

◆ SetNextDial()

void SetNextDial ( )

◆ ShowAttached()

protected void ShowAttached ( )

Referenced by UpdateVisuals().

◆ ShowItem()

protected void ShowItem ( )

Referenced by UpdateVisuals().

◆ ShuffleLock()

◆ SoundLockChangeDial()

void SoundLockChangeDial ( )

References m_Sound, and SOUND_LOCK_CHANGE_DIAL.

Referenced by UpdateSound().

◆ SoundLockChangeNumber()

void SoundLockChangeNumber ( )

References m_Sound, and SOUND_LOCK_CHANGE_NUMBER.

Referenced by UpdateSound().

◆ SoundLockClose()

protected void SoundLockClose ( )

References m_Sound, and SOUND_LOCK_CLOSE.

Referenced by UpdateSound().

◆ SoundLockOpen()

protected void SoundLockOpen ( )

References m_Sound, and SOUND_LOCK_OPEN.

Referenced by UpdateSound().

◆ Synchronize()

◆ UnlockServer()

◆ UpdateSound()

◆ UpdateVisuals()

Variable Documentation

◆ m_Combination

◆ m_CombinationLocked

◆ m_DialIndex

int m_DialIndex

◆ m_IsInitialized

protected bool m_IsInitialized

Referenced by IsInitialized(), and SetInitialized().

◆ m_IsLocked

protected bool m_IsLocked

◆ m_LockActionPerformed

◆ m_LockDigits

◆ m_Sound

protected EffectSound m_Sound

◆ SOUND_LOCK_CHANGE_DIAL

const string SOUND_LOCK_CHANGE_DIAL = "combinationlock_changedial_SoundSet"

Referenced by SoundLockChangeDial().

◆ SOUND_LOCK_CHANGE_NUMBER

const string SOUND_LOCK_CHANGE_NUMBER = "combinationlock_changenumber_SoundSet"

Referenced by SoundLockChangeNumber().

◆ SOUND_LOCK_CLOSE

const string SOUND_LOCK_CLOSE = "combinationlock_close_SoundSet"

Referenced by SoundLockClose().

◆ SOUND_LOCK_OPEN

const string SOUND_LOCK_OPEN = "combinationlock_open_SoundSet"

Referenced by SoundLockOpen().