🅓 D SORCERY DIFFICULTY: Adept Behavioral

Command

Encapsulate a magical incantation as an object, allowing it to be queued, logged, or undone by the temporal weave.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Command
ARCANUM SCHOOL: Chronomancy // Ritual Queuing
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// D PATTERN //
interface IIncantation { void execute(); void undo(); }

class TeleportCommand : IIncantation {
    override void execute() { /* Teleport forward */ }
    override void undo() { /* Rewind teleportation */ }
}

class ChronoTracker {
    private IIncantation[] history;
    void castSpell(IIncantation inc) {
        inc.execute();
        history ~= inc;
    }
}

Time-shifting arrays holding encapsulated spells for deferred execution or reversion.

Runic Tags: #behavioral #command #dlang #chronomancy