; returns NULL if TO_NULL is set
; inputs:
; de: tile
+ ; returns:
+ ; bc: actor
tile_get_actor:
; TODO:
ret
+
+ ; stores pointers to
+ ; all adjacent tiles
+ ; stores NULL if adjacent tile is out
+ ; of bounds
+ ; also counts the amount of seen types
+ ; in tiles_adjacen_types
+tile_get_adjacent:
+ ret
; updates empty tile
; inputs:
tiles: .adv t_size * MAP_TILES
tiles_end: .adv 0
+
+ ; list of pointers
+ ; to all adjacent tiles
+ ; set to NULL if no tile is adjacent
+tiles_adjacent: .adv 2 * 8
+ ; a list of adjacent types
+ ; one byte for each TI_* type
+tiles_adjacent_types: .adv TI_SIZE
ui_draw_routine: .adv 2