Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ConSuspend Class Reference
Inheritance diagram for ConSuspend:
BadCondition Condition BaseCondition BaseStats EClass

Public Member Functions

override int GetPhase ()
 
override void SetOwner (Chara _owner, bool onDeserialize=false)
 
override void Tick ()
 
override void OnRemoved ()
 
- Public Member Functions inherited from Condition
override BaseNotification CreateNotification ()
 
virtual void OnStacked (int p)
 
Condition SetPerfume (int duration=3)
 
override void Tick ()
 
virtual void OnCalculateFov (Fov fov, ref int radius, ref float power)
 
virtual void OnCreateFov (Fov fov)
 
override void OnValueChanged ()
 
void Kill (bool silent=false)
 
- Public Member Functions inherited from BaseCondition
virtual bool CanStack (Condition c)
 
virtual bool TryMove (Point p)
 
void SetElement (int id)
 
void SetRefVal (int a, int b)
 
virtual Color GetSpriteColor ()
 
override string ToString ()
 
override string GetText ()
 
override int GetValue ()
 
override Color GetColor (Gradient g)
 
virtual void SetOwner (Chara _owner, bool onDeserialize=false)
 
SourceElement.Row GetElementSource (int i)
 
void Start ()
 
bool TryNullify (Condition c)
 
virtual void OnBeforeStart ()
 
virtual void OnStart ()
 
virtual void OnStartOrStack ()
 
virtual void PlayEffect ()
 
virtual void PlayEndEffect ()
 
virtual void OnRefresh ()
 
void SetPhase ()
 
bool IsNullPhase ()
 
override int GetPhase ()
 
void PhaseMsg (bool inc)
 
override string GetPhaseStr ()
 
virtual void Tick ()
 
void Mod (int a, bool force=false)
 
virtual void OnValueChanged ()
 
virtual void OnChangePhase (int lastPhase, int newPhase)
 
virtual void OnRemoved ()
 
virtual int EvaluatePower (int p)
 
virtual int EvaluateTurn (int p)
 
virtual BaseNotification CreateNotification ()
 
Element GetDefenseAttribute (Chara c=null)
 
override void _WriteNote (UINote n, bool asChild=false)
 
virtual void OnWriteNote (List< string > list)
 
virtual RendererReplacer GetRendererReplacer ()
 
- Public Member Functions inherited from BaseStats
virtual Color GetColor (Gradient gradient)
 
virtual Color GetColor (SkinColorProfile c)
 
Color GetColor ()
 
virtual string GetText ()
 
virtual string GetPhaseStr ()
 
virtual int GetValue ()
 
virtual Sprite GetSprite ()
 
virtual void SetText (UIText t, SkinColorProfile cols=null)
 
virtual int GetPhase ()
 
void PopText ()
 
virtual void WriteNote (UINote n, Action< UINote > onWriteNote=null)
 
virtual void _WriteNote (UINote n, bool asChild=false)
 

Public Attributes

int uidMachine
 
int duration
 
int dateFinish
 
Thing gene
 
- Public Attributes inherited from BaseCondition
int[] _ints = new int[5]
 
int phase = -1
 
ElementContainer elements
 
Chara owner
 
- Public Attributes inherited from BaseStats
int id
 
SourceStat.Row _source
 

Properties

override bool ConsumeTurn [get]
 
bool HasGene [get]
 
- Properties inherited from Condition
virtual bool IsKilled [get]
 
virtual string TextDuration [get]
 
- Properties inherited from BaseCondition
int value [get, set]
 
int power [get, set]
 
int refVal [get, set]
 
int refVal2 [get, set]
 
bool givenByPcParty [get, set]
 
bool isPerfume [get, set]
 
override Chara Owner [get]
 
virtual string Name [get]
 
virtual bool IsToggle [get]
 
virtual bool WillOverride [get]
 
virtual bool AllowMultipleInstance [get]
 
virtual bool ConsumeTurn [get]
 
virtual bool PreventRegen [get]
 
virtual bool ShouldRefresh [get]
 
virtual bool CancelAI [get]
 
virtual bool TimeBased [get]
 
virtual bool SyncRide [get]
 
virtual bool UseElements [get]
 
virtual int GainResistFactor [get]
 
virtual int P2 [get]
 
SourceElement.Row sourceElement [get]
 
virtual bool IsElemental [get]
 
virtual string RefString1 [get]
 
virtual bool CanManualRemove [get]
 
- Properties inherited from BaseStats
SourceStat.Row source [get]
 
virtual Emo2 EmoIcon [get]
 
virtual ConditionType Type [get]
 
virtual string idSprite [get]
 
virtual bool ShowInWidget [get]
 
virtual Chara Owner [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 Condition
static T Create< T > (int power=100, Action< T > onCreate=null)
 
static Condition Create (string alias, int power=100, Action< Condition > onCreate=null)
 
- 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 Condition
static bool ignoreEffect
 
- Static Public Attributes inherited from BaseStats
static Chara CC
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 3 of file ConSuspend.cs.

Member Function Documentation

◆ GetPhase()

override int ConSuspend.GetPhase ( )
inlinevirtual

Reimplemented from BaseCondition.

Definition at line 31 of file ConSuspend.cs.

32 {
33 return 0;
34 }

◆ OnRemoved()

override void ConSuspend.OnRemoved ( )
inlinevirtual

Reimplemented from BaseCondition.

Definition at line 54 of file ConSuspend.cs.

55 {
56 owner.conSuspend = null;
57 if (HasGene)
58 {
60 }
61 }
Point pos
Definition: Card.cs:55
void PickOrDrop(Point p, string idThing, int idMat=-1, int num=1, bool msg=true)
Definition: Chara.cs:3900
Thing gene
Definition: ConSuspend.cs:15
bool HasGene
Definition: ConSuspend.cs:20

References gene, HasGene, BaseCondition.owner, Chara.PickOrDrop(), and Card.pos.

◆ SetOwner()

override void ConSuspend.SetOwner ( Chara  _owner,
bool  onDeserialize = false 
)
inlinevirtual

Reimplemented from BaseCondition.

Definition at line 36 of file ConSuspend.cs.

37 {
38 base.SetOwner(_owner);
39 owner.conSuspend = this;
40 }

◆ Tick()

override void ConSuspend.Tick ( )
inlinevirtual

Reimplemented from Condition.

Definition at line 42 of file ConSuspend.cs.

43 {
44 if (uidMachine != 0)
45 {
47 if (traitGeneMachine == null || !traitGeneMachine.owner.isOn || (duration > 0 && !HasGene))
48 {
49 Kill();
50 }
51 }
52 }
bool isOn
Definition: Card.cs:514
int duration
Definition: ConSuspend.cs:9
int uidMachine
Definition: ConSuspend.cs:6
void Kill(bool silent=false)
Definition: Condition.cs:91
Thing FindThing(Func< Thing, bool > func)
Definition: Point.cs:1104
Card owner
Definition: Trait.cs:26

References duration, Point.FindThing(), HasGene, Card.isOn, Condition.Kill(), BaseCondition.owner, Trait.owner, Card.pos, and uidMachine.

Member Data Documentation

◆ dateFinish

int ConSuspend.dateFinish

Definition at line 12 of file ConSuspend.cs.

Referenced by TraitGeneMachine.GetProgress(), and TraitGeneMachine.GetProgressText().

◆ duration

int ConSuspend.duration

Definition at line 9 of file ConSuspend.cs.

Referenced by InvOwnerGene._OnProcess(), TraitGeneMachine.GetProgress(), and Tick().

◆ gene

Thing ConSuspend.gene

Definition at line 15 of file ConSuspend.cs.

Referenced by OnRemoved().

◆ uidMachine

int ConSuspend.uidMachine

Definition at line 6 of file ConSuspend.cs.

Referenced by TraitGeneMachine.GetTarget(), Chara.Kick(), and Tick().

Property Documentation

◆ ConsumeTurn

override bool ConSuspend.ConsumeTurn
get

Definition at line 17 of file ConSuspend.cs.

◆ HasGene

bool ConSuspend.HasGene
get

Definition at line 19 of file ConSuspend.cs.

20 {
21 get
22 {
23 if (gene != null)
24 {
25 return gene.GetRootCard() == owner;
26 }
27 return false;
28 }
29 }
Card GetRootCard()
Definition: Card.cs:3173

Referenced by TraitGeneMachine.GetProgress(), OnRemoved(), and Tick().


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