summaryrefslogtreecommitdiff
blob: ba89733833b53d5119b09030e841ea079e70d8a5 (plain)
1
2
3
4
5
6
7
8
-module(battlemap).
-export([dist/2]).
-include("timed_cache_data.hrl").

-include("battlemap/cross.erl").

dist ({OX, OY}, {DX, DY}) ->
   (abs(OX - DX) + abs(OY + DY)).