Table of Contents

Doom Interface

Stone Walking Buff (Doom Implementation)

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.

Description

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.

Interface Definition

```java public interface Doom extends NamedEntityKind {

  void onHeroDeath();

} ```

Implementations

Classes implementing Doom must:

Known Implementations

Code References

Usage in Game Logic

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();
  }

} ```