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

Public Member Functions

int CountMemebers ()
 
int CountMemebersInZone ()
 
float GetHappiness ()
 
void Add (Faction f)
 
void Remove (Faction f)
 

Public Attributes

List< Factionlist = new List<Faction>()
 

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
 
- 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]
 

Detailed Description

Definition at line 4 of file FactionGroup.cs.

Member Function Documentation

◆ Add()

void FactionGroup.Add ( Faction  f)
inline

Definition at line 29 of file FactionGroup.cs.

30 {
31 list.Add(f);
32 }
List< Faction > list
Definition: FactionGroup.cs:7

References list.

◆ CountMemebers()

int FactionGroup.CountMemebers ( )
inline

Definition at line 9 of file FactionGroup.cs.

10 {
11 return 0;
12 }

◆ CountMemebersInZone()

int FactionGroup.CountMemebersInZone ( )
inline

Definition at line 14 of file FactionGroup.cs.

15 {
16 return 0;
17 }

◆ GetHappiness()

float FactionGroup.GetHappiness ( )
inline

Definition at line 19 of file FactionGroup.cs.

20 {
21 float num = 0f;
22 foreach (Faction item in list)
23 {
24 num += item.GetHappiness();
25 }
26 return num / (float)list.Count;
27 }

References item, and list.

◆ Remove()

void FactionGroup.Remove ( Faction  f)
inline

Definition at line 34 of file FactionGroup.cs.

35 {
36 list.Remove(f);
37 }

References list.

Member Data Documentation

◆ list

List<Faction> FactionGroup.list = new List<Faction>()

Definition at line 7 of file FactionGroup.cs.

Referenced by Add(), GetHappiness(), and Remove().


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