Elin Decompiled Documentation
EA 23.102 Nightly
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
Functions
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
Files
File List
File Members
All
$
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
Functions
Variables
Enumerations
a
b
c
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
Loading...
Searching...
No Matches
TraitTrainingDummy.cs
Go to the documentation of this file.
1
public
class
TraitTrainingDummy
:
Trait
2
{
3
public
override
TileMode
tileMode
=>
TileMode
.SignalAnime;
4
5
public
override
bool
CanBeAttacked
=>
true
;
6
7
public
override
bool
IdleUse
(
Chara
c,
int
dist)
8
{
9
if
(dist <= 1 &&
ACT
.
Melee
.
Perform
(c,
owner
))
10
{
11
return
true
;
12
}
13
if
(c.
TryEquipRanged
() && dist < c.
ranged
.
range
&&
ACT
.
Ranged
.
Perform
(c,
owner
))
14
{
15
return
true
;
16
}
17
return
false
;
18
}
19
20
public
override
void
TrySetAct
(
ActPlan
p)
21
{
22
if
(
owner
.
IsInstalled
)
23
{
24
p.
TrySetAct
(
new
AI_PracticeDummy
25
{
26
target = owner.Thing
27
},
owner
);
28
}
29
}
30
}
ACT
Definition:
ACT.cs:6
ACT.Ranged
static ActRanged Ranged
Definition:
ACT.cs:17
ACT.Melee
static ActMelee Melee
Definition:
ACT.cs:15
AI_PracticeDummy
Definition:
AI_PracticeDummy.cs:4
ActMelee.Perform
override bool Perform()
Definition:
ActMelee.cs:87
ActPlan
Definition:
ActPlan.cs:8
ActPlan.TrySetAct
bool TrySetAct(string lang, Func< bool > onPerform, Card tc, CursorInfo cursor=null, int dist=1, bool isHostileAct=false, bool localAct=true, bool canRepeat=false)
Definition:
ActPlan.cs:344
ActRanged.Perform
override bool Perform()
Definition:
ActRanged.cs:65
Card.IsInstalled
bool IsInstalled
Definition:
Card.cs:2241
Chara
Definition:
Chara.cs:10
Chara.ranged
Thing ranged
Definition:
Chara.cs:95
Chara.TryEquipRanged
bool TryEquipRanged()
Definition:
Chara.cs:7081
Thing.range
int range
Definition:
Thing.cs:31
TraitTrainingDummy
Definition:
TraitTrainingDummy.cs:2
TraitTrainingDummy.IdleUse
override bool IdleUse(Chara c, int dist)
Definition:
TraitTrainingDummy.cs:7
TraitTrainingDummy.TrySetAct
override void TrySetAct(ActPlan p)
Definition:
TraitTrainingDummy.cs:20
TraitTrainingDummy.tileMode
override TileMode tileMode
Definition:
TraitTrainingDummy.cs:3
TraitTrainingDummy.CanBeAttacked
override bool CanBeAttacked
Definition:
TraitTrainingDummy.cs:5
Trait
Definition:
Trait.cs:7
Trait.TileMode
TileMode
Definition:
Trait.cs:9
Trait.owner
Card owner
Definition:
Trait.cs:26
Elin
TraitTrainingDummy.cs
Generated by
1.9.6