class Escapist::RoomDoors

Included Modules

Defined in:

escapist/room_doors.cr

Constant Summary

Color = SF::Color.new(13, 13, 13)
Depth = 96
OutlineColor = SF::Color.new(102, 102, 102)
OutlineThickness = 8
SectionTiles = 15
TileSize = 128
Width = 256

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(top : Array(Nil | String) = [] of DoorKey, left : Array(Nil | String) = [] of DoorKey, bottom : Array(Nil | String) = [] of DoorKey, right : Array(Nil | String) = [] of DoorKey) #

[View source]

Instance Method Detail

def bottom : Array(String?) #

[View source]
def check_all_doors(player : Player, keys : Keys, room_width, room_height) #

[View source]
def check_doors(player, keys, room_width, room_height, doors, key, horz = true, far = false) #

[View source]
def clear_entered #

[View source]
def door_center(doors, index, room_width, room_height, horz = true, far = false) #

[View source]
def draw(window, room_width, room_height) #

[View source]
def draw_door(window, doors, index, room_width, room_height, horz = true, far = false) #

[View source]
def draw_doors(window, doors, room_width, room_height, horz = true, far = false) #

[View source]
def entered : DoorKey #

[View source]
def in_door?(player, cx, cy, horz = true, far = false) #

[View source]
def left : Array(String?) #

[View source]
def right : Array(String?) #

[View source]
def section_size #

[View source]
def spawn_player(player, room_key, room_width, room_height) #

[View source]
def top : Array(String?) #

[View source]
def update(player : Player, keys : Keys, room_width, room_height) #

[View source]