Decoded: OpenTTD (2003) v1.8 (2018) Source file: geometry_type.hpp Line-by-line code walkthrough by MaiZure geometry_type.hpp defines various geometric types Original code: https://github.com/MaiZure/OpenTTD-1.8/blob/master/src/core/geometry_type.hpp 1 COMMENT (*) 2 BLANK (-) 3 * 4 * 5 * 6 * 7 * 8 * 9 - 10 * 11 - 12 Header guard 13 Header guard 14 - 15 Check this this is an Amiga because... 16 * 17 Assign Point to be the Amiga builtin 18 End check for Amiga 19 - 20 Check if this is an Apple because... 21 * 22 Assign Rect to the Apple built in Rect 23 Assign Point to the Apple built in Point 24 End check for Apple 25 - 26 - 27 * 28 BLOCK START - Point, a structure with two members 29 Declares an integer member for the x dimension 30 Declares an integer member for the y dimension 31 BLOCK END - Point 32 - 33 * 34 BLOCK START - Dimension, a relative structure with two members 35 Declares a positive integer member for width 36 Declares a positive integer member for height 37 BLOCK END - Dimension 38 - 39 * 40 BLOCK START - Rect, an absolute specification of a rectangle 41 Declares the left line position member 42 Declares the top line position member 43 Declares the right line position member 44 Declares the bottom line position member 45 BLOCK END - Rect 46 - 47 * 48 * 49 * 50 * 51 BLOCK START - PointDimension, a hybrid point/size structure 52 Declares the top left x position member 53 Declares the top left y position member 54 Declares a member for width 55 Declares a member for height 56 BLOCK END - PointDimension 57 - 58 * 59 BLOCK START - Pair, two values with some specified relation 60 Declares member value a 61 Declares member value b 62 BLOCK END - Pair 63 - 64 Header guard endG