AICoordinates
function ReverseDirection(aDirection: integer): integer;
= 0;
= 1;
= 2;
= 3;
= 4;
= 5;
= 6;
= 7;
= 8;
= 90;
= 180;
= 270;
= 45;
= 135;
= 225;
= 315;
= Pi/180;
= Pi/360;
= 16;