-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGameMap.cs
More file actions
39 lines (32 loc) · 774 Bytes
/
Copy pathGameMap.cs
File metadata and controls
39 lines (32 loc) · 774 Bytes
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
using System;
public class GameMap
{
private int width, height;
private Player player;
public GameMap(int width, int height, Player player)
{
this.width = width;
this.height = height;
this.player = player;
}
public void DisplayCurrentRoom()
{
System.Console.WriteLine("You are in a dark room.");
}
public void Look()
{
System.Console.WriteLine("You look around but see nothing of interest.");
}
public void TakeItem()
{
System.Console.WriteLine("There is nothing to take.");
}
public void Move()
{
System.Console.WriteLine("You move to another room.");
}
public void DisplayMap()
{
System.Console.WriteLine("Map: [X]");
}
}