class

Escapist::RoomDoors

Inherits JSON::Serializable < Reference < Object

Constants

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

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bottom
Source
check_all_doors(player : Player, keys : Keys, room_width, room_height)
Source
check_doors(player, keys, room_width, room_height, doors, key, horz = true, far = false)
Source
clear_entered
Source
door_center(doors, index, room_width, room_height, horz = true, far = false)
Source
draw(window, room_width, room_height)
Source
draw_door(window, doors, index, room_width, room_height, horz = true, far = false)
Source
draw_doors(window, doors, room_width, room_height, horz = true, far = false)
Source
entered
Source
in_door?(player, cx, cy, horz = true, far = false)
Source
left
Source
right
Source
section_size
Source
spawn_player(player, room_key, room_width, room_height)
Source
update(player : Player, keys : Keys, room_width, room_height)
Source

Nested types