Class: SystemDetection

SystemDetection

A detection of the game

new SystemDetection (json)

Name Type Description
json Object optional Json object describing the detection
Properties:
Name Type Description
boxes Array.<Array.<number>> List of boxes for detection

Methods

read (json)

Read the JSON associated to the detection
Name Type Description
json Object Json object describing the detection

checkCollision (sender, object)boolean

Check the collision between sender and object
Name Type Description
sender MapObject The object that sent test collision
object MapObject The object to test the collision
Returns:
Type Description
boolean

getBoundingBoxes (sender)Array.<Array.<number>>

Get the sender bounding box
Name Type Description
sender MapObject The object that sent test collision
Returns:
Type Description
Array.<Array.<number>>