Doom Interface is a marker interface in Remixed Dungeon that identifies “doom-type” buffs - buffs that trigger special effects when the hero dies while affected by them.
The Doom interface extends NamedEntityKind and defines a single method `onHeroDeath()` that is called when the hero dies while the buff is active. This allows buffs to implement custom death effects, such as special game over messages, badge validation, or unique death reasons.
```java public interface Doom extends NamedEntityKind {
void onHeroDeath();
} ```
Classes implementing Doom must:
When the hero dies, the game checks all active buffs for Doom implementations: ```java for (Buff buff : hero.buffs()) {
if (buff instanceof Doom) {
((Doom) buff).onHeroDeath();
}
} ```