Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • Cell

Index

Constructors

constructor

Properties

colIndex

colIndex: number

rowIndex

rowIndex: number

spriteBitSet

spriteBitSet: SpriteBitSet

Methods

_deleteWantsToMove

_setWantsToMove

addSprite

clearWantsToMove

fromSnapshot

getCollisionLayerWantsToMove

getCollisionLayers

getNeighbor

  • getNeighbor(direction: string): null | Cell

getSpriteAndWantsToMoves

  • getSpriteAndWantsToMoves(): Map<any, any>

getSpriteByCollisionLayer

getSprites

getSpritesAsSet

getWantsToMove

hasCollisionWithSprite

  • hasCollisionWithSprite(otherSprite: GameSprite): boolean

hasSprite

removeSprite

Protected replaceSpriteInLevel

setWantsToMoveCollisionLayer

toKey

  • toKey(): string

toSnapshot

toString

  • toString(): string

updateSprite

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc