Mediator
Centralize chaotic communication among rival familiars to prevent escalating arcane feedback loops.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Enchantment // Familiar Coordination
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// D PATTERN //
interface ICovenMediator { void notify(Familiar sender, string event); }
abstract class Familiar {
protected ICovenMediator mediator;
this(ICovenMediator m) { mediator = m; }
}
class Raven : Familiar {
this(ICovenMediator m) { super(m); }
void caw() { mediator.notify(this, "Danger"); }
}
Restricts direct interaction between chaotic familiars, forcing them through a central nexus.
Runic Tags:
#behavioral
#mediator
#dlang
#coordination