private void React(WiccanRede.AI.AiEvents action) { switch (action) { case AiEvents.enemyLost: ChangeState(this["Stand"]); break; case AiEvents.ready: ChangeState(this["Stand"]); break; case AiEvents.lowHP: ChangeState(this["Defense"]); break; case AiEvents.disadvantage: ChangeState(this["Defense"]); break; case AiEvents.talk: ChangeState(this["Talk"]); break; default: Logging.Logger.AddWarning("FSM: Villager, Neznama akce " + action.ToString()); break; } }
internal void React(WiccanRede.AI.AiEvents action) { switch (action) { case AiEvents.enemyKilled: ChangeState(this["Go"]); break; case AiEvents.enemySeen: ChangeState(this["Conflict"]); break; case AiEvents.enemyLost: ChangeState(this["Go"]); break; case AiEvents.ready: ChangeState(this["Go"]); break; case AiEvents.weakness: ChangeState(this["Weakness"]); break; case AiEvents.lowHP: ChangeState(this["Defense"]); break; case AiEvents.disadvantage: ChangeState(this["Defense"]); break; case AiEvents.newTask: ChangeState(this["Go"]); break; case AiEvents.run: ChangeState(this["RunAway"]); break; case AiEvents.seek: ChangeState(this["Seek"]); break; default: Logging.Logger.AddWarning("FSM: Neznama akce " + action.ToString()); break; } }