Changeset 2 for trunk/src/lazesglobals.pas
- Timestamp:
- Nov 21, 2012, 9:04:27 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lazesglobals.pas
r1 r2 18 18 unit LazesGlobals; 19 19 20 {$mode objfpc}{$H+}20 {$mode delphi}{$H+} 21 21 22 22 interface … … 26 26 27 27 const 28 // Update message when something in the maze config has changed and needs regeneration29 C_MAZE_UPDATE_MESSAGE = WM_USER + 67122;30 31 28 // Maximum width/height of the maze 32 29 C_MIN_MAZE_SIZE = 4; … … 35 32 type 36 33 // Record structure to send messages around with maze metrics 34 35 { TMazeUpdateInfo } 36 37 37 TMazeUpdateInfo = record 38 38 MazeWidth : integer; … … 40 40 DrawWidth : integer; 41 41 DrawHeight: integer; 42 class operator Equal(A, B: TMazeUpdateInfo): Boolean; 42 43 end; 43 44 PMazeUpdateInfo = ^TMazeUpdateInfo; … … 45 46 implementation 46 47 48 { TMazeUpdateInfo } 49 50 class operator TMazeUpdateInfo.Equal(A, B: TMazeUpdateInfo): Boolean; 51 begin 52 Result := (A.MazeHeight = B.MazeHeight) and (A.MazeWidth = B.MazeWidth) and 53 (A.DrawHeight = B.DrawHeight) and (A.DrawWidth = B.DrawWidth); 54 end; 55 47 56 end. 48 57
Note:
See TracChangeset
for help on using the changeset viewer.