Changeset 262 for trunk/UGame.pas
- Timestamp:
- Sep 24, 2018, 11:46:31 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UGame.pas
r251 r262 77 77 BridgeEnabled: Boolean; 78 78 MaxPower: Integer; 79 EmptyCellsNeutral: Boolean; 79 80 procedure PostConfig; 80 81 procedure Assign(Source: TGame); … … 427 428 BridgeEnabled := Source.BridgeEnabled; 428 429 MaxPower := Source.MaxPower; 430 EmptyCellsNeutral := Source.EmptyCellsNeutral; 429 431 end; 430 432 … … 450 452 SetValue(DOMString(Path + '/StayAliveForDefinedTurns'), StayAliveForDefinedTurns); 451 453 SetValue(DOMString(Path + '/SpecialCaptureCellCount'), SpecialCaptureCellCount); 454 SetValue(DOMString(Path + '/EmptyCellsNeutral'), EmptyCellsNeutral); 452 455 Players.SaveConfig(Config, Path + '/Players'); 453 456 end; … … 485 488 StayAliveForDefinedTurns := GetValue(DOMString(Path + '/StayAliveForDefinedTurns'), 20); 486 489 SpecialCaptureCellCount := GetValue(DOMString(Path + '/SpecialCaptureCellCount'), 1); 490 EmptyCellsNeutral := GetValue(DOMString(Path + '/EmptyCellsNeutral'), False); 487 491 Players.LoadConfig(Config, Path + '/Players'); 488 492 end; … … 519 523 TurnCounter := ReadInteger(RootNode, 'TurnCounter', 0); 520 524 WinObjective := TWinObjective(ReadInteger(RootNode, 'WinObjective', Integer(woDefeatAllOponents))); 521 ReadInteger(RootNode, 'StayAliveForDefinedTurns', StayAliveForDefinedTurns); 525 StayAliveForDefinedTurns := ReadInteger(RootNode, 'StayAliveForDefinedTurns', 10); 526 EmptyCellsNeutral := ReadBoolean(RootNode, 'EmptyCellsNeutral', False); 522 527 523 528 NewNode := FindNode('Map'); … … 573 578 WriteInteger(RootNode, 'WinObjective', Integer(WinObjective)); 574 579 WriteInteger(RootNode, 'StayAliveForDefinedTurns', StayAliveForDefinedTurns); 580 WriteBoolean(RootNode, 'EmptyCellsNeutral', EmptyCellsNeutral); 575 581 WriteBoolean(RootNode, 'Running', Running); 576 582 … … 641 647 CurrentPlayer.MoveAll; 642 648 CurrentPlayer.Grow; 649 CurrentPlayer.UpdateEmptyCellsNeutral; 643 650 CurrentPlayer.UpdateRepeatMoves; 644 651 ComputePlayerStats;
Note:
See TracChangeset
for help on using the changeset viewer.