Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
GoalSiege.cs
Go to the documentation of this file.
1
using
System.Collections.Generic;
2
3
public
class
GoalSiege
:
Goal
4
{
5
public
Card
target
;
6
7
public
override
IEnumerable<Status>
Run
()
8
{
9
if
(
target
==
null
|| !
target
.
IsAliveInCurrentZone
)
10
{
11
target
=
GetDestCard
();
12
}
13
if
(
target
!=
null
)
14
{
15
yield
return
DoGoto
(
target
);
16
owner
.
DoHostileAction
(
target
.
Chara
);
17
}
18
}
19
20
public
Card
GetDestCard
()
21
{
22
foreach
(
Chara
chara
in
EClass
.
_map
.
charas
)
23
{
24
if
(chara.
faction
==
EClass
.
Home
&& chara.
IsAliveInCurrentZone
)
25
{
26
return
chara;
27
}
28
}
29
return
null
;
30
}
31
}
AIAct.owner
new Chara owner
Definition:
AIAct.cs:14
AIAct.DoGoto
Status DoGoto(Point pos, int dist=0, bool ignoreConnection=false, Func< Status > _onChildFail=null)
Definition:
AIAct.cs:432
Card
Definition:
Card.cs:11
Card.Chara
virtual Chara Chara
Definition:
Card.cs:1946
Card.IsAliveInCurrentZone
virtual bool IsAliveInCurrentZone
Definition:
Card.cs:2003
Chara
Definition:
Chara.cs:10
Chara.IsAliveInCurrentZone
override bool IsAliveInCurrentZone
Definition:
Chara.cs:546
Chara.faction
Faction faction
Definition:
Chara.cs:412
Chara.DoHostileAction
void DoHostileAction(Card _tg, bool immediate=false)
Definition:
Chara.cs:5707
EClass
Definition:
EClass.cs:5
EClass.Home
static Faction Home
Definition:
EClass.cs:26
EClass._map
static Map _map
Definition:
EClass.cs:18
GoalSiege
Definition:
GoalSiege.cs:4
GoalSiege.target
Card target
Definition:
GoalSiege.cs:5
GoalSiege.GetDestCard
Card GetDestCard()
Definition:
GoalSiege.cs:20
GoalSiege.Run
override IEnumerable< Status > Run()
Definition:
GoalSiege.cs:7
Goal
Definition:
Goal.cs:4
Map.charas
List< Chara > charas
Definition:
Map.cs:81
Elin
GoalSiege.cs
Generated by
1.9.6