The Visitor
Projecting astral forms to analyze diverse mystical nodes without altering them.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Visitor
ARCANUM SCHOOL: Divination // Astral Projection
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SCHEME PATTERN //
(define (accept node visitor)
(case (car node)
((spell) (visitor 'visit-spell (cdr node)))
((ward) (visitor 'visit-ward (cdr node)))))
(define (power-analyzer msg data)
(case msg
((visit-spell) (display "Analyzing spell power\n"))
((visit-ward) (display "Analyzing ward integrity\n"))))
(accept '(spell "Fireball" 50) power-analyzer)
The visitor separates the operations from the elemental structures, allowing mages to define new scrying techniques over existing spell taxonomies.
Runic Tags:
#behavioral
#scheme
#pattern-matching
#dispatch