ExtraDirections
MenuAdventures.ExtraDirectionsMenuAdventures.ExtraDirections.DownMenuAdventures.ExtraDirections.InsideMenuAdventures.ExtraDirections.NorthEastMenuAdventures.ExtraDirections.NorthWestMenuAdventures.ExtraDirections.OutsideMenuAdventures.ExtraDirections.SouthEastMenuAdventures.ExtraDirections.SouthWestMenuAdventures.ExtraDirections.Up
MenuAdventures.ExtraDirections — ModuleMenuAdventures.ExtraDirectionsA sub-module with a bunch of extra directions
julia> using MenuAdventures
julia> using MenuAdventures.Testing
julia> using MenuAdventures.ExtraDirections
julia> @universe struct Universe <: AbstractUniverse
end;
julia> @noun struct Room <: AbstractRoom
already_lit::Bool = true
end;
julia> @noun struct Person <: Noun
end;
julia> cd(joinpath(pkgdir(MenuAdventures), "test", "ExtraDirections")) do
check_choices() do interface
you = Person(
"Brandon",
grammatical_person = second_person,
indefinite_article = "",
)
center_room = Room("central room")
universe = Universe(you, interface = interface)
universe[center_room, you] = Containing()
universe[center_room, Room("room")] = West()
universe[center_room, Room("room")] = NorthWest()
universe[center_room, Room("room")] = North()
universe[center_room, Room("room")] = NorthEast()
universe[center_room, Room("room")] = East()
universe[center_room, Room("room")] = SouthEast()
universe[center_room, Room("room")] = South()
universe[center_room, Room("room")] = SouthWest()
universe[center_room, Room("room")] = Up()
universe[center_room, Room("room")] = Down()
universe[center_room, Room("room")] = Inside()
universe[center_room, Room("room")] = Outside()
universe
end
end
trueMenuAdventures.ExtraDirections.Down — TypeDown()A Direction.
MenuAdventures.ExtraDirections.Inside — TypeInside()A Direction.
MenuAdventures.ExtraDirections.NorthEast — TypeNorthEast()A Direction.
MenuAdventures.ExtraDirections.NorthWest — TypeNorthWest()A Direction.
MenuAdventures.ExtraDirections.Outside — TypeOutside()A Direction.
MenuAdventures.ExtraDirections.SouthEast — TypeSouthEast()A Direction.
MenuAdventures.ExtraDirections.SouthWest — TypeSouthWest()A Direction.
MenuAdventures.ExtraDirections.Up — TypeUp()A Direction.