🏛️ DELPHI ORACLE DIFFICULTY: Adept Behavioral

Template of the High Ritual

A skeletal ritual framework where subclasses fill in the specific enchantments.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Enchantment // Ritual Structuring
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// DELPHI PATTERN //
unit TemplateMethodRitual;

interface

type
  TBaseRitual = class abstract
  protected
    procedure DrawCircle; virtual;
    procedure OfferSacrifice; virtual; abstract;
    procedure SpeakWords; virtual; abstract;
    procedure SealPortal; virtual;
  public
    procedure ExecuteRitual;
  end;

  TDemonSummoning = class(TBaseRitual)
  protected
    procedure OfferSacrifice; override;
    procedure SpeakWords; override;
  end;

implementation

uses System.SysUtils;

procedure TBaseRitual.DrawCircle;
begin
  Writeln('Drawing the chalk circle of binding.');
end;

procedure TBaseRitual.SealPortal;
begin
  Writeln('Closing the rift and securing the bounds.');
end;

procedure TBaseRitual.ExecuteRitual;
begin
  DrawCircle;
  OfferSacrifice;
  SpeakWords;
  SealPortal;
end;

procedure TDemonSummoning.OfferSacrifice;
begin
  Writeln('Offering a chalice of dark nectar.');
end;

procedure TDemonSummoning.SpeakWords;
begin
  Writeln('Chanting the Abyssal syntax.');
end;

end.

The structure of a ritual must be precise. The Template Method dictates the sequence—Draw Circle, Sacrifice, Speak, Seal—while leaving the specific dark acts to the descendant classes, ensuring the framework remains uncorrupted.

Runic Tags: #delphi #gof #behavioral #enchantment #template-method