CalcDir
Returns the direction for the step from point(Xfrom, Yfrom) to the point(Xto, Yto).
If Xfrom = Xto and Yfrom = Yto function will return 100.
Pascal
function CalcDir(Xfrom, Yfrom, Xto, Yto:Integer):Byte
Python
CalcDir(Xfrom, Yfrom, Xto, Yto)
Example:
Step(CalcDir(GetX(Self), GetY(Self), GetX(Self) +1, GetY(Self)), True);