The Mediator
Routing astral communications through a central scrying orb.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Divination // Telepathy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SCHEME PATTERN //
(define (make-scrying-orb)
(let ((mages '()))
(define (dispatch msg . args)
(case msg
((register)
(set! mages (cons (car args) mages)))
((broadcast)
(let ((sender (car args))
(text (cadr args)))
(for-each (lambda (m)
(unless (eq? m sender)
(m 'receive text)))
mages)))))
dispatch))
The orb acts as a centralized closure managing a list of registered mages, broadcasting telepathic messages while preventing chaotic point-to-point bindings.
Runic Tags:
#behavioral
#scheme
#message-passing
#state