| summaryrefslogtreecommitdiff | 
diff options
Diffstat (limited to 'src/struct/battlemap.erl')
| -rw-r--r-- | src/struct/battlemap.erl | 25 | 
1 files changed, 3 insertions, 22 deletions
| 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. | 


