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(pull : JSON::PullParser)
Sourcenew(top : Array(Nil | String) = [] of DoorKey, left : Array(Nil | String) = [] of DoorKey, bottom : Array(Nil | String) = [] of DoorKey, right : Array(Nil | String) = [] of DoorKey)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
bottom
Sourcecheck_all_doors(player : Player, keys : Keys, room_width, room_height)
Sourcecheck_doors(player, keys, room_width, room_height, doors, key, horz = true, far = false)
Sourceclear_entered
Sourcedoor_center(doors, index, room_width, room_height, horz = true, far = false)
Sourcedraw(window, room_width, room_height)
Sourcedraw_door(window, doors, index, room_width, room_height, horz = true, far = false)
Sourcedraw_doors(window, doors, room_width, room_height, horz = true, far = false)
Sourceentered
Sourcein_door?(player, cx, cy, horz = true, far = false)
Sourceleft
Sourceright
Sourcesection_size
Sourcespawn_player(player, room_key, room_width, room_height)
Sourcetop
Sourceupdate(player : Player, keys : Keys, room_width, room_height)
Source