| summaryrefslogtreecommitdiff | 
diff options
| author | nsensfel <SpamShield0@noot-noot.org> | 2018-02-23 22:47:43 +0100 | 
|---|---|---|
| committer | nsensfel <SpamShield0@noot-noot.org> | 2018-02-23 22:47:43 +0100 | 
| commit | 96c35eb8c79826fa07d2b00bbac039d9ec95eb3c (patch) | |
| tree | 94d7fef850637be6fd800f139a59d578763ba671 /src/struct/battlemap.erl | |
| parent | 959b994bced0863d4b8a984f38f5ac61aa3620e0 (diff) | |
...
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. | 


