Class GiveDamageToEnemy

java.lang.Object
com.prineside.tdi2.events.StoppableEvent
com.prineside.tdi2.events.game.GiveDamageToEnemy
All Implemented Interfaces:
Event

public final class GiveDamageToEnemy extends StoppableEvent
(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 Details

    • GiveDamageToEnemy

      public GiveDamageToEnemy(DamageRecord record)
  • Method Details

    • getRecord

      public DamageRecord getRecord()
    • isCancelled

      public boolean isCancelled()
    • setCancelled

      public void setCancelled(boolean cancelled)