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);
|
2018-01-30 09:59:35 +01:00
|
|
|
void HIGHSCORES_MouseClicked(SDL_MouseButtonEvent b);
|
2018-01-15 23:47:39 +01:00
|
|
|
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);
|
2018-01-29 21:26:48 +01:00
|
|
|
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
|