The Adapter
Bridging divergent archaic runes to speak a unified precursor tongue.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Adapter
ARCANUM SCHOOL: Transmutation // Alteration
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// B PATTERN //
/* Ancient rune from an forgotten library */
ancient_strike(force) {
putchar('S'); putchar('T'); putchar('R');
}
/* Modern precursor interface expects 'attack' */
attack(power) {
/* Adapter translates the conceptual invocation */
ancient_strike(power * 2);
}
battle_sequence() {
auto power;
power = 10;
/* The modern code calls attack, invoking the ancient one */
attack(power);
}
Runic Tags:
#b
#design-pattern
#precursor
#bell-labs-magic
#untyped