Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
NotificationBattle Class Reference
Inheritance diagram for NotificationBattle:
NotificationGlobal BaseNotification EClass

Public Member Functions

override void OnRefresh ()
 
override void OnClick ()
 
- Public Member Functions inherited from BaseNotification
virtual ItemNotice GetMold ()
 
virtual LayoutGroup GetLayoutGroup ()
 
void Refresh ()
 
virtual void OnClick ()
 
virtual void OnRefresh ()
 
virtual bool ShouldRemove ()
 
virtual void OnInstantiate ()
 

Public Attributes

int index
 
- Public Attributes inherited from BaseNotification
ItemNotice item
 
string text
 
string lastText
 

Properties

override bool Visible [get]
 
override Action< UITooltiponShowTooltip [get]
 
- Properties inherited from NotificationGlobal
virtual WidgetNotice widget [get]
 
- Properties inherited from BaseNotification
virtual Sprite Sprite [get]
 
virtual int idSprite [get]
 
virtual bool Visible [get]
 
virtual bool Interactable [get]
 
virtual Action< UITooltiponShowTooltip [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 NotificationBattle.cs.

Member Function Documentation

◆ OnClick()

override void NotificationBattle.OnClick ( )
inlinevirtual

Reimplemented from BaseNotification.

Definition at line 20 of file NotificationBattle.cs.

21 {
22 if (EClass.AdvMode)
23 {
24 return;
25 }
26 List<Chara> list = new List<Chara>();
27 foreach (Chara chara in EClass._map.charas)
28 {
29 if (chara.IsHomeMember() && chara.enemy != null && chara.IsAliveInCurrentZone)
30 {
31 list.Add(chara);
32 }
33 }
34 index++;
35 if (index >= list.Count)
36 {
37 index = 0;
38 }
39 EClass.screen.Focus(list[index]);
40 }
void Focus(Int3 ints)
Definition: Chara.cs:10
override bool IsAliveInCurrentZone
Definition: Chara.cs:546
bool IsHomeMember()
Definition: Chara.cs:5942
Chara enemy
Definition: Chara.cs:83
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
static bool AdvMode
Definition: EClass.cs:10
static BaseGameScreen screen
Definition: EClass.cs:32
List< Chara > charas
Definition: Map.cs:81

References EClass._map, EClass.AdvMode, Map.charas, Chara.enemy, BaseGameScreen.Focus(), index, Chara.IsAliveInCurrentZone, Chara.IsHomeMember(), and EClass.screen.

◆ OnRefresh()

override void NotificationBattle.OnRefresh ( )
inlinevirtual

Reimplemented from BaseNotification.

Definition at line 15 of file NotificationBattle.cs.

16 {
17 text = widget.battles.ToString() ?? "";
18 }
virtual WidgetNotice widget

References WidgetNotice.battles, BaseNotification.text, and NotificationGlobal.widget.

Member Data Documentation

◆ index

int NotificationBattle.index

Definition at line 6 of file NotificationBattle.cs.

Referenced by OnClick().

Property Documentation

◆ onShowTooltip

override Action<UITooltip> NotificationBattle.onShowTooltip
get

Definition at line 10 of file NotificationBattle.cs.

◆ Visible

override bool NotificationBattle.Visible
get

Definition at line 8 of file NotificationBattle.cs.


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