class Escapist::RoomDoors
- Escapist::RoomDoors
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
escapist/room_doors.crConstant 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
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
- #bottom : Array(String?)
- #check_all_doors(player : Player, keys : Keys, room_width, room_height)
- #check_doors(player, keys, room_width, room_height, doors, key, horz = true, far = false)
- #clear_entered
- #door_center(doors, index, room_width, room_height, horz = true, far = false)
- #draw(window, room_width, room_height)
- #draw_door(window, doors, index, room_width, room_height, horz = true, far = false)
- #draw_doors(window, doors, room_width, room_height, horz = true, far = false)
- #entered : DoorKey
- #in_door?(player, cx, cy, horz = true, far = false)
- #left : Array(String?)
- #right : Array(String?)
- #section_size
- #spawn_player(player, room_key, room_width, room_height)
- #top : Array(String?)
- #update(player : Player, keys : Keys, room_width, room_height)
Constructor Detail
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)
#