-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuiSaveLoadWindow.h
39 lines (32 loc) · 1.09 KB
/
GuiSaveLoadWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* GuiSaveLoadWindow.h
*
* Created on: Mar 14, 2018
* Author: tomhe
*/
#ifndef GUISAVEWINDOW_H_
#define GUISAVEWINDOW_H_
#include <SDL.h>
#include <SDL_video.h>
#include <unistd.h>
#include "ChessGame.h"
#include "Button.h"
#include "GuiMainAux.h"
#include "ChessMainAux.h"
#include "PieceWidget.h"
#define MAXSAVEFILES 5
#define SAVESLOTSIZE 100
#define SPACEBETWEENSAVESLOTS 20
/*
* used for the load window. goes through all available save slots and creats the window accordingly.
* prints error if error occurred in making the window or the renderer or the BACK button.
* in any other case, enabling to load a game instead of the current game.
*/
CHESS_GUI_WINDOW loadWindow(CHESS_GUI_WINDOW pre_window);
/*
* used for the save window. enabling to save the game on any save slot from 1 to "MAXSAVEFILES".
* prints error if error occurred in making the window or the renderer or the BACK button.
* in any other case, enabling to save the game in any save slot that was selected.
*/
CHESS_GUI_WINDOW saveWindow();
#endif /* GUISAVEWINDOW_H_ */