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
constructor
__coverage
Count
__source
_tiles
With
Modifier
any
Sprites
Present
sprites
Present
__get
Line
And
Column
Range
__get
Source
Line
And
Column
__increment
Coverage
add
Cells
clear
Caches
depends
OnDirection
evaluate
matches
Cell
Simple
populate
Magic
OrTiles
prepare
Action
remove
Cells
subscribe
ToTile
Changes
to
Key
to
Source
String
to
String
update
Cells
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
Hierarchy
BaseForLines
SimpleNeighbor
Implements
ICacheable
Index
Constructors
constructor
Properties
__coverage
Count
__source
_tiles
With
Modifier
any
Sprites
Present
sprites
Present
Methods
__get
Line
And
Column
Range
__get
Source
Line
And
Column
__increment
Coverage
add
Cells
clear
Caches
depends
OnDirection
evaluate
matches
Cell
Simple
populate
Magic
OrTiles
prepare
Action
remove
Cells
subscribe
ToTile
Changes
to
Key
to
Source
String
to
String
update
Cells
Constructors
constructor
new
Simple
Neighbor
(
source
:
IGameCode
, tilesWithModifier
:
Set
<
SimpleTileWithModifier
>
, debugFlag
:
Optional
<
DEBUG_FLAG
>
)
:
SimpleNeighbor
Parameters
source:
IGameCode
tilesWithModifier:
Set
<
SimpleTileWithModifier
>
debugFlag:
Optional
<
DEBUG_FLAG
>
Returns
SimpleNeighbor
Properties
__coverage
Count
__coverage
Count
:
Optional
<
number
>
__source
__source
:
IGameCode
_tiles
With
Modifier
_tiles
With
Modifier
:
Set
<
SimpleTileWithModifier
>
any
Sprites
Present
any
Sprites
Present
:
Set
<
SpriteBitSet
>
sprites
Present
sprites
Present
:
SpriteBitSet
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
(
t
:
SimpleTileWithModifier
, sprite
:
GameSprite
, cells
:
Iterable
<
Cell
>
, wantsToMove
:
Optional
<
RULE_DIRECTION
>
)
:
void
Parameters
t:
SimpleTileWithModifier
sprite:
GameSprite
cells:
Iterable
<
Cell
>
wantsToMove:
Optional
<
RULE_DIRECTION
>
Returns
void
clear
Caches
clear
Caches
(
)
:
void
Returns
void
depends
OnDirection
depends
OnDirection
(
)
:
boolean
Returns
boolean
evaluate
evaluate
(
actionNeighbor
:
SimpleNeighbor
, cell
:
Cell
, magicOrTiles
:
Map
<
IGameTile
,
Set
<
GameSprite
>
>
)
:
null
|
CellMutation
Parameters
actionNeighbor:
SimpleNeighbor
cell:
Cell
magicOrTiles:
Map
<
IGameTile
,
Set
<
GameSprite
>
>
Returns
null
|
CellMutation
matches
Cell
Simple
matches
Cell
Simple
(
cell
:
Cell
)
:
boolean
Parameters
cell:
Cell
Returns
boolean
populate
Magic
OrTiles
populate
Magic
OrTiles
(
cell
:
Cell
, magicOrTiles
:
Map
<
IGameTile
,
Set
<
GameSprite
>
>
)
:
void
Parameters
cell:
Cell
magicOrTiles:
Map
<
IGameTile
,
Set
<
GameSprite
>
>
Returns
void
prepare
Action
prepare
Action
(
actionNeighbor
:
SimpleNeighbor
)
:
void
Parameters
actionNeighbor:
SimpleNeighbor
Returns
void
remove
Cells
remove
Cells
(
t
:
SimpleTileWithModifier
, sprite
:
GameSprite
, cells
:
Iterable
<
Cell
>
)
:
void
Parameters
t:
SimpleTileWithModifier
sprite:
GameSprite
cells:
Iterable
<
Cell
>
Returns
void
subscribe
ToTile
Changes
subscribe
ToTile
Changes
(
bracket
:
ISimpleBracket
, index
:
number
)
:
void
Parameters
bracket:
ISimpleBracket
index:
number
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
update
Cells
update
Cells
(
t
:
SimpleTileWithModifier
, sprite
:
GameSprite
, cells
:
Iterable
<
Cell
>
, wantsToMove
:
RULE_DIRECTION
)
:
void
Parameters
t:
SimpleTileWithModifier
sprite:
GameSprite
cells:
Iterable
<
Cell
>
wantsToMove:
RULE_DIRECTION
Returns
void
Generated using
TypeDoc