Gamalto

Fork me on GitHub

Object Tile Overview

Gamalto. Tile

new Gamalto.Tile()

Basic tile element.

Extends

Members

index :number

Index of the tile if its belong to a tileset.

origin :Gamalto.IPoint

inherited

Gets of sets the origin of the shape.

Inherited From

tag :object

inherited

Utility property to exchange data between objects.

Inherited From

Methods

clone() Gamalto.Rect

inherited

Creates a clone of the current object.

Inherited From
Returns
  • Copy of the object.

containts(that) boolean

inherited

Determines if a rectangle is inscribed in the current rectangle.

Parameters
Name Type Description
that Gamalto.IBox

Rectangle to test.

Inherited From
Returns
  • True if the two rectangles intersect.

equals(that) boolean

inherited

Determines if an object is equal to the current object.

Parameters
Name Type Description
that Gamalto.IBox

Object to test.

Inherited From
Returns
  • True if the two objects are equal.

getIntersecting(that) Gamalto.Rect

inherited

Gets the intersecting rectangle if any.

Parameters
Name Type Description
that Gamalto.IBox

Rectangle to intersect.

Inherited From
Returns
  • Intersecting rectangle or null.

intersects(that) boolean

inherited

Determines if a rectangle intersects with the current rectangle.

Parameters
Name Type Description
that Gamalto.IBox

Rectangle to test.

Inherited From
Returns
  • True if the two rectangles intersect.

pointInShape(x, y) boolean

inherited

Determines if a point lies inside the shape.

Parameters
Name Type Description
x number

Horizontal position of the point to test.

y number

Vertical position of the point to test.

Inherited From
Returns
  • True if the point lies inside the shape.

toBox() Gamalto.Box

inherited

Gets the bounding box of the shape.

Inherited From
Returns
  • Bounding box of the shape.

toString() string

inherited abstract

Converts the object into a string.

Inherited From
Returns
  • string

translate(vec)

inherited

Translates the shape by the vector.

Parameters
Name Type Description
vec Gamalto.IPoint

Vector to use for the translation.

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