public void CreateAI(BoardWar myBoard, BoardWar theirBoard, int type, int difficulty = 0) { switch (type) { case (int)PersistData.GT.Training: AI = new TrainingAI(myBoard, theirBoard, this); break; case (int)PersistData.GT.Challenge: AI = new TrainingAI(myBoard, theirBoard, this); break; default: AI = new AIversion2(myBoard, theirBoard, this, difficulty); break; } if (type == (int)PersistData.GT.Training && difficulty == 2) { AI.forceState(3); } if (PD.GetSaveData().savedOptions["easymode"] == 1) { AI.EasyModo(); AI.boostDifficulty(difficulty); } }
public void LevelUpAI(int boost = 1) { AI.boostDifficulty(boost); }