|
override bool | CanManualCancel () |
|
override Point | GetDestination () |
|
| AI_Goto (Point _dest, int dist, bool _ignoreConnection=false, bool _interaction=false) |
|
| AI_Goto (Card _card, int dist, bool _ignoreConnection=false, bool _interaction=false) |
|
override void | OnReset () |
|
Status | TryGoTo () |
|
bool | IsDestinationReached () |
|
override IEnumerable< Status > | Run () |
|
override string | ToString () |
|
override MultiSprite | GetStateIcon () |
|
virtual bool | ShouldAllyAttack (Chara tg) |
|
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< Status > _onChildFail=null) |
|
void | Start () |
|
override bool | Perform () |
|
Status | Restart () |
|
Status | Success (Action action=null) |
|
virtual void | OnSuccess () |
|
bool | TryCancel (Card c) |
|
virtual Status | Cancel () |
|
virtual void | OnCancel () |
|
virtual void | OnCancelOrSuccess () |
|
virtual bool | CanManualCancel () |
|
Status | KeepRunning () |
|
void | Reset () |
|
virtual void | OnReset () |
|
Status | Tick () |
|
virtual IEnumerable< Status > | Run () |
|
Status | TickChild () |
|
Status | Do (AIAct _seq, Func< Status > _onChildFail=null) |
|
Status | DoGotoInteraction (Point pos, Func< Status > _onChildFail=null) |
|
Status | DoGoto (Point pos, int dist=0, bool ignoreConnection=false, Func< Status > _onChildFail=null) |
|
Status | DoGoto (Card card, Func< Status > _onChildFail=null) |
|
Status | DoGoto (Card card, int dist, Func< Status > _onChildFail=null) |
|
Status | DoGotoSpot (Card card, Func< Status > _onChildFail=null) |
|
Status | DoGoto< T > (Func< Status > _onChildFail=null) |
|
Status | DoGotoSpot< T > (Func< Status > _onChildFail=null, bool ignoreAccessType=false) |
|
Status | DoGrab (Card card, int num=-1, bool pickHeld=false, Func< Status > _onChildFail=null) |
|
Status | DoGrab< T > () |
|
Status | DoProgress () |
|
Status | DoIdle (int repeat=3) |
|
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 () |
|
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) |
|
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) |
|
|
enum | Status { Running
, Fail
, Success
} |
|
enum | CostType { None
, MP
, SP
} |
|
static void | SetReference (Chara _cc, Card _tc=null, Point _tp=null) |
|
static void | SetTool (Thing t) |
|
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 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 Chara | CC |
|
static Card | TC |
|
static Point | TP = new Point() |
|
static Thing | TOOL |
|
static int | powerMod = 100 |
|
static bool | forcePt |
|
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.Row > | ListElements = new List<SourceElement.Row>() |
|
static List< SourceElement.Row > | ListAttackElements = new List<SourceElement.Row>() |
|
static Core | core |
|
Definition at line 4 of file AI_Goto.cs.
override IEnumerable< Status > AI_Goto.Run |
( |
| ) |
|
|
inlinevirtual |
Reimplemented from AIAct.
Definition at line 175 of file AI_Goto.cs.
176 {
178 {
180 }
181 while (true)
182 {
184 {
186 }
188 {
189 yield
return Status.Running;
190 }
193 {
195 }
196 EClass.player.enemySpotted = false;
197 while (true)
198 {
200 {
202 {
204 }
206 {
207 EClass.player.enemySpotted = false;
210 }
211 }
214 {
217 if (num > 3 && num < 20)
218 {
219 break;
220 }
221 }
222 }
225 }
226 }
override Point GetDestination()
bool IsDestinationReached()
static string Say(string idLang, string ref1, string ref2=null, string ref3=null, string ref4=null)
References AIAct.Cancel(), dest, destCard, Point.Distance(), Player.enemySpotted, GetDestination(), Chara.host, IsDestinationReached(), Chara.IsPC, AIAct.owner, Chara.path, EClass.player, repath, Msg.Say(), Point.Set(), PathProgress.state, AIAct.Success, Player.TooHeavyToMove(), and TryGoTo().
Definition at line 65 of file AI_Goto.cs.
66 {
70 {
72 {
73 dest.x = EClass._map.bounds.maxX + 1;
74 }
76 {
77 dest.x = EClass._map.bounds.x - 1;
78 }
80 {
81 dest.z = EClass._map.bounds.maxZ + 1;
82 }
84 {
85 dest.z = EClass._map.bounds.z - 1;
86 }
87 }
89 {
92 }
94 {
97 break;
101 {
103 {
105 }
108 {
110 }
113 {
116 shared.
Set(pathFinderNode.
X, pathFinderNode.
Z);
117 }
119 {
122 {
124 }
125 }
129 {
131 }
133 {
135 {
137 }
139 }
141 {
144 }
147 {
149 }
150 break;
151 }
152 }
154 }
void SetTurbo(int mtp=-1)
MoveResult TryMove(Point newPoint, bool allowDestroyPath=true)
void RequestPath(Point _startPoint, Point _destPoint, int _destDist, bool _ignoreConnection, int _searchLimit=-1)
List< PathFinderNode > nodes
void RequestPathImmediate(Point _startPoint, Point _destPoint, int _destDist, bool _ignoreConnection, int _searchLimit=-1)
static Point GetShared(int x, int z)
bool Equals(int _x, int _z)
References EClass._map, ActionMode.Adv, Map.bounds, AIAct.Cancel(), Card.Cell, Point.cell, dest, destDist, Point.Equals(), Point.GetShared(), Point.HasChara, Cell.HasLadder, ignoreConnection, ActionMode.IsAdv, IsDestinationReached(), Chara.IsPC, MapBounds.maxX, MapBounds.maxZ, PathProgress.nodeIndex, PathProgress.nodes, AIAct.owner, Chara.path, Card.pos, repath, PathProgress.RequestPath(), PathProgress.RequestPathImmediate(), AIAct.Restart(), EClass.rnd(), Point.Set(), AM_Adv.SetTurbo(), PathProgress.state, AIAct.Success, Chara.TryMove(), waitCount, Algorithms.PathFinderNode.X, MapBounds.x, Point.x, Algorithms.PathFinderNode.Z, MapBounds.z, and Point.z.
Referenced by Run().