Esempio n. 1
0
        public AIHandler(IGameAction gameAction, CreatureFaction faction)
        {
            this.gameAction = gameAction;
            this.Faction    = faction;

            if (this.Faction == CreatureFaction.Enemy)
            {
                creatureList = gameAction.GetAllEnemies();
            }
            else if (this.Faction == CreatureFaction.Npc)
            {
                creatureList = gameAction.GetAllNpcs();
            }
        }