Weapon#forEach()

forEach(callback, callbackContext, args) → {Phaser.Weapon}

Call a function on each in-flight bullet in this Weapon.

See forEachExists for more details.

Parameters
Name Type Argument Default Description
callback function

The function that will be called for each applicable child. The child will be passed as the first argument.

callbackContext object

The context in which the function should be called (usually 'this').

args any <optional>
<repeatable>
(none)

Additional arguments to pass to the callback function, after the child item.

Returns

This Weapon instance.

Source code: plugins/weapon/WeaponPlugin.js (Line 490)
doc_phaser
2017-02-14 11:19:54
Comments
Leave a Comment

Please login to continue.