Example #1
0
        private void InitializeAIStates()
        {
            Console.WriteLine("Initializing AI");

            aiSystem.AddState("player", new PlayerState(aiSystem, combatSystem, nameSystem));
            aiSystem.AddState("s_w_def", new SimpleWarriorDefensive(aiSystem, combatSystem));
            aiSystem.AddState("s_w_aggro", new SimpleWarriorAggro(aiSystem, combatSystem));
            aiSystem.AddState("stun", new Stun(aiSystem, nameSystem, 1));

            AISchema sWarrior = new AISchema();
            sWarrior.AddState("s_w_def");
            sWarrior.AddState("s_w_aggro");

            combatSystem.AddAISchema("simple_warrior", sWarrior);
        }
Example #2
0
        public void AddAISchema(string schemaKey, AISchema schema)
        {
            System.Diagnostics.Debug.Assert(!schemaMap.ContainsKey(schemaKey));

            schemaMap.Add(schemaKey, schema);
        }