📚 SMALLTALK SEANCE DIFFICULTY: Adept Behavioral

Memento: Smalltalk

Capture the exact soul state of an entity to restore it after a disastrous possession.

✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Memento
ARCANUM SCHOOL: Chronomancy // Memory Echo
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SMALLTALK PATTERN //
Object subclass: #PastLifeMemento
  instanceVariableNames: 'memories alignment'
  classVariableNames: ''
  package: 'Tekromancy-Seance'.

Object subclass: #PossessedHost
  instanceVariableNames: 'memories alignment'
  classVariableNames: ''
  package: 'Tekromancy-Seance'.

PossessedHost >> saveState [ ^ PastLifeMemento newWith: memories align: alignment ]
PossessedHost >> restore: aMemento [
    memories := aMemento memories.
    alignment := aMemento alignment.
]

Preserve the delicate threads of consciousness so they may be rewritten when the ritual goes awry.

Runic Tags: #smalltalk #behavioral #seance