TABLE OF CONTENTS


Utils/Utils [ Packages ]

[ Top ] [ Packages ]

FUNCTION

 Provided various uncategorized code

SOURCE

package Utils is

Utils/Utils.DaysDifference [ Subprograms ]

[ Top ] [ Utils ] [ Subprograms ]

FUNCTION

 Count days difference between selected date and current game date

SOURCE

   function Days_Difference
     (Date_To_Compare: Date_Record; Current_Date: Date_Record := Game_Date)
      return Integer;

PARAMETERS

 DateToCompare - In game date to compare with current game date
 Current_Date - In game current date. Can be empty. Default value is
                Game_Date

RESULT

 Amount of days difference between DateToCompare and current game date

Utils/Utils.GetRandom [ Subprograms ]

[ Top ] [ Utils ] [ Subprograms ]

FUNCTION

 Return random number from Min to Max range. This one can't be formaly
 verified as is depends on random number generator.

SOURCE

   function Get_Random(Min, Max: Integer) return Integer with
      Import => True,
      Convention => C,
      External_Name => "getRandom";

PARAMETERS

 Min - Starting value from which generate random number
 Max - End value from which generate random number

RESULT

 Random number between Min and Max