DayZ
1.24
Loading...
Searching...
No Matches
OpenableBehaviour.c
Go to the documentation of this file.
1
class
OpenableBehaviour
2
{
3
protected
bool
m_IsOpened
;
4
5
void
OpenableBehaviour
(
bool
bState
=
true
)
6
{
7
m_IsOpened
=
bState
;
8
}
9
10
void
Open
()
11
{
12
SetState
(
true
);
13
}
14
15
void
Close
()
16
{
17
SetState
(
false
);
18
}
19
20
bool
IsOpened
()
21
{
22
return
GetState
();
23
}
24
25
protected
void
SetState
(
bool
bState
)
26
{
27
m_IsOpened
=
bState
;
28
}
29
30
protected
bool
GetState
()
31
{
32
return
m_IsOpened
;
33
}
34
}
OpenableBehaviour
Definition
OpenableBehaviour.c:2
OpenableBehaviour::Close
void Close()
Definition
OpenableBehaviour.c:15
OpenableBehaviour::OpenableBehaviour
void OpenableBehaviour(bool bState=true)
Definition
OpenableBehaviour.c:5
OpenableBehaviour::GetState
bool GetState()
Definition
OpenableBehaviour.c:30
OpenableBehaviour::IsOpened
bool IsOpened()
Definition
OpenableBehaviour.c:20
OpenableBehaviour::m_IsOpened
bool m_IsOpened
Definition
OpenableBehaviour.c:3
OpenableBehaviour::Open
void Open()
Definition
OpenableBehaviour.c:10
OpenableBehaviour::SetState
void SetState(bool bState)
Definition
OpenableBehaviour.c:25
Param3
Definition
EntityAI.c:95
scripts
4_World
Entities
ItemBase
OpenableBehaviour.c
Generated by
1.10.0