Exemplo n.º 1
0
    public void SetupRooms()
    {
        NamedGraphNode <string>
        NorthRoom              = new NamedGraphNode <string>("North Room"),
            NorthEastRoom      = new NamedGraphNode <string>("North East Room"),
            NorthSouthCorridor = new NamedGraphNode <string>("North South Corridor"),
            SouthernKitchen    = new NamedGraphNode <string>("Southern Kitchen"),
            SouthWestWing      = new NamedGraphNode <string>("South West Wing");

        NorthRoom
        .AddNeighbour(NorthEastRoom)
        .AddNeighbour(NorthSouthCorridor);
        SouthernKitchen
        .AddNeighbour(NorthSouthCorridor)
        .AddNeighbour(SouthWestWing);
        _CurrentRoom = NorthSouthCorridor;
    }