breakout/highscores.h

24 lines
662 B
C
Raw Normal View History

2018-01-15 15:42:14 +01:00
#ifndef __highscores_h__
#define __highscores_h__
// Structs
typedef struct userStruct {
2018-01-15 23:47:39 +01:00
char Username[50], Score[30];
2018-01-15 15:42:14 +01:00
} User;
// End Structs
2018-01-15 23:47:39 +01:00
// Prototypes
void HIGHSCORES_Initialize();
void printFontStyle(TTF_Font * ffont);
void HIGHSCORES_Draw(SDL_Renderer * renderer);
void HIGHSCORES_Deinitialize();
2018-01-18 15:24:26 +01:00
void HIGHSCORES_GenerateTexture(SDL_Renderer * renderer);
2018-01-18 16:05:42 +01:00
void HIGHSCORES_DrawText(char * text, SDL_Rect * Message_rect);
2018-01-25 11:18:33 +01:00
bool HIGHSCORES_UploadScore(char * username, int score);
bool HIGHSCORES_Login(char * username, char * password);
bool HIGHSCORES_Register(char * username, char * password);
2018-01-16 12:10:37 +01:00
void HIGHSCORES_ReloadList();
2018-01-15 23:47:39 +01:00
// End Prototypes
2018-01-15 15:42:14 +01:00
#endif