Changeset 13 for trunk/UFormMain.pas


Ignore:
Timestamp:
Feb 19, 2014, 10:42:16 PM (11 years ago)
Author:
chronos
Message:
  • Modified: Map size is now stored as private member of type TPoint.
  • Modified: Introduced parent TMap class inheried by THexMap to support multiple map types in future.
  • Added: Visualization of planned moves between cells for next turn.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UFormMain.pas

    r12 r13  
    186186  Shift: TShiftState; X, Y: Integer);
    187187begin
    188   if (StartMousePoint.X = X) and (StartMousePoint.Y = Y) then begin
     188  if (Abs(StartMousePoint.X - X) < 5) and (Abs(StartMousePoint.Y - Y) < 5) then begin
    189189    if Game.CurrentPlayer.Mode = pmHuman then begin
    190190      Game.CurrentPlayer.SelectCell(Point(X, Y));
Note: See TracChangeset for help on using the changeset viewer.