class Escapist::FloorData

Defined in:

escapist/floor_data.cr

Constant Summary

FirstRoomKey = "start"
MaxRooms = 5

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.first_room_key #

[View source]

Instance Method Detail

def add_cols(new_col_index, door_section_index, door, room) #

[View source]
def add_room(row_index, col_index, door_row_index, door_col_index, from_room : Room, room : Room) #

[View source]
def add_rows(new_row_index, door_section_index, door, room) #

[View source]
def check_bottom_room_for_door(from_room, row_index, col_index, room_col_index) #

[View source]
def check_left_room_for_door(from_room, row_index, col_index, room_row_index) #

[View source]
def check_right_room_for_door(from_room, row_index, col_index, room_row_index) #

[View source]
def check_top_room_for_door(from_room, row_index, col_index, room_col_index) #

[View source]
def display_grid #

[View source]
def first_room_key #

[View source]
def generate(from_room_key, row_index, col_index) #

[View source]
def generate #

[View source]
def get_random_door(from_room, door_row_index, door_col_index) #

[View source]
def get_random_door_first_row(from_room, door_col_index) #

[View source]
def get_random_door_last_row(from_room, door_col_index) #

[View source]
def grid : Array(Array(String)) #

[View source]
def insert_cols(new_col_index, door_section_index, door, room) #

[View source]
def insert_rows(new_row_index, door_section_index, door, room) #

[View source]
def resize_grid(new_row_index, new_col_index, door_section_index, door, room) #

[View source]
def room_collision?(room_r_index, room_c_index, room) #

[View source]
def room_data : RoomData #

[View source]
def room_indexes(r_index, c_index, r_insert, c_insert, from_door_section_index, door_section_index, door) #

[View source]
def rooms : Hash(String, Room) #

[View source]
def set_doors #

[View source]
def set_doors_for_room(from_room, room_row_index, room_col_index) #

[View source]
def set_grid_room_keys(room_r_index, room_c_index, room) #

[View source]