-
Notifications
You must be signed in to change notification settings - Fork 0
/
GameControl.cs
45 lines (38 loc) · 1.12 KB
/
GameControl.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wumpus.WinFormsApp
{
static class GameControl
{
static private HighScore highScore = new HighScore();
static public Player Player = new Player();
public static Room GetCurrentRoom()
{
return new Room();
}
public static void MoveThroughDoor(int DoorNumber)
{
// moving through a tunnel counts as a turn
Player.NumberOfTurns += 1;
// you get a gold coin each tunnel
Player.GoldCoins += 1;
}
public static string[] GetAvailableCaves()
{
string[] AvailableCaves = new string[5];
AvailableCaves[0] = "Cave1";
AvailableCaves[1] = "Cave2";
AvailableCaves[2] = "Cave3";
AvailableCaves[3] = "Cave4";
AvailableCaves[4] = "Cave5";
return AvailableCaves;
}
public static List<Score> GetHighScores()
{
return highScore.GetHighScores();
}
}
}