Changeset 281 for trunk/UGame.pas
- Timestamp:
- Feb 21, 2019, 10:45:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r277 r281 30 30 TGrowAmount = (gaByOne, gaBySquareRoot); 31 31 TGrowCells = (gcNone, gcPlayerCities, gcPlayerAll); 32 TMapType = (mtNone, mtHexagon, mtSquare, mtTriangle, mtRandom, mtIsometric);33 32 TWinObjective = (woNone, woDefeatAllOponents, woDefeatAllOponentsCities, 34 33 woSpecialCaptureCell, woStayAliveForDefinedTurns, woCaptureEntireMap); … … 268 267 case AValue of 269 268 mtNone: Map := TMap.Create; 270 mtHexagon : Map := THexMap.Create;269 mtHexagonVertical: Map := THexMapVertical.Create; 271 270 mtSquare: Map := TSquareMap.Create; 272 271 mtTriangle: Map := TTriangleMap.Create; 273 272 mtRandom: Map := TVoronoiMap.Create; 274 273 mtIsometric: Map := TIsometricMap.Create; 274 mtHexagonHorizontal: Map := THexMapHorizontal.Create; 275 275 else raise Exception.Create(SUnsupportedMapType); 276 276 end; … … 537 537 with Config do begin 538 538 StoredRandSeed := GetValue(DOMString(Path + '/RandSeed'), 0); 539 MapType := TMapType(GetValue(DOMString(Path + '/GridType'), Integer(mtHexagon )));539 MapType := TMapType(GetValue(DOMString(Path + '/GridType'), Integer(mtHexagonVertical))); 540 540 Map.Size := TPoint.Create(GetValue(DOMString(Path + '/MapSizeX'), 10), 541 541 GetValue(DOMString(Path + '/MapSizeY'), 10));
Note:
See TracChangeset
for help on using the changeset viewer.