Sha256: f7beb422b5ffe4edaceb0a07874a9c1efc6d1d8f4d0ce133e53989da460e2763

Contents?: true

Size: 938 Bytes

Versions: 1

Compression:

Stored size: 938 Bytes

Contents

respond :go, Query::Siblings.new(Portal) do |actor, portal|
  actor.parent = portal.destination
  actor.tell "You go #{portal.name}."
  actor.perform "look"
end

respond :go, Query::Text.new() do |actor, string|
  actor.tell "You don't see any exit \"#{string}\" from here."
end

respond :go do |actor|
  actor.tell "Where do you want to go?"
end

xlate "north", :go, "north"
xlate "south", :go, "south"
xlate "west", :go, "west"
xlate "east", :go, "east"
xlate "up", :go, "up"
xlate "down", :go, "down"
xlate "northwest", :go, "northwest"
xlate "northeast", :go, "northeast"
xlate "southwest", :go, "southwest"
xlate "southeast", :go, "southeast"

xlate "n", :go, "north"
xlate "s", :go, "south"
xlate "w", :go, "west"
xlate "e", :go, "east"
xlate "u", :go, "up"
xlate "d", :go, "down"
xlate "nw", :go, "northwest"
xlate "ne", :go, "northeast"
xlate "sw", :go, "southwest"
xlate "se", :go, "southeast"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gamefic-0.2.0 lib/gamefic/import/basics.old/actions/traversal.rb