From 96c35eb8c79826fa07d2b00bbac039d9ec95eb3c Mon Sep 17 00:00:00 2001 From: nsensfel Date: Fri, 23 Feb 2018 22:47:43 +0100 Subject: ... --- src/struct/battlemap.erl | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'src/struct/battlemap.erl') diff --git a/src/struct/battlemap.erl b/src/struct/battlemap.erl index f55aadb..b0eb5fb 100644 --- a/src/struct/battlemap.erl +++ b/src/struct/battlemap.erl @@ -10,8 +10,7 @@ id, width, height, - content, - instances + tile_ids } ). @@ -25,20 +24,9 @@ get_id/1, get_width/1, get_height/1, - list_tiles/1, - get_instances/1 + get_tile_ids/1 ] ). - -%%%% Utils --export -( - [ - cross/5, - dist/2 - ] -). - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% LOCAL FUNCTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -50,11 +38,4 @@ get_id (Battlemap) -> Battlemap#battlemap.id. get_width (Battlemap) -> Battlemap#battlemap.width. get_height (Battlemap) -> Battlemap#battlemap.height. -list_tiles (Battlemap) -> array:sparse_to_list(Battlemap#battlemap.content). -get_instances (Battlemap) -> Battlemap#battlemap.instances. - -%%%% Utils --include("battlemap/cross_5.erl"). - -dist ({OX, OY}, {DX, DY}) -> - (abs(OX - DX) + abs(OY - DY)). +get_tile_ids (Battlemap) -> Battlemap#battlemap.tile_ids. -- cgit v1.2.3-70-g09d2