class Escapist::FloorData
- Escapist::FloorData
- Reference
- Object
Defined in:
escapist/floor_data.crConstant Summary
-
FirstRoomKey =
"start"
-
MaxRooms =
5
Constructors
Class Method Summary
Instance Method Summary
- #add_cols(new_col_index, door_section_index, door, room)
- #add_room(row_index, col_index, door_row_index, door_col_index, from_room : Room, room : Room)
- #add_rows(new_row_index, door_section_index, door, room)
- #check_bottom_room_for_door(from_room, row_index, col_index, room_col_index)
- #check_left_room_for_door(from_room, row_index, col_index, room_row_index)
- #check_right_room_for_door(from_room, row_index, col_index, room_row_index)
- #check_top_room_for_door(from_room, row_index, col_index, room_col_index)
- #display_grid
- #first_room_key
- #generate(from_room_key, row_index, col_index)
- #generate
- #get_random_door(from_room, door_row_index, door_col_index)
- #get_random_door_first_row(from_room, door_col_index)
- #get_random_door_last_row(from_room, door_col_index)
- #grid : Array(Array(String))
- #insert_cols(new_col_index, door_section_index, door, room)
- #insert_rows(new_row_index, door_section_index, door, room)
- #resize_grid(new_row_index, new_col_index, door_section_index, door, room)
- #room_collision?(room_r_index, room_c_index, room)
- #room_data : RoomData
- #room_indexes(r_index, c_index, r_insert, c_insert, from_door_section_index, door_section_index, door)
- #rooms : Hash(String, Room)
- #set_doors
- #set_doors_for_room(from_room, room_row_index, room_col_index)
- #set_grid_room_keys(room_r_index, room_c_index, room)
Constructor Detail
Class Method Detail
Instance Method Detail
def room_indexes(r_index, c_index, r_insert, c_insert, from_door_section_index, door_section_index, door)
#