r_TileOnMS
Simba Code:function r_TileOnMS(tile: TPoint): Boolean;
begin
Result := (PointInBox(r_TileToMS(tile), IntToBox(MSX1, MSY1, MSX2, MSY2)));
end;
adding more as it comes along..
r_TileOnMS
Simba Code:function r_TileOnMS(tile: TPoint): Boolean;
begin
Result := (PointInBox(r_TileToMS(tile), IntToBox(MSX1, MSY1, MSX2, MSY2)));
end;
adding more as it comes along..
Last edited by Fitta; 08-23-2014 at 10:02 PM.
EDIT:Nvm, missread the function
“The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius
The function in it's current state isn't going to do much. It's only going to see if the TPoint argument is within the boundaries of the main screen's box. You would need to convert the RSTile to a point on the main screen with a function like R_TileToMS.
Simba Code:function R_RSTileOnMS(tile:TRSTile):boolean;
begin
result := PointInBox(R_RSTileToMS(tile), MSBox);
end;
Just to note, I personally like to keep TPoints and RSTiles separate so the conversation is obvious.
There are currently 1 users browsing this thread. (0 members and 1 guests)