The Visitor
Sending an Inquisitor to inspect various undead wards without modifying their structure.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Visitor
ARCANUM SCHOOL: Divination // Spirit-Walking
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
VISITOR ; Visitor Pattern in MUMPS
;
INSPECT(WARD) ; The Visitor
I WARD="SKELETON_WARD" D REVIEWSKEL
I WARD="ZOMBIE_WARD" D REVIEWZOMBIE
Q
;
REVIEWSKEL W "Inquisitor counts the bones. Everything is orderly.",! Q
REVIEWZOMBIE W "Inquisitor notes the stench. Recommends more ice.",! Q
;
; Usage
; S WARD="ZOMBIE_WARD" D INSPECT(WARD)
Runic Tags:
#behavioral
#visitor
#mumps
#necromancy