Ignore:
Timestamp:
May 16, 2018, 1:38:11 PM (6 years ago)
Author:
chronos
Message:
  • Added: Capture all special cells objective is now functional. Number of such cells can be specified. They are randomly spread across map and such cells are marked with "!" symbol after its number of units.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r197 r198  
    4646    Label12: TLabel;
    4747    Label13: TLabel;
     48    Label14: TLabel;
    4849    Label2: TLabel;
    4950    Label3: TLabel;
     
    6465    OpenPictureDialog1: TOpenPictureDialog;
    6566    PageControl1: TPageControl;
     67    PageControl2: TPageControl;
    6668    PanelButtons: TPanel;
    6769    PanelChat: TPanel;
     
    7375    RadioGroupGrowAmount: TRadioGroup;
    7476    RadioGroupGrowCells: TRadioGroup;
    75     SpinEditTurns: TSpinEdit;
    7677    SpinEditMaxPower: TSpinEdit;
    7778    SpinEditServerPort: TSpinEdit;
     
    8081    SpinEditMapSizeY: TSpinEdit;
    8182    SpinEditNeutralUnits: TSpinEdit;
     83    SpinEditSpecialCells: TSpinEdit;
     84    SpinEditTurns: TSpinEdit;
    8285    SpinEditVoidPercent: TSpinEdit;
    8386    Splitter1: TSplitter;
     
    8588    TabSheet2: TTabSheet;
    8689    TabSheet3: TTabSheet;
     90    TabSheetStayAliveTurns: TTabSheet;
     91    TabSheetCaptureCells: TTabSheet;
     92    TabSheetDefeatEnemies: TTabSheet;
     93    TabSheetCaptureCities: TTabSheet;
    8794    TabSheetMode: TTabSheet;
    8895    TrackBarSizeX: TTrackBar;
     
    98105    procedure CheckBoxVoidChange(Sender: TObject);
    99106    procedure ComboBoxMapShapeChange(Sender: TObject);
     107    procedure ComboBoxWinObjectiveChange(Sender: TObject);
    100108    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    101109    procedure FormCreate(Sender: TObject);
     
    151159  SWinObjectiveDefeatAllOponents = 'Defeat all oponents';
    152160  SWinObjectiveDefeatAllCities = 'Defeat all oponents cities';
    153   SWinObjectiveCapturePosition = 'Capture position';
     161  SWinObjectiveCapturePosition = 'Capture all special cells';
    154162  SWinObjectiveStayAliveForTurns = 'Stay alive for number of turns';
    155163  SGrowNone = 'None';
     
    371379begin
    372380  ReloadView;
     381end;
     382
     383procedure TFormNew.ComboBoxWinObjectiveChange(Sender: TObject);
     384begin
     385  PageControl2.TabIndex := ComboBoxWinObjective.ItemIndex;
    373386end;
    374387
     
    504517    SpinEditMaxPower.Value := Game.MaxPower;
    505518    SpinEditTurns.Value := Game.StayAliveForDefinedTurns;
     519    SpinEditSpecialCells.Value := Game.SpecialCaptureCellCount;
    506520  end;
    507521end;
     
    540554    Game.MaxPower := SpinEditMaxPower.Value;
    541555    Game.StayAliveForDefinedTurns := SpinEditTurns.Value;
     556    Game.SpecialCaptureCellCount := SpinEditSpecialCells.Value;
    542557  end;
    543558end;
Note: See TracChangeset for help on using the changeset viewer.