Bobot_utils.h

#ifndef _BOBOT_UTILS_H
#define _BOBOT_UTILS_H

//----------------------------------------------------------------------------
//    some random number functions.
//----------------------------------------------------------------------------

//returns a random integer between x and y
int      RandInt(int x,int y);

//returns a random float between zero and 1
double RandFloat();

//returns a random bool
qboolean   RandBool();

//returns a random float in the range -1 < n < 1
double RandomClamped();

void swap(double *a, double *b);

//-----------------------------------------------------------------------
//   
//    some handy little functions
//-----------------------------------------------------------------------

//    clamps the first argument between the second two
void Clamp(double *arg, double min, double max);

void Look_Printf( const char *fmt, ... );
void Courbe_Printf( const char *fmt, ... );
void Fuzzy_Printf( const char *fmt, ... );
void Bobot_Printf( const char *fmt, ... );

#endif

Créer un site gratuit avec e-monsite - Signaler un contenu illicite sur ce site