Ignore:
Timestamp:
Jan 15, 2019, 1:03:40 AM (6 years ago)
Author:
chronos
Message:
  • Modified: Cell power is now internally represented as unit power (TUnit class).
  • Modified: Allow to have only one player in the game.
  • Added: New win objective None to just play freely without any win objective.
  • Added: New win objective to capture entire map.
  • Added: TGameSystem class to represent various game play systems of other existing games.
  • Fixed: Clear correctly defender player from unit moves if his cell is captured.
  • Fixed: Do not allow to remove too many players to have at least minimum players.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormClient.pas

    r249 r265  
    152152    FormMove.TrackBarRepeat.Max := FormMove.SpinEditRepeat.MaxValue;
    153153    FormMove.TrackBarRepeat.Position := FormMove.SpinEditRepeat.Value;
    154     FormMove.DefendCount := CellTo.MapCell.Power;
     154    if Assigned(CellTo.MapCell.OneUnit) then
     155      FormMove.DefendCount := CellTo.MapCell.OneUnit.Power
     156      else FormMove.DefendCount := 0;
    155157    // Attack count from other surrounding cells without current move if already exists
    156158    FormMove.AttackCount := 0;
Note: See TracChangeset for help on using the changeset viewer.