private void CreatePlayers() { int row = 0; int col = 0; for (int i = 0; i < state.gridSize.Width; i++) { for (int j = 0; j < state.gridSize.Height; j++) { if (state.types[i][j] == 4) { row = i; col = j; } } } for (int i = 0; i < state.numOfPlayers; i++) { players[i] = new Player(); players[i].cash = 1000; players[i].totalValue = 1000; players[i].row = row; players[i].column = col; players[i].checkPoints = new List<Location>(); } }
public void setPlayer(int index, Player player) { players[index] = player; }