You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.5 KiB
C
39 lines
1.5 KiB
C
//
|
|
// G A M E.O.N.E - LOW LEVEL LIB V1.0
|
|
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
|
|
// Licensed under the terms of LGPL.
|
|
//:---------------------------------------------------------------------------
|
|
//:Description
|
|
//
|
|
// LOW LEVEL IRQ DRIVER INCLUDE FILE
|
|
//
|
|
|
|
#ifndef _LLIRQ_H
|
|
#define _LLIRQ_H
|
|
|
|
#define LLIRQ_SECOND (1000)
|
|
#define LLIRQ_MINUTE (60*LLIRQ_SECOND)
|
|
|
|
extern TxU32 llirq_rand; // wird bei jeder Get Function neu gesetzt
|
|
extern float llirq_uptime; // time in seconds since game start
|
|
|
|
TxU32 llirq_GetRand(); // random value, unsigned
|
|
int llirq_GetRandI(); // random value, signed integer!
|
|
TxU32 llirq_GetRand(TxU32 max); // random value between 0 and max, unsigned
|
|
int llirq_GetRandI(int max); // random value between 0 and max, signed integer!
|
|
TxU32 llirq_GetRand(TxU32 min, TxU32 max); // random value between min max, unsigned
|
|
int llirq_GetRandI(int min, int max); // random value between min max, signed integer!
|
|
int llirq_GetRandB(); // random value, 0 or 1
|
|
int llirq_GetRandP(); // random value, range 0-100 in percent
|
|
float llirq_GetRandF(float min, float max); // random value, in range min<=x<=max
|
|
double llirq_GetRandD(double min, double max); // random value, in range min<=x<=max
|
|
|
|
void llirq_ResetTime(); // Performance Counter rücksetzen
|
|
float llirq_GetDeltaTime(); // Liefert Zeit in Sekunden die seit dem letzten Aufruf vergangen ist
|
|
|
|
int llirq_GetTime(void); // Zeit in millisekunden ab Systemstart
|
|
void llirq_Sleep(int milliseconds); // Sleep, Kontrolle an ander Prozesse übergeben
|
|
|
|
|
|
#endif
|