PixelWars/main.h
2015-01-12 16:01:58 +01:00

46 lines
579 B
C

#ifndef MAIN_H
#define MAIN_H
#include "team.h"
#ifdef _WIN32
#define MAIN WinMain
#else
#define MAIN main
#endif
#define MAX_FPS 60;
#define MAX_DUDES 50;
#define WIDTH 400;
#define HEIGHT 250;
// Teams
enum{
PURPLE, ORANGE, NB_TEAMS;
}
typedef struct{
int type;
void* data;
} t_pixel;
typedef struct{
t_coord pos;
int team;
int inventory;
t_pixel ground;
void* custom_data;
void* com_data
} t_dude
typedef struct{
int team;
int dude_size;
t_action(void*, void*, int)* update;
int nb_dudes;
t_dude* dudes;
t_coord spawn;
int spawn_food;
} t_team;
#endif