Exemplo n.º 1
0
        public AIPlayer(Player Player, Battle Engine)
        {
            if (!Player.IsAIControlled)
                throw new Exception("ERROR");
            this.Player = Player;
            this._battle = Engine;

            if (this.Player == _battle.player1)
                Opponent = _battle.player2;
            else
                Opponent = _battle.player1;
        }
Exemplo n.º 2
0
        public void EndTurn(Player player1, Player player2)
        {
            player1.ClearNotificationList();
            player2.ClearNotificationList();
            if (this.Player == player1)
            {
                this.Player = player2;
            }
            else if (this.Player == player2)
            {
                this.Player = player1;
            }
            if (this.Count > 1)
            {
                this.Player.ManaTotal++;
            }
            this.Player.ManaCurrent = this.Player.ManaTotal;

            this.IncrementCount();


        }
Exemplo n.º 3
0
 public void SetPlayer(Player player)
 {
     this.Player = player;
     this.Player.Turn.IncrementCount();
     this.IncrementCount();
 }