Changeset 22 for trunk/UGame.pas


Ignore:
Timestamp:
Mar 1, 2014, 5:56:14 PM (11 years ago)
Author:
chronos
Message:
  • Added: New Core unit which is responsible for non-visual functionality. FormMain will handle main form related stuff.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UGame.pas

    r21 r22  
    144144implementation
    145145
     146resourcestring
     147  SMinimumPlayers = 'You need at least two players';
     148
    146149function FloatPoint(AX, AY: Double): TFloatPoint;
    147150begin
     
    379382  if FRunning = AValue then Exit;
    380383  if AValue then begin
    381     if Players.Count < 2 then raise Exception.Create('You need at least two players');
     384    if Players.Count < 2 then raise Exception.Create(SMinimumPlayers);
    382385    FRunning := AValue;
    383386  end else FRunning := AValue;
Note: See TracChangeset for help on using the changeset viewer.