The Factory Method
A single rune delegated to manifest the desired ancient Bell Labs artifact.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Factory Method
ARCANUM SCHOOL: Conjuration // Invocation
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// B PATTERN //
/* The ancient spell to create entities, leaving the exact shape to the ether */
manifest_entity(id) {
auto ent[5];
if (id == 1) {
ent[0] = 'WISP';
ent[1] = 10; /* Power */
} else {
ent[0] = 'DEMN';
ent[1] = 99; /* Power */
}
return ent;
}
ritual_of_summoning() {
auto wisp, demon;
wisp = manifest_entity(1);
demon = manifest_entity(2);
/* The entities are bound to our vector */
}
Runic Tags:
#b
#design-pattern
#precursor
#bell-labs-magic
#untyped