The Facade: The Ritual Master
Providing a unified interface to a set of interfaces in a subsystem.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Facade
ARCANUM SCHOOL: Abjuration // Simplification
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CRYSTAL PATTERN //
class IncenseBurner
def ignite
puts "Incense ignited. The air fills with smoke."
end
end
class ChalkDrawer
def draw_circle
puts "A glowing pentagram is drawn on the floor."
end
end
class DemonSummoner
def call_forth
puts "A minor imp steps through the veil."
end
end
class RitualFacade
@burner = IncenseBurner.new
@drawer = ChalkDrawer.new
@summoner = DemonSummoner.new
def perform_summoning
puts "--- Beginning Ritual ---"
@burner.ignite
@drawer.draw_circle
@summoner.call_forth
puts "--- Ritual Complete ---"
end
end
master = RitualFacade.new
master.perform_summoning
The inner workings of high magic are dangerous and complex. The Facade provides a single, simple incantation—a Ritual Master—who orchestrates the chaotic subsystems of burning, drawing, and summoning behind a protective veil.
Runic Tags:
#structural
#facade
#crystal
#ritual