2018-01-23 21:22:01 +01:00
|
|
|
#ifndef __gameover_h__
|
|
|
|
#define __gameover_h__
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <math.h>
|
|
|
|
#include <SDL2/SDL.h>
|
|
|
|
#include <SDL2/SDL_image.h>
|
|
|
|
#include <SDL2/SDL_ttf.h>
|
|
|
|
|
|
|
|
#include "gameover.h"
|
|
|
|
#include "gamestate.h"
|
|
|
|
#include "main.h"
|
|
|
|
|
2018-01-25 17:05:12 +01:00
|
|
|
// Enums
|
2018-01-29 19:10:08 +01:00
|
|
|
typedef enum uploadStateEnum { Initial = 0, Uploading = 1, Finished = 2, Failed = 3 } UploadState;
|
2018-01-25 17:05:12 +01:00
|
|
|
// Enums
|
|
|
|
|
2018-01-23 21:22:01 +01:00
|
|
|
// Prototypes
|
|
|
|
void GAMEOVER_Initialize(SDL_Renderer * renderer);
|
2018-01-29 21:26:48 +01:00
|
|
|
void GAMEOVER_MouseClicked(SDL_MouseButtonEvent b, Scenery * scenery);
|
2018-01-23 21:22:01 +01:00
|
|
|
void GAMEOVER_Draw(SDL_Renderer * renderer, Scenery * scenery);
|
2018-01-25 17:05:12 +01:00
|
|
|
void GAMEOVER_DrawHorizontalCenter(SDL_Renderer * renderer, SDL_Texture * texture, SDL_Rect * srcRect, SDL_Rect * dstRect);
|
2018-01-23 21:22:01 +01:00
|
|
|
void GAMEOVER_GetDigits(int input, int * digitCount);
|
|
|
|
void SCORE_DrawHUD(SDL_Renderer * renderer, Scenery * scenery);
|
|
|
|
void GAMEOVER_Deinitialize();
|
|
|
|
// End Prototypes
|
|
|
|
|
|
|
|
#endif // __gameover_h__
|