puzzlescript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
BEFORE_
OR_
AFTER
Bracket
Pair
Cell
Mutation
Command
Mutation
Extra
Pair
ISimple
Bracket
Matched
Cells
For
Rule
Multi
Map
Replace
Direction
Replace
Tile
Simple
Bracket
Simple
Ellipsis
Bracket
Simple
Neighbor
Simple
Rule
Simple
Rule
Group
Simple
Rule
Loop
Simple
Tile
With
Modifier
constructor
__coverage
Count
__source
_debug
Flag
_direction
_is
Negated
_is
Random
_tile
__get
Line
And
Column
Range
__get
Source
Line
And
Column
__increment
Coverage
add
Cells
clear
Caches
equals
get
Collision
Layers
has
Cell
is
No
is
Random
remove
Cells
subscribe
ToCell
Changes
to
Key
to
Source
String
to
String
update
Cells
IMatched
Cell
And
Corresponding
Neighbors
IMutation
IRule
Bit
Set2
LRU_
CACHE_
SIZE
MAX_
ITERATIONS_
IN_
LOOP
SIMPLE_
DIRECTION_
DIRECTIONS
build
Permutations
command
ToKey
Hierarchy
BaseForLines
SimpleTileWithModifier
Implements
ICacheable
Index
Constructors
constructor
Properties
__coverage
Count
__source
_debug
Flag
_direction
_is
Negated
_is
Random
_tile
Methods
__get
Line
And
Column
Range
__get
Source
Line
And
Column
__increment
Coverage
add
Cells
clear
Caches
equals
get
Collision
Layers
has
Cell
is
No
is
Random
remove
Cells
subscribe
ToCell
Changes
to
Key
to
Source
String
to
String
update
Cells
Constructors
constructor
new
Simple
Tile
With
Modifier
(
source
:
IGameCode
, isNegated
:
boolean
, isRandom
:
boolean
, direction
:
Optional
<
RULE_DIRECTION
>
, tile
:
IGameTile
, debugFlag
:
Optional
<
DEBUG_FLAG
>
)
:
SimpleTileWithModifier
Parameters
source:
IGameCode
isNegated:
boolean
isRandom:
boolean
direction:
Optional
<
RULE_DIRECTION
>
tile:
IGameTile
debugFlag:
Optional
<
DEBUG_FLAG
>
Returns
SimpleTileWithModifier
Properties
__coverage
Count
__coverage
Count
:
Optional
<
number
>
__source
__source
:
IGameCode
_debug
Flag
_debug
Flag
:
Optional
<
DEBUG_FLAG
>
_direction
_direction
:
Optional
<
RULE_DIRECTION
>
_is
Negated
_is
Negated
:
boolean
_is
Random
_is
Random
:
boolean
_tile
_tile
:
IGameTile
Methods
__get
Line
And
Column
Range
__get
Line
And
Column
Range
(
)
:
object
Returns
object
end
:
object
col
:
number
line
:
number
start
:
object
col
:
number
line
:
number
__get
Source
Line
And
Column
__get
Source
Line
And
Column
(
)
:
object
Returns
object
col
Num
:
number
line
:
string
line
Num
:
number
next
Line
:
null
|
string
prev
Line
:
null
|
string
__increment
Coverage
__increment
Coverage
(
)
:
void
Returns
void
add
Cells
add
Cells
(
tile
:
IGameTile
, sprite
:
GameSprite
, cells
:
Cell
[]
, wantsToMove
:
Optional
<
RULE_DIRECTION
>
)
:
void
Parameters
tile:
IGameTile
sprite:
GameSprite
cells:
Cell
[]
wantsToMove:
Optional
<
RULE_DIRECTION
>
Returns
void
clear
Caches
clear
Caches
(
)
:
void
Returns
void
equals
equals
(
t
:
SimpleTileWithModifier
)
:
boolean
Parameters
t:
SimpleTileWithModifier
Returns
boolean
get
Collision
Layers
get
Collision
Layers
(
)
:
Set
<
CollisionLayer
>
Returns
Set
<
CollisionLayer
>
has
Cell
has
Cell
(
cell
:
Cell
)
:
boolean
Parameters
cell:
Cell
Returns
boolean
is
No
is
No
(
)
:
boolean
Returns
boolean
is
Random
is
Random
(
)
:
boolean
Returns
boolean
remove
Cells
remove
Cells
(
tile
:
IGameTile
, sprite
:
GameSprite
, cells
:
Cell
[]
)
:
void
Parameters
tile:
IGameTile
sprite:
GameSprite
cells:
Cell
[]
Returns
void
subscribe
ToCell
Changes
subscribe
ToCell
Changes
(
neighbor
:
SimpleNeighbor
)
:
void
Parameters
neighbor:
SimpleNeighbor
Returns
void
to
Key
to
Key
(
ignoreDebugFlag
?:
undefined
|
false
|
true
)
:
string
Parameters
Optional
ignoreDebugFlag:
undefined
|
false
|
true
Returns
string
to
Source
String
to
Source
String
(
)
:
string
Returns
string
to
String
to
String
(
)
:
string
Returns
string
update
Cells
update
Cells
(
sprite
:
GameSprite
, cells
:
Cell
[]
, wantsToMove
:
Optional
<
RULE_DIRECTION
>
)
:
void
Parameters
sprite:
GameSprite
cells:
Cell
[]
wantsToMove:
Optional
<
RULE_DIRECTION
>
Returns
void
Generated using
TypeDoc