示例#1
0
 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();
 }
示例#2
0
 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();
 }
示例#3
0
 public HighScores()
 {
     InitializeComponent();
     highscores = new HighScoreManagement();
 }