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
constructor
__coverage
Count
__source
action
Debug
Flag
debug
Flag
direction
first
Cells
__get
Line
And
Column
Range
__get
Source
Line
And
Column
__increment
Coverage
_add
First
Cell
_get
All
Neighbors
_remove
First
Cell
add
Cell
add
Cells
ToEmpty
Rules
add
Ellipsis
Bracket
clear
Caches
depends
OnDirection
get
Matches
get
Matches
ByLooping
get
Matches
ByTrickling
get
Neighbors
has
Matches
prepare
Action
remove
Cell
should
Use
OnDemand
Method
subscribe
ToNeighbor
Changes
to
Key
to
Source
String
to
String
Simple
Ellipsis
Bracket
Simple
Neighbor
Simple
Rule
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
ISimpleBracket
SimpleBracket
Implements
ICacheable
Index
Constructors
constructor
Properties
__coverage
Count
__source
action
Debug
Flag
debug
Flag
direction
first
Cells
Methods
__get
Line
And
Column
Range
__get
Source
Line
And
Column
__increment
Coverage
_add
First
Cell
_get
All
Neighbors
_remove
First
Cell
add
Cell
add
Cells
ToEmpty
Rules
add
Ellipsis
Bracket
clear
Caches
depends
OnDirection
get
Matches
get
Matches
ByLooping
get
Matches
ByTrickling
get
Neighbors
has
Matches
prepare
Action
remove
Cell
should
Use
OnDemand
Method
subscribe
ToNeighbor
Changes
to
Key
to
Source
String
to
String
Constructors
constructor
new
Simple
Bracket
(
source
:
IGameCode
, direction
:
RULE_DIRECTION
, neighbors
:
SimpleNeighbor
[]
, debugFlag
:
Optional
<
DEBUG_FLAG
>
)
:
SimpleBracket
Parameters
source:
IGameCode
direction:
RULE_DIRECTION
neighbors:
SimpleNeighbor
[]
debugFlag:
Optional
<
DEBUG_FLAG
>
Returns
SimpleBracket
Properties
__coverage
Count
__coverage
Count
:
Optional
<
number
>
__source
__source
:
IGameCode
Protected
action
Debug
Flag
action
Debug
Flag
:
Optional
<
DEBUG_FLAG
>
debug
Flag
debug
Flag
:
Optional
<
DEBUG_FLAG
>
direction
direction
:
RULE_DIRECTION
Protected
first
Cells
first
Cells
:
Set
<
Cell
>
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
First
Cell
_add
First
Cell
(
firstCell
:
Cell
)
:
void
Parameters
firstCell:
Cell
Returns
void
_get
All
Neighbors
_get
All
Neighbors
(
)
:
SimpleNeighbor
[]
Returns
SimpleNeighbor
[]
Protected
_remove
First
Cell
_remove
First
Cell
(
firstCell
:
Cell
)
:
void
Parameters
firstCell:
Cell
Returns
void
add
Cell
add
Cell
(
index
:
number
, neighbor
:
SimpleNeighbor
, t
:
SimpleTileWithModifier
, sprite
:
GameSprite
, cell
:
Cell
, wantsToMove
:
Optional
<
RULE_DIRECTION
>
)
:
void
Parameters
index:
number
neighbor:
SimpleNeighbor
t:
SimpleTileWithModifier
sprite:
GameSprite
cell:
Cell
wantsToMove:
Optional
<
RULE_DIRECTION
>
Returns
void
add
Cells
ToEmpty
Rules
add
Cells
ToEmpty
Rules
(
cells
:
Iterable
<
Cell
>
)
:
void
Parameters
cells:
Iterable
<
Cell
>
Returns
void
add
Ellipsis
Bracket
add
Ellipsis
Bracket
(
bracket
:
SimpleEllipsisBracket
, token
:
BEFORE_OR_AFTER
)
:
void
Parameters
bracket:
SimpleEllipsisBracket
token:
BEFORE_OR_AFTER
Returns
void
clear
Caches
clear
Caches
(
)
:
void
Returns
void
depends
OnDirection
depends
OnDirection
(
)
:
boolean
Returns
boolean
get
Matches
get
Matches
(
level
:
Level
, actionBracket
:
Optional
<
SimpleBracket
>
)
:
MatchedCellsForRule
[]
Parameters
level:
Level
actionBracket:
Optional
<
SimpleBracket
>
Returns
MatchedCellsForRule
[]
get
Matches
ByLooping
get
Matches
ByLooping
(
level
:
Level
, actionBracket
:
Optional
<
SimpleBracket
>
)
:
MatchedCellsForRule
[]
Parameters
level:
Level
actionBracket:
Optional
<
SimpleBracket
>
Returns
MatchedCellsForRule
[]
get
Matches
ByTrickling
get
Matches
ByTrickling
(
level
:
Level
, actionBracket
:
Optional
<
SimpleBracket
>
)
:
MatchedCellsForRule
[]
Parameters
level:
Level
actionBracket:
Optional
<
SimpleBracket
>
Returns
MatchedCellsForRule
[]
get
Neighbors
get
Neighbors
(
)
:
SimpleNeighbor
[]
Returns
SimpleNeighbor
[]
has
Matches
has
Matches
(
level
:
Level
, actionBracket
:
Optional
<
ISimpleBracket
>
)
:
boolean
Parameters
level:
Level
actionBracket:
Optional
<
ISimpleBracket
>
Returns
boolean
prepare
Action
prepare
Action
(
actionBracket
:
ISimpleBracket
)
:
void
Parameters
actionBracket:
ISimpleBracket
Returns
void
remove
Cell
remove
Cell
(
index
:
number
, neighbor
:
SimpleNeighbor
, t
:
SimpleTileWithModifier
, sprite
:
GameSprite
, cell
:
Cell
)
:
void
Parameters
index:
number
neighbor:
SimpleNeighbor
t:
SimpleTileWithModifier
sprite:
GameSprite
cell:
Cell
Returns
void
should
Use
OnDemand
Method
should
Use
OnDemand
Method
(
)
:
boolean
Returns
boolean
subscribe
ToNeighbor
Changes
subscribe
ToNeighbor
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