The State of the Shifting Monolith
Alter the monolith's behavior profoundly as its internal dimensional phase changes.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: State
ARCANUM SCHOOL: Transmutation // Phase-Shifting
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
GET "libhdr"
MANIFEST $(
PHASE_DORMANT = 1
PHASE_ACTIVE = 2
PHASE_OVERLOAD = 3
$)
GLOBAL $(
MonolithPhase : 230
$)
LET Interact() BE $(
SWITCHON MonolithPhase INTO $(
CASE PHASE_DORMANT:
writef("The monolith is cold and silent. Touching it awakens it.*n")
MonolithPhase := PHASE_ACTIVE
ENDCASE
CASE PHASE_ACTIVE:
writef("The monolith hums with void energy. Touching it overloads it!*n")
MonolithPhase := PHASE_OVERLOAD
ENDCASE
CASE PHASE_OVERLOAD:
writef("The monolith discharges violently! It returns to slumber.*n")
MonolithPhase := PHASE_DORMANT
ENDCASE
$)
$)
LET START() BE $(
MonolithPhase := PHASE_DORMANT
Interact()
Interact()
Interact()
Interact()
$)
Runic Tags:
#state
#phases
#void