Package com.starpoints.game.listener
Interface FigureKillListener
-
- All Known Implementing Classes:
BonusManager
,ItemAntiKill
,ItemBlackBlocker
,ItemDriller
public interface FigureKillListener
Listener interface for figure destruction events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
explodes(Figure f, Thing source, DieReason reason, AnimationInfo animation)
Called, if the figure is destroyed.void
killedEnemy(Figure f, Figure enemy, DieReason reason, AnimationInfo animation)
Called, if the figure kills an enemy
-
-
-
Method Detail
-
killedEnemy
void killedEnemy(Figure f, Figure enemy, DieReason reason, AnimationInfo animation)
Called, if the figure kills an enemy- Parameters:
f
- The killer.enemy
- The enemy that was killed.reason
- The death reason.animation
- The AnimationInfo
-
explodes
boolean explodes(Figure f, Thing source, DieReason reason, AnimationInfo animation)
Called, if the figure is destroyed.- Parameters:
f
- The figure that was killed.source
- The source that killed the figure.reason
- The death reason.animation
- The AnimationInfo- Returns:
- true, if destruction is ok, false, if figure survives the explosion.
-
-