//used for player to move to a certain room in the cave //Game control will call this object public void Move(String direction) { Sound s1 = new Sound(); this.turns++; //call the map object to get the current room number //s1.footsteps(); if (this.goldMap > 0) { this.gold++; this.goldMap--; s1.buttonPressed(); } updateScore(); using (var form = new HintForm()) { var result = form.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { } } map.movePlayer(direction); map.closeBy(direction); }
//used for player to move to a certain room in the cave //Game control will call this object public void Move(String direction) { Sound s1 = new Sound(); this.turns++; //call the map object to get the current room number //s1.footsteps(); if (this.goldMap > 0) { this.gold++; this.goldMap--; //s1.buttonPressed(); } Console.WriteLine(questions.giveHint()); //if wumpus is nearby, print to console wumpus is nearby and play sound map.movePlayer(direction); map.closeBy(direction); updateScore(); //return 0; return new number based on what direction }