Beispiel #1
0
 public AiPlayer(PlayerData playerData, Space space)
 {
     this.playerData = playerData;
     this.space = space;
     playerData.IsHumanPlayer = false;
     lastDayAtk = new AttackDictionary();
     todaysAtk = new AttackDictionary();
 }
Beispiel #2
0
    public void PerformNextMovement()
    {
        PrepareTactileInformation();

        foreach (TactileInformation planet in tactileInfo) {
            while (PerformMovementOnPlanet(planet))
                ;
        }

        AttackDictionary helper = lastDayAtk;
        lastDayAtk = todaysAtk;
        todaysAtk = helper;
        todaysAtk.Clear();
    }
Beispiel #3
0
 //seralization needs a default public constructor
 public AiPlayer()
 {
     lastDayAtk = new AttackDictionary();
     todaysAtk = new AttackDictionary();
 }
Beispiel #4
0
 void SetAttack(int Numver)
 {
     attackBace = AttackDictionary.CreateAttack(Numver);
 }