Elin Modding Docs Doc
Loading...
Searching...
No Matches
AIAct Class Reference
Inheritance diagram for AIAct:
Act Element EClass AIProgress AIWork AI_AttackHome AI_Bladder AI_Clean AI_Cook AI_Dance AI_Deconstruct AI_Drink AI_Eat AI_Equip AI_Fish AI_Fuck AI_Goto AI_GotoHearth AI_Grab< T > AI_Haul AI_Idle AI_LeaveMap AI_Massage AI_Offer AI_OpenGambleChest AI_Paint AI_PassTime AI_PlayMusic AI_PracticeDummy AI_Pray AI_Read AI_ReleaseHeld AI_Shopping AI_TargetCard AI_Torture AI_Trolley AI_UseCrafter AI_Wait DynamicAIAct Goal Task

Public Types

enum  Status { Running , Fail , Success }
 
- Public Types inherited from Act
enum  CostType { None , MP , SP }
 

Public Member Functions

override string ToString ()
 
override MultiSprite GetStateIcon ()
 
virtual Point GetDestination ()
 
AIProgress GetProgress ()
 
string GetCurrentActionText ()
 
override bool IsToolValid ()
 
virtual void OnStart ()
 
void SetOwner (Chara c)
 
virtual void OnSetOwner ()
 
void SetChild (AIAct seq, Func< AIAct.Status > _onChildFail=null)
 
void Start ()
 
override bool Perform ()
 
AIAct.Status Restart ()
 
AIAct.Status Success (Action action=null)
 
virtual void OnSuccess ()
 
bool TryCancel (Card c)
 
virtual AIAct.Status Cancel ()
 
virtual void OnCancel ()
 
virtual void OnCancelOrSuccess ()
 
virtual bool CanManualCancel ()
 
AIAct.Status KeepRunning ()
 
void Reset ()
 
virtual void OnReset ()
 
AIAct.Status Tick ()
 
virtual IEnumerable< AIAct.Status > Run ()
 
AIAct.Status TickChild ()
 
AIAct.Status Do (AIAct _seq, Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGotoInteraction (Point pos, Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGoto (Point pos, int dist=0, bool ignoreConnection=false, Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGoto (Card card, Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGoto (Card card, int dist, Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGotoSpot (Card card, Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGoto< T > (Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGotoSpot< T > (Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGrab (Card card, int num=-1, bool pickHeld=false, Func< AIAct.Status > _onChildFail=null)
 
AIAct.Status DoGrab< T > ()
 
AIAct.Status DoProgress ()
 
AIAct.Status DoIdle (int repeat=3)
 
AIAct.Status DoWait (int count=1)
 
virtual AIProgress CreateProgress ()
 
virtual void OnCreateProgress (Progress_Custom p)
 
virtual bool CanProgress ()
 
virtual void OnBeforeProgress ()
 
virtual void OnProgress ()
 
virtual void OnProgressComplete ()
 
void SimulateZone (int days)
 
virtual void OnSimulateZone (int days)
 
virtual void OnSimulatePosition ()
 
- Public Member Functions inherited from Act
virtual CursorInfo GetCursorIcon (Card c)
 
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)
 
virtual Color GetActPlanColor ()
 
virtual bool CanPerform ()
 
bool Perform (Chara _cc, Card _tc=null, Point _tp=null)
 
bool CanPerform (Chara _cc, Card _tc=null, Point _tp=null)
 
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)
 
int GetMaterialSourceValue (Thing t, int v)
 
virtual int GetSourceValue (int v, int lv, SourceValueType type)
 
virtual Sprite GetIcon (string suffix="")
 
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 _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)
 

Public Attributes

new Chara owner
 
AIAct.Status status
 
IEnumerator< AIAct.Status > Enumerator
 
AIAct child
 
AIAct parent
 
byte restartCount
 
Func< AIAct.Status > onChildFail
 
Func< bool > isFail
 
- 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
 

Properties

virtual bool IsRunning [get]
 
bool IsChildRunning [get]
 
bool IsMoveAI [get]
 
virtual int MaxRestart [get]
 
virtual new string Name [get]
 
virtual MultiSprite stateIcon [get]
 
virtual Sprite actionIcon [get]
 
virtual bool IsNoGoal [get]
 
virtual bool IsAutoTurn [get]
 
virtual bool IsIdle [get]
 
virtual bool PushChara [get]
 
virtual int MaxProgress [get]
 
virtual bool ShowProgress [get]
 
virtual bool UseTurbo [get]
 
virtual int CurrentProgress [get]
 
virtual bool ShowCursor [get]
 
virtual bool CancelWhenDamaged [get]
 
virtual bool CancelWhenMoved [get]
 
virtual bool InformCancel [get]
 
virtual Thing RenderThing [get]
 
AIAct Current [get]
 
override bool IsAct [get]
 
override bool ShowPotential [get]
 
override bool UsePotential [get]
 
override bool ShowRelativeAttribute [get]
 
virtual bool HasProgress [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 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

- 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)
 
- 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 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
 
static int[] List_MainAttributesMajor
 
static int[] List_Body
 
static int[] List_Mind
 
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
 
- Static Package Functions inherited from Element

Detailed Description

Definition at line 6 of file AIAct.cs.

Member Enumeration Documentation

◆ Status

enum AIAct.Status

Definition at line 837 of file AIAct.cs.

Member Function Documentation

◆ Cancel()

virtual AIAct.Status AIAct.Cancel ( )
virtual

Definition at line 444 of file AIAct.cs.

◆ CanManualCancel()

virtual bool AIAct.CanManualCancel ( )
virtual

Definition at line 468 of file AIAct.cs.

◆ CanProgress()

virtual bool AIAct.CanProgress ( )
virtual

Definition at line 772 of file AIAct.cs.

◆ CreateProgress()

virtual AIProgress AIAct.CreateProgress ( )
virtual

Definition at line 750 of file AIAct.cs.

◆ Do()

AIAct.Status AIAct.Do ( AIAct _seq,
Func< AIAct.Status > _onChildFail = null )

Definition at line 581 of file AIAct.cs.

◆ DoGoto() [1/3]

AIAct.Status AIAct.DoGoto ( Card card,
Func< AIAct.Status > _onChildFail = null )

Definition at line 618 of file AIAct.cs.

◆ DoGoto() [2/3]

AIAct.Status AIAct.DoGoto ( Card card,
int dist,
Func< AIAct.Status > _onChildFail = null )

Definition at line 624 of file AIAct.cs.

◆ DoGoto() [3/3]

AIAct.Status AIAct.DoGoto ( Point pos,
int dist = 0,
bool ignoreConnection = false,
Func< AIAct.Status > _onChildFail = null )

Definition at line 603 of file AIAct.cs.

◆ DoGoto< T >()

AIAct.Status AIAct.DoGoto< T > ( Func< AIAct.Status > _onChildFail = null)
Type Constraints
T :Trait 

Definition at line 664 of file AIAct.cs.

◆ DoGotoInteraction()

AIAct.Status AIAct.DoGotoInteraction ( Point pos,
Func< AIAct.Status > _onChildFail = null )

Definition at line 588 of file AIAct.cs.

◆ DoGotoSpot()

AIAct.Status AIAct.DoGotoSpot ( Card card,
Func< AIAct.Status > _onChildFail = null )

Definition at line 643 of file AIAct.cs.

◆ DoGotoSpot< T >()

AIAct.Status AIAct.DoGotoSpot< T > ( Func< AIAct.Status > _onChildFail = null)
Type Constraints
T :Trait 

Definition at line 671 of file AIAct.cs.

◆ DoGrab()

AIAct.Status AIAct.DoGrab ( Card card,
int num = -1,
bool pickHeld = false,
Func< AIAct.Status > _onChildFail = null )

Definition at line 686 of file AIAct.cs.

◆ DoGrab< T >()

AIAct.Status AIAct.DoGrab< T > ( )
Type Constraints
T :Trait 

Definition at line 706 of file AIAct.cs.

◆ DoIdle()

AIAct.Status AIAct.DoIdle ( int repeat = 3)

Definition at line 720 of file AIAct.cs.

◆ DoProgress()

AIAct.Status AIAct.DoProgress ( )

Definition at line 713 of file AIAct.cs.

◆ DoWait()

AIAct.Status AIAct.DoWait ( int count = 1)

Definition at line 730 of file AIAct.cs.

◆ GetCurrentActionText()

string AIAct.GetCurrentActionText ( )

Definition at line 299 of file AIAct.cs.

◆ GetDestination()

virtual Point AIAct.GetDestination ( )
virtual

Definition at line 279 of file AIAct.cs.

◆ GetProgress()

AIProgress AIAct.GetProgress ( )

Definition at line 289 of file AIAct.cs.

◆ GetStateIcon()

override MultiSprite AIAct.GetStateIcon ( )
virtual

Reimplemented from Act.

Definition at line 233 of file AIAct.cs.

◆ IsToolValid()

override bool AIAct.IsToolValid ( )
virtual

Reimplemented from Act.

Definition at line 309 of file AIAct.cs.

◆ KeepRunning()

AIAct.Status AIAct.KeepRunning ( )

Definition at line 474 of file AIAct.cs.

◆ OnBeforeProgress()

virtual void AIAct.OnBeforeProgress ( )
virtual

Definition at line 778 of file AIAct.cs.

◆ OnCancel()

virtual void AIAct.OnCancel ( )
virtual

Definition at line 458 of file AIAct.cs.

◆ OnCancelOrSuccess()

virtual void AIAct.OnCancelOrSuccess ( )
virtual

Definition at line 463 of file AIAct.cs.

◆ OnCreateProgress()

virtual void AIAct.OnCreateProgress ( Progress_Custom p)
virtual

Definition at line 767 of file AIAct.cs.

◆ OnProgress()

virtual void AIAct.OnProgress ( )
virtual

Definition at line 783 of file AIAct.cs.

◆ OnProgressComplete()

virtual void AIAct.OnProgressComplete ( )
virtual

Definition at line 788 of file AIAct.cs.

◆ OnReset()

virtual void AIAct.OnReset ( )
virtual

Definition at line 504 of file AIAct.cs.

◆ OnSetOwner()

virtual void AIAct.OnSetOwner ( )
virtual

Definition at line 328 of file AIAct.cs.

◆ OnSimulatePosition()

virtual void AIAct.OnSimulatePosition ( )
virtual

Definition at line 808 of file AIAct.cs.

◆ OnSimulateZone()

virtual void AIAct.OnSimulateZone ( int days)
virtual

Definition at line 803 of file AIAct.cs.

◆ OnStart()

virtual void AIAct.OnStart ( )
virtual

Definition at line 315 of file AIAct.cs.

◆ OnSuccess()

virtual void AIAct.OnSuccess ( )
virtual

Definition at line 413 of file AIAct.cs.

◆ Perform()

override bool AIAct.Perform ( )
virtual

Reimplemented from Act.

Definition at line 376 of file AIAct.cs.

◆ Reset()

void AIAct.Reset ( )

Definition at line 480 of file AIAct.cs.

◆ Restart()

AIAct.Status AIAct.Restart ( )

Definition at line 383 of file AIAct.cs.

◆ Run()

virtual IEnumerable< AIAct.Status > AIAct.Run ( )
virtual

Definition at line 551 of file AIAct.cs.

◆ SetChild()

void AIAct.SetChild ( AIAct seq,
Func< AIAct.Status > _onChildFail = null )

Definition at line 333 of file AIAct.cs.

◆ SetOwner()

void AIAct.SetOwner ( Chara c)

Definition at line 320 of file AIAct.cs.

◆ SimulateZone()

void AIAct.SimulateZone ( int days)

Definition at line 793 of file AIAct.cs.

◆ Start()

void AIAct.Start ( )

Definition at line 346 of file AIAct.cs.

◆ Success()

AIAct.Status AIAct.Success ( Action action = null)

Definition at line 399 of file AIAct.cs.

◆ Tick()

AIAct.Status AIAct.Tick ( )

Definition at line 509 of file AIAct.cs.

◆ TickChild()

AIAct.Status AIAct.TickChild ( )

Definition at line 558 of file AIAct.cs.

◆ ToString()

override string AIAct.ToString ( )

Definition at line 63 of file AIAct.cs.

◆ TryCancel()

bool AIAct.TryCancel ( Card c)

Definition at line 418 of file AIAct.cs.

Member Data Documentation

◆ child

AIAct AIAct.child

Definition at line 822 of file AIAct.cs.

◆ Enumerator

IEnumerator<AIAct.Status> AIAct.Enumerator

Definition at line 819 of file AIAct.cs.

◆ isFail

Func<bool> AIAct.isFail

Definition at line 834 of file AIAct.cs.

◆ onChildFail

Func<AIAct.Status> AIAct.onChildFail

Definition at line 831 of file AIAct.cs.

◆ owner

new Chara AIAct.owner

Definition at line 813 of file AIAct.cs.

◆ parent

AIAct AIAct.parent

Definition at line 825 of file AIAct.cs.

◆ restartCount

byte AIAct.restartCount

Definition at line 828 of file AIAct.cs.

◆ status

AIAct.Status AIAct.status

Definition at line 816 of file AIAct.cs.

Property Documentation

◆ actionIcon

virtual Sprite AIAct.actionIcon
get

Definition at line 80 of file AIAct.cs.

◆ CancelWhenDamaged

virtual bool AIAct.CancelWhenDamaged
get

Definition at line 180 of file AIAct.cs.

◆ CancelWhenMoved

virtual bool AIAct.CancelWhenMoved
get

Definition at line 190 of file AIAct.cs.

◆ Current

AIAct AIAct.Current
get

Definition at line 220 of file AIAct.cs.

◆ CurrentProgress

virtual int AIAct.CurrentProgress
get

Definition at line 160 of file AIAct.cs.

◆ HasProgress

virtual bool AIAct.HasProgress
get

Definition at line 741 of file AIAct.cs.

◆ InformCancel

virtual bool AIAct.InformCancel
get

Definition at line 200 of file AIAct.cs.

◆ IsAct

override bool AIAct.IsAct
get

Definition at line 240 of file AIAct.cs.

◆ IsAutoTurn

virtual bool AIAct.IsAutoTurn
get

Definition at line 100 of file AIAct.cs.

◆ IsChildRunning

bool AIAct.IsChildRunning
get

Definition at line 20 of file AIAct.cs.

◆ IsIdle

virtual bool AIAct.IsIdle
get

Definition at line 110 of file AIAct.cs.

◆ IsMoveAI

bool AIAct.IsMoveAI
get

Definition at line 30 of file AIAct.cs.

◆ IsNoGoal

virtual bool AIAct.IsNoGoal
get

Definition at line 90 of file AIAct.cs.

◆ IsRunning

virtual bool AIAct.IsRunning
get

Definition at line 10 of file AIAct.cs.

◆ MaxProgress

virtual int AIAct.MaxProgress
get

Definition at line 130 of file AIAct.cs.

◆ MaxRestart

virtual int AIAct.MaxRestart
get

Definition at line 44 of file AIAct.cs.

◆ Name

virtual new string AIAct.Name
get

Definition at line 54 of file AIAct.cs.

◆ PushChara

virtual bool AIAct.PushChara
get

Definition at line 120 of file AIAct.cs.

◆ RenderThing

virtual Thing AIAct.RenderThing
get

Definition at line 210 of file AIAct.cs.

◆ ShowCursor

virtual bool AIAct.ShowCursor
get

Definition at line 170 of file AIAct.cs.

◆ ShowPotential

override bool AIAct.ShowPotential
get

Definition at line 250 of file AIAct.cs.

◆ ShowProgress

virtual bool AIAct.ShowProgress
get

Definition at line 140 of file AIAct.cs.

◆ ShowRelativeAttribute

override bool AIAct.ShowRelativeAttribute
get

Definition at line 270 of file AIAct.cs.

◆ stateIcon

virtual MultiSprite AIAct.stateIcon
getprotected

Definition at line 70 of file AIAct.cs.

◆ UsePotential

override bool AIAct.UsePotential
get

Definition at line 260 of file AIAct.cs.

◆ UseTurbo

virtual bool AIAct.UseTurbo
get

Definition at line 150 of file AIAct.cs.


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