Gamalto

Fork me on GitHub

Object TileGroup Overview

Gamalto. TileGroup

new Gamalto.TileGroup()

Base object to create a tile-based image.

Implements
Extends

Members

data :array.<number>

readonly

List of tile indices representing the image.

height :number

readonly

Vertical size of the image in tiles.

Implements

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

width :number

readonly

Horizontal size of the image in tiles.

Implements

Methods

clone() object

inherited abstract

Clones the object. It will be shallow copy unless otherwise specfied.

Inherited From
Returns
  • New instance of the object. Defaults to null.

setData(data, width, height)

Sets the data needed to render the tile-based image.

Parameters
Name Type Description
data array.<number>

List of tile indices representing the image.

width number

Horizontal size of the image in tiles.

height number

Vertical size of the image in tiles.

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

Documentation generated by JSDoc 3.3.2 on Sun Sep 13 2015 20:13:31 GMT+0200 (CEST)