public Game(Cave kave) { InitializeComponent(); this.cave = kave; this.scores = new HighScoreManagement(); map = new HuntTheWumpus.Map(2, 2, cave); game = new GameControl(); player = new Player("Charlie", cave, map); sound = new Sound(); highscores = new HighScores(); updateConnections(); }
public Game(Cave kave) { InitializeComponent(); this.cave = kave; this.scores = new HighScoreManagement(); map = new HuntTheWumpus.Map(2, 2, cave); game = new GameControl(); //using(MainMenu mainMenu = new MainMenu()) //{ // if(mainMenu.ShowDialog() == DialogResult.OK) // { // this.playerName = mainMenu.getPlayerName; // } //} player = new Player(playerName, cave, map); sound = new Sound(); highscores = new HighScores(); updateConnections(); showRoom(); }
public HighScores() { InitializeComponent(); highscores = new HighScoreManagement(); }