travian_utils (travianmap v1.1.0)

Summary

Functions

Link to this function

distance401(X1, Y1, X2, Y2)

-spec distance401(X1 :: integer(), Y1 :: integer(), X2 :: integer(), Y2 :: integer()) -> float().
Link to this function

distance(Width, Height, X1, Y1, X2, Y2)

-spec distance(Width :: integer(),
         Height :: integer(),
         X1 :: integer(),
         Y1 :: integer(),
         X2 :: integer(),
         Y2 :: integer()) ->
            float().
Link to this function

int_to_tribe(TribeEncoded)

-spec int_to_tribe(TribeEncoded :: integer()) -> {ok, atom()} | {error, unknown}.
Link to this function

tribe_to_int(Tribe)

-spec tribe_to_int(Tribe :: atom()) -> {ok, integer()} | {error, unknown}.