Page 1 of 1

GetDistanceBetween and fromUnit

Posted: Mon Aug 10, 2015 7:06 pm
by ElMinotauro
Hi,

Anybody could say me type of value got from the following sentences ?

GetDistanceBetweenTiles ()
GetDistanceFromUnit ()

Is a integer number?
Is the number of hexagons?
How is it?

Thank you
ElMinotauro

Re: GetDistanceBetween and fromUnit

Posted: Mon Aug 10, 2015 9:01 pm
by rbodleyscott
It is an integer because the engine only deals with integers, and only does integer arithmetic. All fractions are rounded down.

It is the number of squares, allowing for the extra distance resulting from non-orthogonal direction, but rounded down.

Re: GetDistanceBetween and fromUnit

Posted: Mon Aug 10, 2015 10:29 pm
by ElMinotauro
Hi,

I am working with a new scenario (nieuport,1600) and I think that these sentencies will be very useful
Thank you for this information

Bye