|
|
3f9996 |
#ifndef HELI_COMMON_H
|
|
|
3f9996 |
#define HELI_COMMON_H
|
|
|
3f9996 |
|
|
|
3f9996 |
|
|
|
3f9996 |
#ifndef TRUE
|
|
|
3f9996 |
#define TRUE 1
|
|
|
3f9996 |
#endif
|
|
|
3f9996 |
|
|
|
3f9996 |
#ifndef FALSE
|
|
|
3f9996 |
#define FALSE 0
|
|
|
3f9996 |
#endif
|
|
|
3f9996 |
|
|
|
8535a3 |
#ifndef PI
|
|
|
8535a3 |
#define PI 3.14159265358979323846
|
|
|
8535a3 |
#endif
|
|
|
8535a3 |
|
|
|
3f9996 |
|
|
|
1015c5 |
typedef struct _Directory *Directory;
|
|
|
1015c5 |
|
|
|
1015c5 |
|
|
|
3f9996 |
int randomNumber(int min, int max);
|
|
|
3f9996 |
double randomFloat();
|
|
|
3f9996 |
|
|
|
909bc2 |
void rotateVector(double *x, double *y, double angle);
|
|
|
909bc2 |
|
|
|
909bc2 |
|
|
|
1015c5 |
Directory openDirectory(const char *path);
|
|
|
dac862 |
Directory openDirectoryEx(
|
|
|
dac862 |
const char *path,
|
|
|
dac862 |
const char *prefix,
|
|
|
dac862 |
const char *suffix,
|
|
|
dac862 |
int caseSensitive,
|
|
|
dac862 |
int showFiles,
|
|
|
dac862 |
int showDirectories );
|
|
|
1015c5 |
void closeDirectory(Directory directory);
|
|
|
1015c5 |
int directoryGetCount(Directory directory);
|
|
|
1015c5 |
const char* directoryGet(Directory directory, int i);
|
|
|
dac862 |
const char* directoryGetFull(Directory directory, int i);
|
|
|
1015c5 |
|
|
|
1015c5 |
int fileExists(const char *path);
|
|
|
1015c5 |
int directoryExists(const char *path);
|
|
|
1015c5 |
|
|
|
3f9996 |
|
|
|
3f9996 |
#endif
|