public AiPlayer(PlayerData playerData, Space space) { this.playerData = playerData; this.space = space; playerData.IsHumanPlayer = false; lastDayAtk = new AttackDictionary(); todaysAtk = new AttackDictionary(); }
public void PerformNextMovement() { PrepareTactileInformation(); foreach (TactileInformation planet in tactileInfo) { while (PerformMovementOnPlanet(planet)) ; } AttackDictionary helper = lastDayAtk; lastDayAtk = todaysAtk; todaysAtk = helper; todaysAtk.Clear(); }
//seralization needs a default public constructor public AiPlayer() { lastDayAtk = new AttackDictionary(); todaysAtk = new AttackDictionary(); }
void SetAttack(int Numver) { attackBace = AttackDictionary.CreateAttack(Numver); }