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

Public Member Functions

void Set (string n)
 
void Set (Card c=null, bool forceThirdPerson=false)
 

Public Attributes

string he
 
string his
 
string him
 
string himself
 
string your
 
bool active
 
bool thirdperson
 

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 1 of file ThirstPersonInfo.cs.

Member Function Documentation

◆ Set() [1/2]

void ThirstPersonInfo.Set ( Card  c = null,
bool  forceThirdPerson = false 
)
inline

Definition at line 31 of file ThirstPersonInfo.cs.

32 {
33 if (c == null)
34 {
35 active = false;
36 return;
37 }
38 active = true;
39 if (c.IsPC && !forceThirdPerson)
40 {
41 he = "you".lang();
42 his = "your".lang();
43 him = "you".lang();
44 himself = "yourself".lang();
45 your = his;
46 thirdperson = false;
47 }
48 else if (forceThirdPerson || Msg.alwaysVisible || (!EClass.pc.isBlind && EClass.pc.CanSee(c)))
49 {
50 he = ((!c.isChara) ? "it".lang() : (c.IsMale ? "he".lang() : "she".lang()));
51 his = ((!c.isChara) ? "its".lang() : (c.IsMale ? "his".lang() : "hers".lang()));
52 him = ((!c.isChara) ? "it".lang() : (c.IsMale ? "him".lang() : "her".lang()));
53 himself = ((!c.isChara) ? "itself".lang() : (c.IsMale ? "himself".lang() : "herself".lang()));
54 your = "ones".lang(c.Name);
55 thirdperson = true;
56 }
57 else
58 {
59 he = "it".lang();
60 his = "its".lang();
61 him = "it".lang();
62 himself = "itself".lang();
63 your = (c.isChara ? "someones" : "somethings").lang();
64 thirdperson = true;
65 }
66 }
string Name
Definition: Card.cs:2013
virtual bool IsPC
Definition: Card.cs:2019
virtual bool isChara
Definition: Card.cs:1959
bool CanSee(Card c)
Definition: Chara.cs:1027
bool isBlind
Definition: Chara.cs:125
Definition: EClass.cs:5
static Chara pc
Definition: EClass.cs:14
Definition: Msg.cs:5
static bool alwaysVisible
Definition: Msg.cs:12

References active, Msg.alwaysVisible, Chara.CanSee(), he, him, himself, his, Chara.isBlind, EClass.pc, thirdperson, and your.

◆ Set() [2/2]

void ThirstPersonInfo.Set ( string  n)
inline

Definition at line 17 of file ThirstPersonInfo.cs.

18 {
19 active = int.TryParse(n, out var _);
20 if (active)
21 {
22 he = "it".lang();
23 his = "its".lang();
24 him = "it".lang();
25 himself = "itself".lang();
26 your = "somethings".lang();
27 thirdperson = true;
28 }
29 }

References active, he, him, himself, his, thirdperson, and your.

Referenced by Chara.Die(), Msg.GetRawText(), Msg.Say(), and ActEffect.Wish().

Member Data Documentation

◆ active

bool ThirstPersonInfo.active

Definition at line 13 of file ThirstPersonInfo.cs.

Referenced by GameLang.Parse(), and Set().

◆ he

string ThirstPersonInfo.he

Definition at line 3 of file ThirstPersonInfo.cs.

Referenced by GameLang.Parse(), and Set().

◆ him

string ThirstPersonInfo.him

Definition at line 7 of file ThirstPersonInfo.cs.

Referenced by GameLang.Parse(), and Set().

◆ himself

string ThirstPersonInfo.himself

Definition at line 9 of file ThirstPersonInfo.cs.

Referenced by GameLang.Parse(), and Set().

◆ his

string ThirstPersonInfo.his

Definition at line 5 of file ThirstPersonInfo.cs.

Referenced by GameLang.Parse(), and Set().

◆ thirdperson

bool ThirstPersonInfo.thirdperson

Definition at line 15 of file ThirstPersonInfo.cs.

Referenced by GameLang.Parse(), and Set().

◆ your

string ThirstPersonInfo.your

Definition at line 11 of file ThirstPersonInfo.cs.

Referenced by GameLang.Parse(), and Set().


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