🦊 FOXPRO APPARITION DIFFICULTY: Adept Structural

The Decorator of Spectral Auras

Attach additional responsibilities to an apparition dynamically.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Decorator
ARCANUM SCHOOL: Illusion // Aura Shaping
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// FOXPRO PATTERN //
DEFINE CLASS BaseSpirit AS Custom
    FUNCTION Manifest()
        RETURN "A frail spirit"
    ENDFUNC
ENDDEFINE

DEFINE CLASS SpiritDecorator AS Custom
    oSpirit = .NULL.

    PROCEDURE Init(oRef)
        THIS.oSpirit = oRef
    ENDPROC

    FUNCTION Manifest()
        RETURN THIS.oSpirit.Manifest()
    ENDFUNC
ENDDEFINE

DEFINE CLASS FlamingAura AS SpiritDecorator
    FUNCTION Manifest()
        RETURN DODEFAULT() + ", wreathed in hellfire"
    ENDFUNC
ENDDEFINE

DEFINE CLASS IcyGrasp AS SpiritDecorator
    FUNCTION Manifest()
        RETURN DODEFAULT() + ", freezing the cursor space"
    ENDFUNC
ENDDEFINE

Rather than defining a rigid subclass for every possible permutation of spectral phenomena, the Decorator envelops the base entity in new layers of dark energy dynamically at runtime.

Runic Tags: #structural #decorator #wrapping #extensions