The Strategy Incantation in Simula
Swappable algorithms bound within discrete artifacts of power.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Strategy
ARCANUM SCHOOL: Evocation // Tactics
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SIMULA PATTERN //
Begin
Class Strategy;
Virtual: Procedure Execute;
Begin
End;
Class Context(strat); Ref(Strategy) strat;
Begin
Procedure PerformMagic;
Begin
strat.Execute;
End;
End;
End;
There is more than one way to flay a demon. Strategy extracts algorithms from their host, placing each in its own distinct grimoire. The caster can dynamically select which rite to employ at runtime.
Runic Tags:
#simula
#gof
#behavioral
#tactics