- Source:
Contains functions for interactions, to be called when two objects interact, such as when a bullet strikes an enemy or an enemy strikes a player.
Interfaces
Methods
(static) damageCollision(sourceObject, damagedObject) → {boolean}
- Source:
Damages an object... calls die() if its health is less than or equal to 0
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| sourceObject | Object | Properties
 | ||||||||||||
| damagedObject | Object | Properties
 | 
Returns:
Whether damage succesfully applied
- Type
- boolean
(static) validateDamage(damagedObject, sourceObject) → {boolean}
- Source:
Description
Parameters:
| Name | Type | Description | 
|---|---|---|
| damagedObject | any | |
| sourceObject | any | 
Returns:
- Type
- boolean