MeleeAttack Class
An object describing a melee attack.
Constructor
MeleeAttack
(
-
scanShape
-
damageAmount
-
damageType
Parameters:
-
scanShape
Box | Circle | PolygonObject representing the area affected by the melee attack.
-
damageAmount
NumberThe amount of damage dealt by the melee attack.
-
damageType
StringThe type of damage dealt by the melee attack. This type can be 'c' for cyan, 'm' for magenta, 'y' for yellow and 'w' for white.
Item Index
Methods
getDamageAmount
()
Number
Returns:
Number:
getDamageType
()
String | Null
Returns:
String | Null:
Returns 'c', 'm', 'y' or 'w' if a correct damage type was set. If no damage type was set, it'll return null.
setDamageAmount
(
-
damageAmount
Parameters:
-
damageAmount
NumberThe amount of damage dealt by the melee attack.
setDamageType
(
-
damageType
Parameters:
-
damageType
StringThe type of damage dealt by the melee attack. This type can be 'c' for cyan, 'm' for magenta, 'y' for yellow and 'w' for white.