Elin Decompiled Documentation
EA 23.346 Nightly
Loading...
Searching...
No Matches
TraitDoorBig.cs
Go to the documentation of this file.
1
public
class
TraitDoorBig
:
TraitDoor
2
{
3
public
override
int
height
=> 2;
4
5
public
override
void
ToggleDoor
(
bool
sound =
true
,
bool
refresh =
true
)
6
{
7
base.ToggleDoor(sound, refresh);
8
TraitDoorBig
doorPair =
GetDoorPair
();
9
if
(doorPair !=
null
&& doorPair.
IsOpen
() !=
IsOpen
())
10
{
11
doorPair.
ToggleDoor
(sound:
false
);
12
}
13
}
14
15
public
TraitDoorBig
GetDoorPair
()
16
{
17
int
dir =
owner
.
dir
;
18
Cell
cell =
null
;
19
cell = ((!(
this
is
TraitDoorBigL
)) ? ((dir == 0 || dir == 2) ?
owner
.
Cell
.
Back
:
owner
.
Cell
.
Left
) : ((dir == 0 || dir == 2) ?
owner
.
Cell
.
Front
:
owner
.
Cell
.
Right
));
20
return
cell.traitDoor as
TraitDoorBig
;
21
}
22
}
Card.Cell
Cell Cell
Definition:
Card.cs:2107
Card.dir
int dir
Definition:
Card.cs:149
Cell
Definition:
Cell.cs:7
Cell.Back
Cell Back
Definition:
Cell.cs:175
Cell.Front
Cell Front
Definition:
Cell.cs:151
Cell.Left
Cell Left
Definition:
Cell.cs:187
Cell.Right
Cell Right
Definition:
Cell.cs:163
TraitDoorBigL
Definition:
TraitDoorBigL.cs:4
TraitDoorBig
Definition:
TraitDoorBig.cs:2
TraitDoorBig.GetDoorPair
TraitDoorBig GetDoorPair()
Definition:
TraitDoorBig.cs:15
TraitDoorBig.height
override int height
Definition:
TraitDoorBig.cs:3
TraitDoorBig.ToggleDoor
override void ToggleDoor(bool sound=true, bool refresh=true)
Definition:
TraitDoorBig.cs:5
TraitDoor
Definition:
TraitDoor.cs:2
TraitDoor.IsOpen
virtual bool IsOpen()
Definition:
TraitDoor.cs:101
Trait.owner
Card owner
Definition:
Trait.cs:28
Elin
TraitDoorBig.cs
Generated by
1.9.6