Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ZoneEvent Class Reference
Inheritance diagram for ZoneEvent:
EClass ZoneEventBeggerChest ZoneEventPhone ZoneEventQuest ZoneEventSiege ZoneEventDefenseGame ZoneEventHarvest ZoneEventMusic ZoneEventSubdue ZoneEventSiegeGuard

Public Member Functions

virtual string GetText ()
 
void Tick (float delta)
 
void Init ()
 
void OnSimulateHour ()
 
virtual void OnVisit ()
 
virtual void OnInit ()
 
virtual void OnFirstTick ()
 
virtual void OnTick ()
 
virtual void OnTickRound ()
 
virtual void OnKill ()
 
virtual void OnCharaDie (Chara c)
 
virtual void OnLeaveZone ()
 
void OnLoad (Zone _zone)
 
void Kill ()
 

Public Attributes

float time
 
int rounds
 
int hoursElapsed
 
int minElapsed
 
Zone zone
 
bool firstTick = true
 

Properties

SourceQuest.Row source [get]
 
virtual string id [get]
 
virtual string TextWidgetDate [get]
 
virtual float roundInterval [get]
 
virtual Playlist playlist [get]
 
virtual bool debugSkip [get]
 
virtual string RefStr2 [get]
 
virtual string RefStr3 [get]
 
virtual int hoursToKill [get]
 
virtual bool HasReport [get]
 
string Name [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rnd (int a)
 
static int curve (int a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 3 of file ZoneEvent.cs.

Member Function Documentation

◆ GetText()

virtual string ZoneEvent.GetText ( )
inlinevirtual

Definition at line 43 of file ZoneEvent.cs.

44 {
45 return Lang.ParseRaw(source.GetDetail().Split('|')[1], "", RefStr2, RefStr3);
46 }
Definition: Lang.cs:6
static string ParseRaw(string text, string val1, string val2=null, string val3=null, string val4=null, string val5=null)
Definition: Lang.cs:119
SourceQuest.Row source
Definition: ZoneEvent.cs:21
virtual string RefStr3
Definition: ZoneEvent.cs:35
virtual string RefStr2
Definition: ZoneEvent.cs:33

References Lang.ParseRaw(), RefStr2, RefStr3, and source.

◆ Init()

void ZoneEvent.Init ( )
inline

Definition at line 64 of file ZoneEvent.cs.

65 {
66 OnInit();
67 }
virtual void OnInit()
Definition: ZoneEvent.cs:82

References OnInit().

Referenced by ZoneEventManager.Add().

◆ Kill()

void ZoneEvent.Kill ( )
inline

Definition at line 115 of file ZoneEvent.cs.

116 {
117 if (zone == null)
118 {
119 zone = EClass._zone;
120 }
121 zone.events.list.Remove(this);
122 OnKill();
123 }
Definition: EClass.cs:5
static Zone _zone
Definition: EClass.cs:20
List< ZoneEvent > list
Zone zone
Definition: ZoneEvent.cs:17
virtual void OnKill()
Definition: ZoneEvent.cs:98
ZoneEventManager events
Definition: Zone.cs:40

References EClass._zone, Zone.events, ZoneEventManager.list, OnKill(), and zone.

Referenced by OnSimulateHour(), ZoneEventBeggerChest.OnTickRound(), ZoneEventPhone.OnTickRound(), ZoneEventSiege.OnTickRound(), and TraitPhone.OnUse().

◆ OnCharaDie()

virtual void ZoneEvent.OnCharaDie ( Chara  c)
inlinevirtual

Reimplemented in ZoneEventDefenseGame, and ZoneEventSubdue.

Definition at line 102 of file ZoneEvent.cs.

103 {
104 }

◆ OnFirstTick()

virtual void ZoneEvent.OnFirstTick ( )
inlinevirtual

Reimplemented in ZoneEventSiege.

Definition at line 86 of file ZoneEvent.cs.

87 {
88 }

Referenced by Tick().

◆ OnInit()

virtual void ZoneEvent.OnInit ( )
inlinevirtual

Reimplemented in ZoneEventPhone.

Definition at line 82 of file ZoneEvent.cs.

83 {
84 }

Referenced by Init().

◆ OnKill()

virtual void ZoneEvent.OnKill ( )
inlinevirtual

Reimplemented in ZoneEventPhone, and ZoneEventSiege.

Definition at line 98 of file ZoneEvent.cs.

99 {
100 }

Referenced by Kill().

◆ OnLeaveZone()

virtual void ZoneEvent.OnLeaveZone ( )
inlinevirtual

Reimplemented in ZoneEventHarvest.

Definition at line 106 of file ZoneEvent.cs.

107 {
108 }

◆ OnLoad()

void ZoneEvent.OnLoad ( Zone  _zone)
inline

Definition at line 110 of file ZoneEvent.cs.

111 {
112 zone = _zone;
113 }

References EClass._zone, and zone.

◆ OnSimulateHour()

void ZoneEvent.OnSimulateHour ( )
inline

Definition at line 69 of file ZoneEvent.cs.

70 {
73 {
74 Kill();
75 }
76 }
void Kill()
Definition: ZoneEvent.cs:115
virtual int hoursToKill
Definition: ZoneEvent.cs:37
int hoursElapsed
Definition: ZoneEvent.cs:12

References hoursElapsed, hoursToKill, and Kill().

◆ OnTick()

virtual void ZoneEvent.OnTick ( )
inlinevirtual

Definition at line 90 of file ZoneEvent.cs.

91 {
92 }

Referenced by Tick().

◆ OnTickRound()

virtual void ZoneEvent.OnTickRound ( )
inlinevirtual

Reimplemented in ZoneEventBeggerChest, ZoneEventPhone, ZoneEventQuest, and ZoneEventSiege.

Definition at line 94 of file ZoneEvent.cs.

95 {
96 }

Referenced by Tick().

◆ OnVisit()

virtual void ZoneEvent.OnVisit ( )
inlinevirtual

Reimplemented in ZoneEventDefenseGame, ZoneEventHarvest, ZoneEventMusic, and ZoneEventSubdue.

Definition at line 78 of file ZoneEvent.cs.

79 {
80 }

◆ Tick()

void ZoneEvent.Tick ( float  delta)
inline

Definition at line 48 of file ZoneEvent.cs.

49 {
50 if (firstTick)
51 {
52 firstTick = false;
54 }
55 OnTick();
56 time += delta;
57 if (time > roundInterval * (float)rounds)
58 {
59 rounds++;
61 }
62 }
float time
Definition: ZoneEvent.cs:6
virtual void OnTick()
Definition: ZoneEvent.cs:90
int rounds
Definition: ZoneEvent.cs:9
virtual void OnFirstTick()
Definition: ZoneEvent.cs:86
virtual float roundInterval
Definition: ZoneEvent.cs:27
bool firstTick
Definition: ZoneEvent.cs:19
virtual void OnTickRound()
Definition: ZoneEvent.cs:94

References firstTick, OnFirstTick(), OnTick(), OnTickRound(), roundInterval, rounds, and time.

Referenced by ZoneEventManager.Tick().

Member Data Documentation

◆ firstTick

bool ZoneEvent.firstTick = true

Definition at line 19 of file ZoneEvent.cs.

Referenced by Tick().

◆ hoursElapsed

int ZoneEvent.hoursElapsed

Definition at line 12 of file ZoneEvent.cs.

Referenced by OnSimulateHour().

◆ minElapsed

int ZoneEvent.minElapsed

Definition at line 15 of file ZoneEvent.cs.

Referenced by ZoneEventQuest.OnTickRound().

◆ rounds

int ZoneEvent.rounds

Definition at line 9 of file ZoneEvent.cs.

Referenced by ZoneEventDefenseGame._OnTickRound(), and Tick().

◆ time

float ZoneEvent.time

Definition at line 6 of file ZoneEvent.cs.

Referenced by Tick().

◆ zone

Zone ZoneEvent.zone

Definition at line 17 of file ZoneEvent.cs.

Referenced by Kill(), and OnLoad().

Property Documentation

◆ debugSkip

virtual bool ZoneEvent.debugSkip
get

Definition at line 31 of file ZoneEvent.cs.

Referenced by ZoneEventManager.Add().

◆ HasReport

virtual bool ZoneEvent.HasReport
get

Definition at line 39 of file ZoneEvent.cs.

◆ hoursToKill

virtual int ZoneEvent.hoursToKill
get

Definition at line 37 of file ZoneEvent.cs.

Referenced by OnSimulateHour().

◆ id

virtual string ZoneEvent.id
get

Definition at line 23 of file ZoneEvent.cs.

◆ Name

string ZoneEvent.Name
get

Definition at line 41 of file ZoneEvent.cs.

◆ playlist

virtual Playlist ZoneEvent.playlist
get

Definition at line 29 of file ZoneEvent.cs.

◆ RefStr2

virtual string ZoneEvent.RefStr2
get

Definition at line 33 of file ZoneEvent.cs.

Referenced by GetText().

◆ RefStr3

virtual string ZoneEvent.RefStr3
get

Definition at line 35 of file ZoneEvent.cs.

Referenced by GetText().

◆ roundInterval

virtual float ZoneEvent.roundInterval
get

Definition at line 27 of file ZoneEvent.cs.

Referenced by Tick().

◆ source

SourceQuest.Row ZoneEvent.source
get

Definition at line 21 of file ZoneEvent.cs.

Referenced by GetText().

◆ TextWidgetDate

virtual string ZoneEvent.TextWidgetDate
get

Definition at line 25 of file ZoneEvent.cs.

Referenced by WidgetDate._Refresh().


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