The State
An elemental familiar shifting its behavior when transitioning from water to ice.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: State
ARCANUM SCHOOL: Transmutation // Phase Shifting
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
coclass 'Familiar'
create =: 3 : 'state =: ''Water'''
freeze =: 3 : 'state =: ''Ice'''
melt =: 3 : 'state =: ''Water'''
attack =: 3 : 0
if. state -: 'Water' do. 'Splash!'
elseif. state -: 'Ice' do. 'Pierce!'
end.
)
The familiar changes its core output based on an internal mutable state value.
Runic Tags:
#state
#transitions
#behavior
#familiar