struct

Escapist::DoorConfig

Inherits Struct < Value < Object

Constants

All = [Top, Left, Bottom, Right]
Bottom = DoorConfig.new(:bottom, 1_i8, 0_i8, :top, :left)
Left = DoorConfig.new(:left, 0_i8, -1_i8, :right, :top)
Right = DoorConfig.new(:right, 0_i8, 1_i8, :left, :bottom)
Top = DoorConfig.new(:top, -1_i8, 0_i8, :bottom, :right)

Constructors

new(name : Symbol, drow : Int8, dcol : Int8, opposite : Symbol, clockwise : Symbol)
Source

Class methods

bottom
Source
left
Source
right
Source

Instance methods

clockwise
Source
dcol
Source
drow
Source
name
Source
opposite
Source