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

Public Member Functions

 HappinessSummary (FactionBranch b)
 
string GetText ()
 

Public Attributes

int happiness
 
int hunger
 
int fatigue
 
int depression
 
int bladder
 
int hygine
 

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 3 of file HappinessSummary.cs.

Constructor & Destructor Documentation

◆ HappinessSummary()

HappinessSummary.HappinessSummary ( FactionBranch  b)
inline

Definition at line 17 of file HappinessSummary.cs.

18 {
19 List<Chara> members = b.members;
20 foreach (Chara item in members)
21 {
22 happiness += item.happiness;
23 hunger += item.hunger.value;
24 fatigue += item.stamina.value;
25 depression += item.depression.value;
26 bladder += item.bladder.value;
27 hygine += item.hygiene.value;
28 }
29 int count = members.Count;
30 happiness /= count;
31 hunger /= count;
32 fatigue /= count;
33 depression /= count;
34 bladder /= count;
35 hygine /= count;
36 }
Definition: Chara.cs:10
List< Chara > members

References bladder, depression, fatigue, happiness, hunger, hygine, item, and FactionBranch.members.

Member Function Documentation

◆ GetText()

string HappinessSummary.GetText ( )
inline

Definition at line 38 of file HappinessSummary.cs.

39 {
40 string text = "";
41 text = text + "happiness".lang() + ": " + happiness + "\n";
42 text = text + EClass.pc.hunger.name + ": " + hunger + "\n";
43 text = text + EClass.pc.stamina.name + ": " + fatigue + "\n";
44 text = text + EClass.pc.depression.name + ": " + depression + "\n";
45 text = text + EClass.pc.bladder.name + ": " + bladder + "\n";
46 return text + EClass.pc.hygiene.name + ": " + hygine;
47 }

References bladder, depression, fatigue, happiness, hunger, and hygine.

Member Data Documentation

◆ bladder

int HappinessSummary.bladder

Definition at line 13 of file HappinessSummary.cs.

Referenced by GetText(), and HappinessSummary().

◆ depression

int HappinessSummary.depression

Definition at line 11 of file HappinessSummary.cs.

Referenced by GetText(), and HappinessSummary().

◆ fatigue

int HappinessSummary.fatigue

Definition at line 9 of file HappinessSummary.cs.

Referenced by GetText(), and HappinessSummary().

◆ happiness

int HappinessSummary.happiness

Definition at line 5 of file HappinessSummary.cs.

Referenced by GetText(), and HappinessSummary().

◆ hunger

int HappinessSummary.hunger

Definition at line 7 of file HappinessSummary.cs.

Referenced by GetText(), and HappinessSummary().

◆ hygine

int HappinessSummary.hygine

Definition at line 15 of file HappinessSummary.cs.

Referenced by GetText(), and HappinessSummary().


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