The Strategy
Swappable targeting algorithms for a homing magic missile, allowing the caster to switch between tracking heat or tracking magic auras.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Strategy
ARCANUM SCHOOL: Evocation // Prose-Based Spellcasting
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// INFORM7 PATTERN //
A targeting-mode is a kind of value. The targeting-modes are heat-seeking and aura-tracking.
The magic missile is a thing. The magic missile has a targeting-mode called the flight path.
To launch the magic missile:
if the flight path of the magic missile is heat-seeking:
say "The missile arcs toward the warmest body in the room!";
otherwise if the flight path of the magic missile is aura-tracking:
say "The missile aggressively locks onto the nearest magical resonance!"
To switch the targeting of the missile to (mode - a targeting-mode):
now the flight path of the magic missile is the mode;
say "The missile's rune shifts, changing its targeting algorithm."
Runic Tags:
#behavioral
#evocation
#strategy
#inform7