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
constructor
__coverage
Count
__source
action
Brackets
commands
condition
Brackets
debug
Flag
__get
Line
And
Column
Range
__get
Source
Line
And
Column
__increment
Coverage
add
Cells
ToEmpty
Rules
can
Collapse
Because
Brackets
Match
clear
Caches
evaluate
get
Child
Rules
get
Matches
has
Matches
has
Rigid
is
Late
subscribe
ToCell
Changes
to
Key
to
Source
String
to
String
Simple
Rule
Group
Simple
Rule
Loop
Simple
Tile
With
Modifier
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
SimpleRule
Implements
ICacheable
IRule
Index
Constructors
constructor
Properties
__coverage
Count
__source
action
Brackets
commands
condition
Brackets
debug
Flag
Methods
__get
Line
And
Column
Range
__get
Source
Line
And
Column
__increment
Coverage
add
Cells
ToEmpty
Rules
can
Collapse
Because
Brackets
Match
clear
Caches
evaluate
get
Child
Rules
get
Matches
has
Matches
has
Rigid
is
Late
subscribe
ToCell
Changes
to
Key
to
Source
String
to
String
Constructors
constructor
new
Simple
Rule
(
source
:
IGameCode
, conditionBrackets
:
ISimpleBracket
[]
, actionBrackets
:
ISimpleBracket
[]
, commands
:
Array
<
Command
<
SoundItem
<
IGameTile
>
>
>
, isLate
:
boolean
, isRigid
:
boolean
, debugFlag
:
Optional
<
DEBUG_FLAG
>
)
:
SimpleRule
Parameters
source:
IGameCode
conditionBrackets:
ISimpleBracket
[]
actionBrackets:
ISimpleBracket
[]
commands:
Array
<
Command
<
SoundItem
<
IGameTile
>
>
>
isLate:
boolean
isRigid:
boolean
debugFlag:
Optional
<
DEBUG_FLAG
>
Returns
SimpleRule
Properties
__coverage
Count
__coverage
Count
:
Optional
<
number
>
__source
__source
:
IGameCode
action
Brackets
action
Brackets
:
ISimpleBracket
[]
commands
commands
:
Array
<
Command
<
SoundItem
<
IGameTile
>
>
>
condition
Brackets
condition
Brackets
:
ISimpleBracket
[]
debug
Flag
debug
Flag
:
Optional
<
DEBUG_FLAG
>
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
ToEmpty
Rules
add
Cells
ToEmpty
Rules
(
cells
:
Iterable
<
Cell
>
)
:
void
Parameters
cells:
Iterable
<
Cell
>
Returns
void
can
Collapse
Because
Brackets
Match
can
Collapse
Because
Brackets
Match
(
rule
:
SimpleRule
)
:
boolean
Parameters
rule:
SimpleRule
Returns
boolean
clear
Caches
clear
Caches
(
)
:
void
Returns
void
evaluate
evaluate
(
level
:
Level
, onlyEvaluateFirstMatch
:
boolean
)
:
IMutation
[]
Parameters
level:
Level
onlyEvaluateFirstMatch:
boolean
Returns
IMutation
[]
get
Child
Rules
get
Child
Rules
(
)
:
IRule
[]
Returns
IRule
[]
get
Matches
get
Matches
(
level
:
Level
)
:
MatchedCellsForRule
[]
[]
Parameters
level:
Level
Returns
MatchedCellsForRule
[]
[]
has
Matches
has
Matches
(
level
:
Level
)
:
boolean
Parameters
level:
Level
Returns
boolean
has
Rigid
has
Rigid
(
)
:
boolean
Returns
boolean
is
Late
is
Late
(
)
:
boolean
Returns
boolean
subscribe
ToCell
Changes
subscribe
ToCell
Changes
(
)
:
void
Returns
void
to
Key
to
Key
(
)
:
string
Returns
string
to
Source
String
to
Source
String
(
)
:
string
Returns
string
to
String
to
String
(
)
:
string
Returns
string
Generated using
TypeDoc