Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
GlobalGoalVisitAndStay Class Reference
Inheritance diagram for GlobalGoalVisitAndStay:
GlobalGoal EClass GlobalGoalExplore GlobalGoalVisitTown

Public Member Functions

override void OnAdvanceHour ()
 
virtual void OnStay ()
 
virtual void OnTravel ()
 
virtual Zone GetDestZone ()
 
- Public Member Functions inherited from GlobalGoal
void SetOwner (Chara c)
 
void Start ()
 
virtual void OnStart ()
 
void AdvanceHour ()
 
virtual void OnAdvanceHour ()
 
void Kill ()
 
void Complete ()
 
virtual void OnComplete ()
 

Public Attributes

int uidZone
 
- Public Attributes inherited from GlobalGoal
int hours
 
Chara owner
 

Properties

Zone destZone [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 4 of file GlobalGoalVisitAndStay.cs.

Member Function Documentation

◆ GetDestZone()

virtual Zone GlobalGoalVisitAndStay.GetDestZone ( )
inlinevirtual

Reimplemented in GlobalGoalExplore, and GlobalGoalVisitTown.

Definition at line 58 of file GlobalGoalVisitAndStay.cs.

59 {
60 return owner.homeZone;
61 }
Zone homeZone
Definition: Chara.cs:252
Chara owner
Definition: GlobalGoal.cs:8

References Chara.homeZone, and GlobalGoal.owner.

Referenced by OnAdvanceHour().

◆ OnAdvanceHour()

override void GlobalGoalVisitAndStay.OnAdvanceHour ( )
inlinevirtual

Reimplemented from GlobalGoal.

Definition at line 11 of file GlobalGoalVisitAndStay.cs.

12 {
14 {
15 return;
16 }
17 if (uidZone == 0)
18 {
19 if (GetDestZone() == null)
20 {
21 Kill();
22 return;
23 }
26 {
27 Debug.Log(owner.Name + " -> " + destZone.Name + " / " + this);
28 }
29 }
31 {
32 OnStay();
33 if (hours > 64 && EClass.rnd(48) == 0)
34 {
35 Complete();
36 }
37 return;
38 }
39 OnTravel();
40 if (hours > 6 && EClass.rnd(4) == 0 && destZone != EClass.game.activeZone)
41 {
43 {
44 Debug.Log(owner.Name + " reached " + destZone.Name);
45 }
47 }
48 }
string Name
Definition: Card.cs:2013
Zone currentZone
Definition: Chara.cs:240
void MoveZone(string alias)
Definition: Chara.cs:3010
bool logAdv
Definition: CoreDebug.cs:241
Definition: EClass.cs:5
static Game game
Definition: EClass.cs:8
static int rnd(int a)
Definition: EClass.cs:50
static CoreDebug debug
Definition: EClass.cs:48
Zone activeZone
Definition: Game.cs:245
void Complete()
Definition: GlobalGoal.cs:40
void Kill()
Definition: GlobalGoal.cs:35
int hours
Definition: GlobalGoal.cs:6
int uid
Definition: Spatial.cs:70
virtual string Name
Definition: Spatial.cs:495

References Game.activeZone, GlobalGoal.Complete(), Chara.currentZone, EClass.debug, Debug, destZone, EClass.game, GetDestZone(), GlobalGoal.hours, GlobalGoal.Kill(), CoreDebug.logAdv, Chara.MoveZone(), Card.Name, Spatial.Name, OnStay(), OnTravel(), GlobalGoal.owner, EClass.rnd(), Spatial.uid, and uidZone.

◆ OnStay()

virtual void GlobalGoalVisitAndStay.OnStay ( )
inlinevirtual

Definition at line 50 of file GlobalGoalVisitAndStay.cs.

51 {
52 }

Referenced by OnAdvanceHour().

◆ OnTravel()

virtual void GlobalGoalVisitAndStay.OnTravel ( )
inlinevirtual

Definition at line 54 of file GlobalGoalVisitAndStay.cs.

55 {
56 }

Referenced by OnAdvanceHour().

Member Data Documentation

◆ uidZone

int GlobalGoalVisitAndStay.uidZone

Definition at line 7 of file GlobalGoalVisitAndStay.cs.

Referenced by OnAdvanceHour().

Property Documentation

◆ destZone

Zone GlobalGoalVisitAndStay.destZone
get

Definition at line 9 of file GlobalGoalVisitAndStay.cs.

Referenced by OnAdvanceHour().


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