Constructors
constructor
-
Parameters
-
-
-
rowIndex: number
-
colIndex: number
Properties
colIndex
colIndex: number
rowIndex
rowIndex: number
Methods
_deleteWantsToMove
-
Parameters
Returns boolean
_setWantsToMove
-
Parameters
Returns boolean
addSprite
-
Parameters
Returns boolean
getCollisionLayerWantsToMove
getNeighbor
- getNeighbor(direction: string): null | Cell
-
Parameters
Returns null
|
Cell
getSpriteAndWantsToMoves
- getSpriteAndWantsToMoves(): Map<any, any>
getSpriteByCollisionLayer
hasCollisionWithSprite
- hasCollisionWithSprite(otherSprite: GameSprite): boolean
-
Parameters
Returns boolean
hasSprite
-
Parameters
Returns boolean
removeSprite
-
Parameters
Returns boolean
Protected replaceSpriteInLevel
setWantsToMoveCollisionLayer
-
Parameters
Returns boolean
updateSprite
-
Parameters
Returns boolean
The state of sprites in one position of the current level being played.
This stores all the sprites and which direction those sprites want to move.
The TerminalUI uses this object to render and the GameEngine uses this to maintain the state of one position of the current level.