
Former-commit-id: 416a4800a52e43f2583252650e6345f88fa7f988 Former-commit-id: 5efa8306924bca3a336db7412480ee40b3876dbc
54 lines
839 B
C
54 lines
839 B
C
#ifndef STRUCTS
|
|
#define STRUCTS
|
|
|
|
#include "defs.h"
|
|
|
|
typedef struct Game
|
|
{
|
|
SDL_Surface *screen;
|
|
SDL_Surface *bigScreen;
|
|
|
|
TTF_Font *font;
|
|
TTF_Font *listFont;
|
|
|
|
TTF_Font *messageFont;
|
|
TTF_Font *labelFont;
|
|
|
|
int labelFontWidth;
|
|
int labelFontHeight;
|
|
int messageFontWidth;
|
|
int messageFontHeight;
|
|
} Game;
|
|
|
|
Game game;
|
|
|
|
// functions
|
|
|
|
//font.c
|
|
TTF_Font *loadFont(char *, int);
|
|
void closeFont(TTF_Font *);
|
|
void drawString(char *, int, int, TTF_Font *, SDL_Color);
|
|
void drawString90(char *, int, int, TTF_Font *, SDL_Color);
|
|
void drawStringBG(char *, int, int, TTF_Font *, SDL_Color, SDL_Color);
|
|
|
|
//init.c
|
|
void init(char *);
|
|
void cleanup(void);
|
|
|
|
//input.c
|
|
void getInput(void);
|
|
|
|
//mapdata.c
|
|
void initMaps();
|
|
|
|
//list.c
|
|
void drawList(int rows, int top);
|
|
|
|
//draw.c
|
|
void draw();
|
|
|
|
//status.c
|
|
void updateStatus();
|
|
void drawStatus();
|
|
|
|
#endif |