API Docs for: 0.1.0
Show:

CG.MapArea Class

Extends CG.Class
Module: CG

CG.MapArea. Support now for name and the bound values.


                        var ma = new CG.MapArea({
                           name: obj.name,
                           bound: new CG.Bound({
                               x: parseInt(obj.x),
                               y: parseInt(obj.y),
                               width: parseInt(obj.width),
                               height: parseInt(obj.height)
                           }),
                           mapOffset: this.position,
                           type: obj.properties.type
                        })
                        

Item Index

Methods

Properties

Methods

init

(
  • options
)

Options: name {string} bound {CG.Bound} mapOffset {CG.Point} type {mixed} false, inner or outer

Parameters:

Returns:

: