-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExit.cs
More file actions
37 lines (33 loc) · 1.13 KB
/
Exit.cs
File metadata and controls
37 lines (33 loc) · 1.13 KB
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
using System;
using System.Collections.Generic;
using System.Text;
namespace RandomizerAlgorithms
{
//This class defines an edge to a specific region and the requirements to traverse it
//Only the destination region is recorded as exits are not necessarily bidirectional; requirements to go one way can be different from requirements to go the other way
class Exit
{
public string ToRegionName; //Name of the region this exit leads to
public string Requirements; //Key item requirements to traverse this edge
//Parameterless constructor
//Just used for initialization
public Exit()
{
ToRegionName = "";
Requirements = "";
}
//Constructor which specifies the to region name
//Requirement initialized to nothing
public Exit(string to)
{
ToRegionName = to;
Requirements = "None";
}
//Constructor which specifies both parameters
public Exit(string to, string requirements)
{
ToRegionName = to;
Requirements = requirements;
}
}
}