diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/arena.h | 3 | ||||
| -rw-r--r-- | include/idManager.h | 18 | ||||
| -rw-r--r-- | include/main.h | 1 |
3 files changed, 19 insertions, 3 deletions
diff --git a/include/arena.h b/include/arena.h index f133c14..b79c094 100644 --- a/include/arena.h +++ b/include/arena.h @@ -20,10 +20,7 @@ typedef struct arena_struct list_t *listTimer; list_t *listTux; list_t *listShot; - list_t *listWall; list_t *listItem; - list_t *listTeleport; - list_t *listPipe; } arena_t; extern void setCurrentArena(arena_t *p); diff --git a/include/idManager.h b/include/idManager.h new file mode 100644 index 0000000..a525a56 --- /dev/null +++ b/include/idManager.h @@ -0,0 +1,18 @@ + + +#ifndef ID_MANAGER_H + +#define ID_MANAGER_H + +#define MAX_ID 1000 + +#include "list.h" + +extern list_t * newListID(); +extern int getNewID(list_t *p); +extern int isRegisterID(list_t *p, int id); +extern void delID(list_t *p, int id); +extern void replaceID(list_t *p, int old_id, int new_id); +extern void destroyListID(list_t *p); + +#endif diff --git a/include/main.h b/include/main.h index 09280d0..ea3d703 100644 --- a/include/main.h +++ b/include/main.h @@ -25,6 +25,7 @@ extern char* getParam(char *s); extern char* getParamElse(char *s1, char *s2); extern bool_t isParamFlag(char *s); extern char *getString(int n); +extern int* newInt(int x); extern void accessExistFile(const char *s); #endif |