상속: IPlayer
예제 #1
0
        public MainWindow()
        {
            InitializeComponent();

            var player1 = new Player("Me", null);
            var player2 = new Player("Bender", new DummyStrategy());
            //var player2 = new Player("Skynet", new KamikazeStrategy());
            //var player2 = new Player("Wall-E", new CautiousStrategy());

            var game = new Game(player1, player2);

            vm = new GameViewModel(game, player1, player2);

            DataContext = vm;

            vm.BeginOfTurn();
        }
예제 #2
0
 public void Setup()
 {
     Player = new Player();
 }
예제 #3
0
 public GameBuilder withOpponentPlayer(Player player)
 {
     opponentPlayer = player;
     return this;
 }
예제 #4
0
 public GameBuilder withActivePlayer(Player player)
 {
     activePlayer = player;
     return this;
 }