The Abstract Factory of Necromantic Cursors
Summon families of related apparitions without specifying their concrete manifestations.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Abstract Factory
ARCANUM SCHOOL: Conjuration // XBase Necromancy
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// FOXPRO PATTERN //
DEFINE CLASS CryptFactory AS Custom
FUNCTION CreateSpectre()
RETURN .NULL.
ENDFUNC
FUNCTION CreateBanshee()
RETURN .NULL.
ENDFUNC
ENDDEFINE
DEFINE CLASS WraithFactory AS CryptFactory
FUNCTION CreateSpectre()
RETURN CREATEOBJECT("WraithSpectre")
ENDFUNC
FUNCTION CreateBanshee()
RETURN CREATEOBJECT("WraithBanshee")
ENDFUNC
ENDDEFINE
DEFINE CLASS WraithSpectre AS Custom
PROCEDURE Moan
? "The wraith specter wails through the dead records."
ENDPROC
ENDDEFINE
DEFINE CLASS WraithBanshee AS Custom
PROCEDURE Shriek
? "The wraith banshee locks the table in agony!"
ENDPROC
ENDDEFINE
The Abstract Factory channels the spirits of related apparitions, guaranteeing that combinations of undead cursors operate in harmony without tying the summoner to their direct forms.
Runic Tags:
#creational
#abstract-factory
#xbase
#necromancy