DayZ 1.24
Loading...
Searching...
No Matches
ItemRadio Class Reference

Private Member Functions

override bool IsTransmitter ()
 
bool CanOperate ()
 
override void OnSwitchOn ()
 
override void OnSwitchOff ()
 
override void OnWorkStop ()
 
void TuneNextStation ()
 
void TunePreviousStation ()
 
override void SetActions ()
 

Detailed Description

Definition at line 1 of file Radio.c.

Member Function Documentation

◆ CanOperate()

bool ItemRadio::CanOperate ( )
inlineprivate

Definition at line 9 of file Radio.c.

10 {
11 return GetCompEM().IsSwitchedOn();
12 }

◆ IsTransmitter()

override bool ItemRadio::IsTransmitter ( )
inlineprivate

Definition at line 3 of file Radio.c.

4 {
5 return true;
6 }

◆ OnSwitchOff()

override void ItemRadio::OnSwitchOff ( )
inlineprivate

Definition at line 21 of file Radio.c.

22 {
23 //switch device off
24 SwitchOn(false);
25 }

◆ OnSwitchOn()

override void ItemRadio::OnSwitchOn ( )
inlineprivate

Definition at line 15 of file Radio.c.

16 {
17 //switch device on
18 SwitchOn(true);
19 }

◆ OnWorkStop()

override void ItemRadio::OnWorkStop ( )
inlineprivate

Definition at line 27 of file Radio.c.

28 {
29 //turn off device
30 GetCompEM().SwitchOff();
31 }

◆ SetActions()

override void ItemRadio::SetActions ( )
inlineprivate

Definition at line 46 of file Radio.c.

47 {
48 super.SetActions();
49
53 }
ActionTuneRadioStationCB ActionContinuousBaseCB ActionTuneRadioStation()
ActionTurnOffTransmitterCB ActionSingleUseBaseCB ActionTurnOffTransmitter()
ActionTurnOnTransmitterCB ActionSingleUseBaseCB ActionTurnOnTransmitter()
void AddAction(typename actionName)

References ActionTuneRadioStation(), ActionTurnOffTransmitter(), ActionTurnOnTransmitter(), and AddAction().

◆ TuneNextStation()

void ItemRadio::TuneNextStation ( )
inlineprivate

Definition at line 34 of file Radio.c.

35 {
36 //tune next station
37 TuneNext();
38 }
class ItemBarrel extends InventoryItemSuper TuneNext

References TuneNext.

◆ TunePreviousStation()

void ItemRadio::TunePreviousStation ( )
inlineprivate

Definition at line 40 of file Radio.c.

41 {
42 //tune previous station
43 TunePrev();
44 }
proto native void TunePrev()

References TunePrev().


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