The Mediator of the Guild Council
Centralize complex communication between rival mage factions through a neutral arbiter.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Enchantment // Diplomacymancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// PROLOG PATTERN //
% Factions
faction(pyromancers).
faction(cryomancers).
faction(aeromancers).
% The Mediator (The High Council) routes messages
council_mediate(Sender, Receiver, Message) :-
faction(Sender),
faction(Receiver),
format('Council routing message from ~w to ~w: "~w"', [Sender, Receiver, Message]).
% Factions send messages only through the mediator
send_message(Sender, Receiver, Message) :-
council_mediate(Sender, Receiver, Message).
% ?- send_message(pyromancers, cryomancers, 'Let us combine to make steam.').
% "Council routing message from pyromancers to cryomancers: "Let us combine to make steam.""
Runic Tags:
#mediator
#behavioral
#prolog
#communication
#council