-
Notifications
You must be signed in to change notification settings - Fork 1
/
util.h
36 lines (27 loc) · 760 Bytes
/
util.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef _UTIL_H
#define _UTIL_H
#include <stdlib.h>
#include "Pokemon.h"
#ifdef __linux__
#define DIRECTORY_NAME "data/"
#define SPRITE_DIRECTORY "sprites/"
#endif // _WIN32
#ifdef _WIN32
#define DIRECTORY_NAME "data\\"
#define SPRITE_DIRECTORY "sprites\\"
#endif
#define DEXFILE DIRECTORY_NAME"pokemon.csv"
#define MOVEDEXFILE DIRECTORY_NAME"moves.csv"
#define SAVEFILE DIRECTORY_NAME"poketeam.dat"
#define ASCIISPRITEDIR DIRECTORY_NAME SPRITE_DIRECTORY
#define ASCIIEXTENSION ".asc"
#define MAXTEAMSIZE 6
//typedef struct _coord_t coord_t;
typedef struct _coord_t
{
unsigned int x;
unsigned int y;
}coord_t;
void addStringTerminator(char* myString);
pokemon_t* randPkmn(pokemon_t** pkdex, int totalPokemon);
#endif //_UTIL_H