The Template Method of the Dark Ritual
Define the skeleton of an algorithm in an operation, deferring some steps to subclasses.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Template Method
ARCANUM SCHOOL: Necromancy // Rituals
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// COLDFUSION PATTERN //
component name="Ritual" {
public void function performRitual() {
drawCircle();
chant();
sacrifice(); // Abstract/Deferred
seal();
}
private void function drawCircle() { writeOutput("Circle drawn. "); }
private void function chant() { writeOutput("Chanting begun. "); }
private void function seal() { writeOutput("Entity sealed."); }
// To be overridden
public void function sacrifice() {}
}
component name="BloodRitual" extends="Ritual" {
public void function sacrifice() { writeOutput("Blood offered. "); }
}
The Dark Ritual enforces a strict order: circle, chant, sacrifice, seal. The core class dictates this unyielding skeleton. However, apprentice necromancers can subclass it to define precisely what is sacrificed, customizing the spell without breaking the universal laws of the invocation.
Runic Tags:
#template-method
#coldfusion
#rituals
#skeleton