🗼 EIFFEL CONTRACT DIFFICULTY: Adept Behavioral

The Mediator Coven

Centralizing complex communications between warlocks.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Enchantment // Telepathy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// EIFFEL PATTERN //
deferred class
    COVEN_MEDIATOR

feature
    notify (sender: WARLOCK; event: STRING)
        deferred
        end
end

class
    WARLOCK

feature
    mediator: COVEN_MEDIATOR

    send_signal
        do
            mediator.notify (Current, "DANGER")
        end
end

The Mediator centralizes the telepathic web of a coven. Warlocks only speak to the Mediator, strictly bounding the chaotic N-to-N communication graph.

Runic Tags: #behavioral #mediator #eiffel