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

Public Member Functions

override bool Perform ()
 
- Public Member Functions inherited from Act
virtual CursorInfo GetCursorIcon (Card c)
 
virtual MultiSprite GetStateIcon ()
 
override Sprite GetSprite ()
 
virtual bool ShowMouseHint (Card c)
 
virtual bool IsValidTC (Card c)
 
virtual string GetHintText (string str="")
 
virtual string GetText (string str="")
 
virtual string GetTextSmall (Card c)
 
bool IsTargetHostileParty ()
 
virtual Color GetActPlanColor ()
 
virtual bool Perform ()
 
virtual bool CanPerform ()
 
bool Perform (Chara _cc, Card _tc=null, Point _tp=null)
 
bool CanPerform (Chara _cc, Card _tc=null, Point _tp=null)
 
virtual bool IsToolValid ()
 
new void SetImage (Image image)
 
virtual void OnMarkMapHighlights ()
 
virtual bool ShouldMapHighlight (Point p)
 
- Public Member Functions inherited from Element
virtual SourceElement.Row GetSource ()
 
virtual int GetSourcePotential (int v)
 
virtual Sprite GetSprite ()
 
int GetMaterialSourceValue (Thing t, int v)
 
virtual int GetSourceValue (int v, int lv, SourceValueType type)
 
virtual Sprite GetIcon (string suffix="")
 
bool IsActive (Card c)
 
int SortVal (bool charaSheet=false)
 
virtual bool CanLink (ElementContainer owner)
 
bool HasTag (string tag)
 
void SetImage (Image i)
 
virtual string GetDetail ()
 
bool IsFactionElement (Chara c)
 
Element GetParent (Card c)
 
void WriteNote (UINote n, ElementContainer owner=null, Action< UINote > onWriteNote=null)
 
void WriteNoteWithRef (UINote n, ElementContainer owner, Action< UINote > onWriteNote, Element refEle)
 
void _WriteNote (UINote n, Chara c, Act act)
 
void AddHeaderAbility (UINote n)
 
void _WriteNote (UINote n, ElementContainer owner, Action< UINote > onWriteNote, bool isRef, bool addHeader=true)
 
virtual void OnWriteNote (UINote n, ElementContainer owner)
 
virtual void OnChangeValue ()
 
void CheckLevelBonus (ElementContainer owner, UINote n=null)
 
int GetSortVal (UIList.SortMode m)
 
virtual Act.Cost GetCost (Chara c)
 
virtual int GetPower (Card c)
 
virtual void SetTextValue (UIText text)
 
virtual bool IsPurchaseFeatReqMet (ElementContainer owner, int lv=-1)
 
virtual void WritePurchaseReq (UINote n, int lv=1)
 

Static Public Member Functions

static bool SearchMedal (Chara c, Point p)
 
static void Search (Chara c, bool manual=false)
 
- Static Public Member Functions inherited from Act
static void SetReference (Chara _cc, Card _tc=null, Point _tp=null)
 
static void SetTool (Thing t)
 
- Static Public Member Functions inherited from Element
static string GetName (string alias)
 
static SourceElement.Row Get (int id)
 
static Dictionary< int, int > GetElementMap (int[] list)
 
static Dictionary< int, int > GetElementMap (int[] list, Dictionary< int, int > map)
 
static SourceElement.Row GetRandomElement (int lv=1)
 
static Element Create (int id, int v=0)
 
static Element Create (string id, int v=1)
 
static int GetId (string alias)
 
static int GetResistLv (int v)
 
static int GetResistDamage (int dmg, int v, int power=0)
 
- 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)
 

Properties

override bool CanPressRepeat [get]
 
override CursorInfo CursorIcon [get]
 
- Properties inherited from Act
override bool ShowPotential [get]
 
override bool UsePotential [get]
 
override bool ShowRelativeAttribute [get]
 
virtual CursorInfo CursorIcon [get]
 
virtual string ID [get]
 
virtual bool IsAct [get]
 
virtual bool WillEndTurn [get]
 
virtual bool CloseLayers [get]
 
virtual int LeftHand [get]
 
virtual int RightHand [get]
 
virtual int ElementPowerMod [get]
 
virtual bool ShowMapHighlight [get]
 
virtual bool ShowMapHighlightBlock [get]
 
virtual bool PickHeldOnStart [get]
 
virtual bool DropHeldOnStart [get]
 
virtual bool CanPressRepeat [get]
 
virtual bool CanAutofire [get]
 
virtual bool ResetAxis [get]
 
virtual bool RequireTool [get]
 
virtual bool IsHostileAct [get]
 
virtual bool HideRightInfo [get]
 
virtual bool HaveLongPressAction [get]
 
virtual float Radius [get]
 
virtual int PerformDistance [get]
 
virtual int MaxRadius [get]
 
virtual TargetType TargetType [get]
 
virtual bool LocalAct [get]
 
virtual bool CanRapidFire [get]
 
virtual float RapidDelay [get]
 
virtual bool ShowAuto [get]
 
virtual bool IsCrime [get]
 
- Properties inherited from Element
SourceElement.Row source [get]
 
virtual int DisplayValue [get]
 
virtual int MinValue [get]
 
int Value [get]
 
int ValueWithoutLink [get]
 
virtual int MinPotential [get]
 
int Potential [get]
 
virtual bool CanGainExp [get]
 
bool IsFlag [get]
 
virtual string Name [get]
 
virtual string FullName [get]
 
virtual int ExpToNext [get]
 
virtual bool UseExpMod [get]
 
virtual int CostTrain [get]
 
virtual int CostLearn [get]
 
virtual bool ShowXP [get]
 
virtual bool ShowMsgOnValueChanged [get]
 
virtual bool ShowValue [get]
 
virtual bool ShowPotential [get]
 
virtual bool UsePotential [get]
 
virtual bool PotentialAsStock [get]
 
virtual bool ShowRelativeAttribute [get]
 
virtual bool ShowBonuses [get]
 
virtual string ShortName [get]
 
bool IsGlobalElement [get]
 
bool IsFactionWideElement [get]
 
bool IsPartyWideElement [get]
 
virtual bool ShowEncNumber [get]
 
bool IsTrait [get]
 
bool IsFoodTrait [get]
 
bool IsFoodTraitMain [get]
 
bool IsMainAttribute [get]
 
Act act [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

- Public Types inherited from Act
enum  CostType { None , MP , SP }
 
- Public Attributes inherited from Element
SourceElement.Row _source
 
int id
 
int vBase
 
int vExp
 
int vPotential
 
int vTempPotential
 
int vLink
 
int vSource
 
int vSourcePotential
 
ElementContainer owner
 
- Static Public Attributes inherited from Act
static Chara CC
 
static Card TC
 
static Point TP = new Point()
 
static Thing TOOL
 
static int powerMod = 100
 
static bool forcePt
 
- Static Public Attributes inherited from Element
const int Div = 5
 
static Element Void = new Element()
 
static int[] List_MainAttributes = new int[9] { 70, 72, 71, 77, 74, 75, 76, 73, 79 }
 
static int[] List_MainAttributesMajor = new int[8] { 70, 72, 71, 77, 74, 75, 76, 73 }
 
static int[] List_Body = new int[4] { 70, 72, 71, 77 }
 
static int[] List_Mind = new int[4] { 74, 75, 76, 73 }
 
static List< SourceElement.RowListElements = new List<SourceElement.Row>()
 
static List< SourceElement.RowListAttackElements = new List<SourceElement.Row>()
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 1 of file ActWait.cs.

Member Function Documentation

◆ Perform()

override bool ActWait.Perform ( )
inlinevirtual

Reimplemented from Act.

Definition at line 7 of file ActWait.cs.

8 {
9 if (!Act.CC.IsPCParty)
10 {
11 return true;
12 }
13 if (Act.CC.IsPC)
14 {
15 Search(Act.CC, manual: true);
16 }
17 return true;
18 }
Definition: ACT.cs:62
static Chara CC
Definition: ACT.cs:77
override bool IsPC
Definition: Chara.cs:597
override bool IsPCParty
Definition: Chara.cs:600

References Act.CC, Chara.IsPC, Chara.IsPCParty, and Search.

Referenced by AM_Adv._OnUpdateInput().

◆ Search()

static void ActWait.Search ( Chara  c,
bool  manual = false 
)
inlinestatic

Definition at line 43 of file ActWait.cs.

44 {
45 if (c.isBlind)
46 {
47 return;
48 }
49 int num = 2 + c.Evalue(402);
50 EClass._map.ForeachSphere(c.pos.x, c.pos.z, num, delegate(Point p)
51 {
52 if (p.detail == null || !c.CanSeeSimple(p))
53 {
54 return;
55 }
56 foreach (Thing thing in p.detail.things)
57 {
58 if (thing.isHidden)
59 {
60 int num2 = EClass.pc.Dist(p);
61 if (thing.id == "medal")
62 {
63 if (!manual || EClass._zone.IsUserZone)
64 {
65 continue;
66 }
67 if (num2 != 0)
68 {
69 Msg.Say("spotMedalNear");
70 continue;
71 }
72 }
73 else
74 {
75 if (EClass.rnd(c.Evalue(210) * 15 + 20 + c.PER) * ((!manual) ? 1 : 2) <= EClass.rnd(EClass._zone.DangerLv * 8 + 60))
76 {
77 continue;
78 }
79 c.ModExp(210, EClass._zone.DangerLv * 3 / 2 + 100);
80 }
81 bool flag = thing.trait is TraitTrap;
82 thing.SetHidden(hide: false);
83 if (thing.id == "medal")
84 {
85 c.PlaySound("medal");
86 Msg.Say("spotMedal", c, thing);
87 }
88 else
89 {
90 if (flag)
91 {
92 c.PlaySound("spot_trap");
93 if (EClass.core.config.game.haltOnSpotTrap)
94 {
95 EClass.player.haltMove = true;
96 }
97 }
98 else
99 {
100 c.PlaySound("spot");
101 }
102 Msg.Say("spotHidden", c, thing);
103 }
104 }
105 }
106 });
107 }
Point pos
Definition: Card.cs:55
int Evalue(int ele)
Definition: Card.cs:2431
List< Thing > things
Definition: CellDetail.cs:11
bool isBlind
Definition: Chara.cs:125
bool CanSeeSimple(Point p)
Definition: Chara.cs:1010
Definition: EClass.cs:5
static Map _map
Definition: EClass.cs:18
void ForeachSphere(int _x, int _z, float r, Action< Point > action)
Definition: Map.cs:2358
Definition: Point.cs:9
CellDetail detail
Definition: Point.cs:71
int x
Definition: Point.cs:36
int z
Definition: Point.cs:39
Definition: Thing.cs:8

References EClass._map, Chara.CanSeeSimple(), Point.detail, Card.Evalue(), Map.ForeachSphere(), Chara.isBlind, Card.pos, CellDetail.things, Point.x, and Point.z.

Referenced by Chara._Move().

◆ SearchMedal()

static bool ActWait.SearchMedal ( Chara  c,
Point  p 
)
inlinestatic

Definition at line 20 of file ActWait.cs.

21 {
22 if (c.isBlind)
23 {
24 return false;
25 }
26 if (p.detail == null || !c.CanSeeSimple(p))
27 {
28 return false;
29 }
30 foreach (Thing thing in p.detail.things)
31 {
32 if (thing.isHidden && thing.id == "medal" && !EClass._zone.IsUserZone)
33 {
34 thing.SetHidden(hide: false);
35 c.PlaySound("medal");
36 Msg.Say("spotMedal", c, thing);
37 return true;
38 }
39 }
40 return false;
41 }
string id
Definition: Card.cs:31
void SetHidden(bool hide=true)
Definition: Card.cs:5111
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5404
bool isHidden
Definition: Card.cs:502
static Zone _zone
Definition: EClass.cs:20
Definition: Msg.cs:5
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
Definition: Msg.cs:58
virtual bool IsUserZone
Definition: Zone.cs:264

References EClass._zone, Chara.CanSeeSimple(), Point.detail, Card.id, Chara.isBlind, Card.isHidden, Zone.IsUserZone, Msg.Say(), Card.SetHidden(), and Card.things.

Referenced by ActPlan.GetAction().

Property Documentation

◆ CanPressRepeat

override bool ActWait.CanPressRepeat
get

Definition at line 3 of file ActWait.cs.

◆ CursorIcon

override CursorInfo ActWait.CursorIcon
get

Definition at line 5 of file ActWait.cs.


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