struct Escapist::DoorConfig

Defined in:

escapist/floor_data.cr

Constant Summary

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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(name : Symbol, drow : Int8, dcol : Int8, opposite : Symbol, clockwise : Symbol) #

[View source]

Class Method Detail

def self.bottom #

[View source]
def self.left #

[View source]
def self.right #

[View source]
def self.top #

[View source]

Instance Method Detail

def clockwise : Symbol #

[View source]
def dcol : Int8 #

[View source]
def drow : Int8 #

[View source]
def name : Symbol #

[View source]
def opposite : Symbol #

[View source]