LinkedList#prev

prev : Object Previous element in the list. Source code: utils/LinkedList.js (Line 32)

LinkedList#next

next : Object Next element in the list. Source code: utils/LinkedList.js (Line 25)

LinkedList#LinkedList

new LinkedList() A basic Linked List data structure. This implementation modifies the prev and next properties of each item added: The prev and next properties must be writable and should not be used for any other purpose. Items cannot be added to multiple LinkedLists at the same time. Only objects can be added. Source code: utils/LinkedList.js (Line 18)

LinkedList#last

last : Object Last element in the list. Source code: utils/LinkedList.js (Line 46)

LinkedList#first

first : Object First element in the list. Source code: utils/LinkedList.js (Line 39)

LinkedList#callAll()

callAll(callback) Calls a function on all members of this list, using the member as the context for the callback.The function must exist on the member. Parameters Name Type Description callback function The function to call. Source code: utils/LinkedList.js (Line 156)

LinkedList#add()

add(item) → {object} Adds a new element to this linked list. Parameters Name Type Description item object The element to add to this list. Can be a Phaser.Sprite or any other object you need to quickly iterate through. Returns object - The item that was added. Source code: utils/LinkedList.js (Line 59)

Line.reflect()

<static> reflect(a, b) → {number} Returns the reflected angle between two lines.This is the outgoing angle based on the angle of Line 1 and the normalAngle of Line 2. Parameters Name Type Description a Phaser.Line The base line. b Phaser.Line The line to be reflected from the base line. Returns number - The reflected angle in radians. Source code: geom/Line.js (Line 722)

Line.intersectsRectangle()

<static> intersectsRectangle(line, rect) → {boolean} Checks for intersection between the Line and a Rectangle shape, or a rectangle-likeobject, with public x, y, right and bottom properties, such as a Sprite or Body. An intersection is considered valid if: The line starts within, or ends within, the Rectangle.The line segment intersects one of the 4 rectangle edges. The for the purposes of this function rectangles are considered 'solid'. Parameters Name Type Description line Phaser.L

Line.intersectsPoints()

<static> intersectsPoints(a, b, e, f, asSegment, result) → {Phaser.Point} Checks for intersection between two lines as defined by the given start and end points.If asSegment is true it will check for line segment intersection. If asSegment is false it will check for line intersection.Returns the intersection segment of AB and EF as a Point, or null if there is no intersection.Adapted from code by Keith Hair Parameters Name Type Argument Default Description a Phaser.Point The sta