-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAdventure.cs
39 lines (36 loc) · 1.06 KB
/
Adventure.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
using System;
using CsdTextAdventure.Rooms;
namespace CsdTextAdventure
{
public class Adventure
{
private Room _room;
public string Begin()
{
_room = new Loo();
return "Welcome to our new Adventure!" + Environment.NewLine + "#############################";
}
public string tell(string input)
{
if (input == "quit")
{
return "Bye bye";
} else if (input == "look around")
{
return _room.DetailedDescription();
} else if (input == "look at magazines")
{
return
"You see a very much used Micky Mouse magazine, a very old and unusable playboy and what seems to be a scrum guide 2009 in mint condition.";
} else if (input == "go through door")
{
_room = new Restroom();
return _room.Description();
}
else
{
return "What????";
}
}
}
}