⚙️ ALLOY RUNE DIFFICULTY: Adept Behavioral

The State: Fluid Paradigms

Allow an object to alter its behavior when its internal state changes.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: State
ARCANUM SCHOOL: Transmutation // Paradigm-Shift
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// ALLOY PATTERN //
abstract sig Paradigm {
  manifestation: lone RealityWarp
}

sig CyberParadigm, AstralParadigm extends Paradigm {}

sig SentientConstruct {
  currentParadigm: one Paradigm,
  output: lone RealityWarp
}
{
  output = currentParadigm.manifestation
}

sig RealityWarp {}

pred execute_shift[c: SentientConstruct] {
  some c.output
}

run execute_shift for 3

The State: Fluid Paradigms

A SentientConstruct behaves radically differently depending on its currentParadigm. By constraining the construct’s output to directly match the manifestation of its internal state, we define a perfectly polymorphic entity governed entirely by its inner alignment.

Runic Tags: #behavioral #state #polymorphism