Exemplo n.º 1
0
 public static GameParameters Default(PlayerParameters player1, PlayerParameters player2)
 {
     return(new GameParameters
     {
         Player1 = player1,
         Player2 = player2,
         SearchParameters = SearchParameters.Default,
         Player1Controller = PlayerType.Human,
         Player2Controller = PlayerType.Machine
     });
 }
Exemplo n.º 2
0
 public static GameParameters Default(PlayerParameters player1, PlayerParameters player2)
 {
     return new GameParameters
     {
       Player1 = player1,
       Player2 = player2,
       SearchParameters = SearchParameters.Default,
       Player1Controller = PlayerType.Human,
       Player2Controller = PlayerType.Machine
     };
 }
Exemplo n.º 3
0
        public Player(PlayerParameters p, PlayerType controllerType)
        {
            Name     = p.Name;
            AvatarId = p.AvatarId;
            Type     = controllerType;

            _assignedDamage = new AssignedDamage(this);
            _battlefield    = new Battlefield(this);
            _hand           = new Hand(this);
            _graveyard      = new Graveyard(this);
            _library        = new Library(this);
            _exile          = new Exile(this);
            _deck           = p.Deck;
        }
Exemplo n.º 4
0
        public Player(PlayerParameters p, PlayerType controllerType)
        {
            Name = p.Name;
              AvatarId = p.AvatarId;
              Type = controllerType;

              _assignedDamage = new AssignedDamage(this);
              _battlefield = new Battlefield(this);
              _hand = new Hand(this);
              _graveyard = new Graveyard(this);
              _library = new Library(this);
              _exile = new Exile(this);
              _deck = p.Deck;
        }
Exemplo n.º 5
0
        public static GameParameters Default(PlayerParameters player1, PlayerParameters player2)
        {
            var settings = Settings.Load();

            return(new GameParameters
            {
                Player1 = player1,
                Player2 = player2,
                SearchParameters = settings.GetSearchParameters(),
                Player1Controller = PlayerType.Human,
                Player2Controller = PlayerType.Machine,
                Settings = settings
            });
        }