DayZ 1.24
Loading...
Searching...
No Matches
OpenableBehaviour Class Reference
Collaboration diagram for OpenableBehaviour:
[legend]

Protected Member Functions

void OpenableBehaviour (bool bState=true)
 
void Open ()
 
void Close ()
 
bool IsOpened ()
 
void SetState (bool bState)
 
bool GetState ()
 

Protected Attributes

bool m_IsOpened
 

Detailed Description

Definition at line 1 of file OpenableBehaviour.c.

Constructor & Destructor Documentation

◆ OpenableBehaviour()

void OpenableBehaviour::OpenableBehaviour ( bool bState = true)
inlineprotected

initial value

Definition at line 5 of file OpenableBehaviour.c.

References m_IsOpened.

Member Function Documentation

◆ Close()

void OpenableBehaviour::Close ( )
inlineprotected

Definition at line 15 of file OpenableBehaviour.c.

16 {
17 SetState(false);
18 }
void SetState(bool bState)

References SetState().

◆ GetState()

bool OpenableBehaviour::GetState ( )
inlineprotected

Definition at line 30 of file OpenableBehaviour.c.

31 {
32 return m_IsOpened;
33 }

References m_IsOpened.

Referenced by IsOpened().

◆ IsOpened()

bool OpenableBehaviour::IsOpened ( )
inlineprotected

Definition at line 20 of file OpenableBehaviour.c.

21 {
22 return GetState();
23 }

References GetState().

◆ Open()

void OpenableBehaviour::Open ( )
inlineprotected

Definition at line 10 of file OpenableBehaviour.c.

11 {
12 SetState(true);
13 }

References SetState().

◆ SetState()

void OpenableBehaviour::SetState ( bool bState)
inlineprotected

Definition at line 25 of file OpenableBehaviour.c.

26 {
28 }

References m_IsOpened.

Referenced by Close(), and Open().

Member Data Documentation

◆ m_IsOpened

bool OpenableBehaviour::m_IsOpened
protected

Definition at line 3 of file OpenableBehaviour.c.

Referenced by GetState(), OpenableBehaviour(), and SetState().


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