breakout/main.h

56 lines
1.2 KiB
C
Raw Permalink Normal View History

2018-01-18 15:20:01 +01:00
#ifndef __main_h__
#define __main_h__
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include <time.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
2018-01-18 15:27:08 +01:00
#include "breakout.h"
#include "vector.h"
#include "startmenu.h"
#include "gamestate.h"
#include "highscores.h"
2018-01-23 21:22:01 +01:00
#include "gameover.h"
#include "settings.h"
#include "background.h"
2018-01-18 15:27:08 +01:00
2018-01-18 15:20:01 +01:00
#ifndef __nullptr__
#define Nullptr(type) (type *)0
#endif // __nullptr__
#define ae "\204"
#define oe "\224"
#define ue "\201"
#define ss "\341"
// Prototypes
2018-01-29 23:15:40 +01:00
bool PushNewCredentialsToSaveFile(const char * filename);
bool GrabAccountFromSaveFile(const char * filename);
void GAME_ReadCredentials();
bool GAME_Login();
bool GAME_Register();
void AttemptLogin();
int readIntFromIO(char * m1, char * m2, char * m3, int min, int max);
2018-01-27 18:48:45 +01:00
void GAME_Escape();
void MENU_StartMusic();
void MENU_PauseMusic();
2018-01-18 15:20:01 +01:00
void GAME_ChangeState(GameState state);
void GAME_ReturnToLastScreen();
2018-01-18 15:20:01 +01:00
void HandleSDLEvents();
void mousePress(SDL_MouseButtonEvent b);
void keyPress(SDL_KeyboardEvent b);
void toggleFullscreen();
void windowChanged(SDL_WindowEvent b);
void DrawBackground(SDL_Renderer * renderer);
void GAME_Restart();
void INITIALIZE();
2018-01-18 15:20:01 +01:00
void QUIT();
// End Prototypes
#endif // __main_h__