🦊 FOXPRO APPARITION DIFFICULTY: Apprentice Structural

The Facade of the Dark Citadel

Provide a unified interface to a set of interfaces in the necromantic subsystem.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Facade
ARCANUM SCHOOL: Abjuration // Gateway Sealing
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// FOXPRO PATTERN //
DEFINE CLASS CitadelFacade AS Custom
    oSummoning = .NULL.
    oBinding = .NULL.
    oHarvesting = .NULL.

    PROCEDURE Init
        THIS.oSummoning = CREATEOBJECT("SummoningSubsystem")
        THIS.oBinding = CREATEOBJECT("BindingSubsystem")
        THIS.oHarvesting = CREATEOBJECT("HarvestingSubsystem")
    ENDPROC

    PROCEDURE RaiseArmy()
        THIS.oSummoning.Chant()
        THIS.oBinding.SealRunes()
        THIS.oHarvesting.ReapSouls()
        ? "The dead march upon the living."
    ENDPROC
ENDDEFINE

DEFINE CLASS SummoningSubsystem AS Custom
    PROCEDURE Chant
    ENDPROC
ENDDEFINE

DEFINE CLASS BindingSubsystem AS Custom
    PROCEDURE SealRunes
    ENDPROC
ENDDEFINE

DEFINE CLASS HarvestingSubsystem AS Custom
    PROCEDURE ReapSouls
    ENDPROC
ENDDEFINE

The Facade obscures the hideous complexities of managing multiple terrifying subsystems. To raise an army, one simply pulls the grand lever of the Dark Citadel, rather than directly coercing individual sects of warlocks.

Runic Tags: #structural #facade #simplification #sub-systems