public AIAgent(Monster monster) { this.monster = monster; string ainame = this.monster.Define.AI; if (string.IsNullOrEmpty(ainame)) { ainame = AIMonsterPassive.ID; } switch (ainame) { case AIMonsterPassive.ID: this.ai = new AIMonsterPassive(monster); break; case AIBoss.ID: this.ai = new AIBoss(monster); break; } }
public AIAgent(Creature mons) { this.mons = mons; string ainame = mons.Define.AI; if (string.IsNullOrEmpty(ainame)) { ainame = AIMonsterPassive.ID; } switch (ainame) { case AIMonsterPassive.ID: this.ai = new AIMonsterPassive(mons); break; case AIBoss.ID: this.ai = new AIBoss(mons); break; case AIPet.ID: this.ai = new AIPet(mons); break; } }