diff --git a/game/npc-logic.js b/game/npc-logic.js deleted file mode 100644 index 52f5626..0000000 --- a/game/npc-logic.js +++ /dev/null @@ -1,18 +0,0 @@ - -class NPCStateMachine { - constructor(states) { - this.states = states; - this.current = 'idle'; - } - update(context) { - const state = this.states[this.current]; - for (const transition of state.transitions) { - if (transition.condition(context)) { - this.current = transition.target; - console.log(`NPC transitioned to ${this.current}`); - break; - } - } - } -} -export default NPCStateMachine; diff --git a/scripts/guardrails.js b/reference/guardrails.js similarity index 55% rename from scripts/guardrails.js rename to reference/guardrails.js index 9e532b2..0be8e14 100644 --- a/scripts/guardrails.js +++ b/reference/guardrails.js @@ -1,3 +1,10 @@ +/** + * ╔══════════════════════════════════════════════════════════════╗ + * ║ DORMANT PROTOTYPE ║ + * ║ This file is not part of the active architecture. ║ + * ║ Preserved for reference only. See active game logic elsewhere. ║ + * ╚══════════════════════════════════════════════════════════════╝ + */ /** * Symbolic Guardrails for The Beacon diff --git a/reference/npc-logic.js b/reference/npc-logic.js new file mode 100644 index 0000000..c0e01cc --- /dev/null +++ b/reference/npc-logic.js @@ -0,0 +1,25 @@ +/** + * ╔══════════════════════════════════════════════════════════════╗ + * ║ DORMANT PROTOTYPE ║ + * ║ This file is not part of the active architecture. ║ + * ║ Preserved for reference only. See active game logic elsewhere. ║ + * ╚══════════════════════════════════════════════════════════════╝ + */ + +class NPCStateMachine { + constructor(states) { + this.states = states; + this.current = 'idle'; + } + update(context) { + const state = this.states[this.current]; + for (const transition of state.transitions) { + if (transition.condition(context)) { + this.current = transition.target; + console.log(`NPC transitioned to ${this.current}`); + break; + } + } + } +} +export default NPCStateMachine;