예제 #1
0
 public void Start(Game game)
 {
     this.game = game;
     FirstTurn firstturn = new FirstTurn();
     this.NewState = firstturn;
     NewState.Enter(this);
 }
예제 #2
0
파일: GameForm.cs 프로젝트: roric32/inferno
        private void btnStart_Click(object sender, EventArgs e)
        {
            //TODO: Add playername creator.
            List<string> playernames = new List<string>();
            playernames.Add("Player 1");

            for (int x = 0; x < this.numplayers; x++)
            {
                playernames.Add("Player" + (x + 1).ToString());
            }

            Game newGame = new Game(numplayers, difficulty, playernames);
            newGame.NewGame();
        }