Changeset 23 for trunk/UCore.pas
- Timestamp:
- Mar 2, 2014, 11:27:14 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r22 r23 28 28 private 29 29 FInitialized: Boolean; 30 procedure DoOnMove(CellFrom, CellTo: TCell; var CountOnce, CountRepeat: Integer); 30 procedure DoOnMove(CellFrom, CellTo: TCell; var CountOnce, 31 CountRepeat: Integer; Update: Boolean); 31 32 procedure DoOnWin(Player: TPlayer); 32 33 public … … 54 55 55 56 procedure TCore.DoOnMove(CellFrom, CellTo: TCell; var CountOnce, 56 CountRepeat: Integer );57 CountRepeat: Integer; Update: Boolean); 57 58 begin 59 if Update then FormMove.SpinEditOnce.MaxValue := CellFrom.GetAvialPower + CountOnce 60 else FormMove.SpinEditOnce.MaxValue := CellFrom.GetAvialPower; 58 61 FormMove.SpinEditOnce.Value := CountOnce; 59 FormMove.SpinEdit Once.MaxValue := CellFrom.GetAvialPower;62 FormMove.SpinEditRepeat.MaxValue := Game.Map.MaxPower; 60 63 FormMove.SpinEditRepeat.Value := CountRepeat; 61 FormMove.SpinEditRepeat.MaxValue := Game.Map.MaxPower;62 64 if FormMove.ShowModal = mrOk then begin 63 65 CountOnce := FormMove.SpinEditOnce.Value; … … 128 130 FInitialized := True; 129 131 for I := 0 to Game.Players.Count - 1 do 130 TPlayer(Game.Players[I]).View Size := Point(FormMain.PaintBox1.Width,132 TPlayer(Game.Players[I]).View.DestRect := Rect(0, 0, FormMain.PaintBox1.Width, 131 133 FormMain.PaintBox1.Height); 132 134 Game.New;
Note:
See TracChangeset
for help on using the changeset viewer.