Package com.prineside.tdi2.events.game
Class GiveDamageToEnemy
java.lang.Object
com.prineside.tdi2.events.StoppableEvent
com.prineside.tdi2.events.CancellableStoppableEvent
com.prineside.tdi2.events.game.GiveDamageToEnemy
- All Implemented Interfaces:
Event
(B) Triggered by EnemySystem.giveDamage() before the actual damage is calculated and any changes
Some damage adjustments are made at this point (reduced damage from Abilities to bosses) and
and the system has checked whether the tower can attack this enemy.
Most (if not all) of the fields can be adjusted by the listeners.
Note: damage is not final and is not yet affected by the enemy's immunities.
Note: if efficiency is NORMAL, it will be calculated automatically.
If cancelled, damage won't be given.
Important note: final damage is not calculated yet, use DamageRecord.getDamage()
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.prineside.tdi2.events.CancellableStoppableEvent
cancel, isCancelled
Methods inherited from class com.prineside.tdi2.events.StoppableEvent
isStopped, stop
-
Constructor Details
-
GiveDamageToEnemy
-
-
Method Details
-
getRecord
-