Module: Gamefic::Standard

Extended by:
Scriptable
Includes:
Articles
Defined in:
lib/gamefic-standard.rb,
lib/gamefic-standard/version.rb,
lib/gamefic-standard/actions/go.rb,
lib/gamefic-standard/actions/drop.rb,
lib/gamefic-standard/actions/lock.rb,
lib/gamefic-standard/actions/look.rb,
lib/gamefic-standard/actions/move.rb,
lib/gamefic-standard/actions/close.rb,
lib/gamefic-standard/actions/enter.rb,
lib/gamefic-standard/actions/leave.rb,
lib/gamefic-standard/actions/attack.rb,
lib/gamefic-standard/actions/insert.rb,
lib/gamefic-standard/actions/inventory.rb

Overview

The Gamefic standard library provides a base collection of entities and rules for interactive fiction.

Defined Under Namespace

Modules: Give

Constant Summary collapse

VERSION =
'3.2.4'

Instance Method Summary collapse

Methods included from Articles

#a, #a_, #the, #the_

Instance Method Details

#connect(origin, destination, direction = nil, type: Portal, two_way: true) ⇒ Object



25
26
27
# File 'lib/gamefic-standard.rb', line 25

def connect(origin, destination, direction = nil, type: Portal, two_way: true)
  origin.connect destination, direction: direction, type: type, two_way: two_way
end