πŸ‘½ APL GLYPHS DIFFICULTY: Adept Structural

The Bridge

Decouple the alien propulsion abstract interface from its arcane physical manifestations.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Bridge
ARCANUM SCHOOL: Conjuration // Dimensional-Bridging
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// APL PATTERN //
:Class PropulsionImp
    βˆ‡ Engage
      :Access Public Shared
    βˆ‡
:EndClass

:Class WarpDrive : PropulsionImp
    βˆ‡ Engage
      :Access Public
      βŽ• ← 'Folding space... βŒΏβ€'
    βˆ‡
:EndClass

:Class HyperDrive : PropulsionImp
    βˆ‡ Engage
      :Access Public
      βŽ• ← 'Piercing dimensions... ⍝⍨'
    βˆ‡
:EndClass

:Class AlienVessel
    :Field Public Engine ← ⍬

    βˆ‡ Make Prop
      :Access Public
      :Implements Constructor
      Engine ← Prop
    βˆ‡

    βˆ‡ Fly
      :Access Public
      Engine.Engage
    βˆ‡
:EndClass

The Bridge pattern divides the abstraction of a vessel’s navigation system from the terrifying reality of its propulsion mechanics. Whether tearing through the fabric of space with a Warp Drive (βŒΏβ€) or slipping through alternate dimensions via a Hyper Drive (⍝⍨), the AlienVessel remains ignorant of the underlying horrors. The bridge ensures that new engines can be developed in the cosmic shipyards without altering the vessel’s psychic controls.

Runic Tags: #apl #structural #alien #bridge #propulsion