Select Git revision
game.h 1.40 KiB
/* Copyright (C) 2013 Barnabás Czémán <trabarni@gmail.com>
This file is part of Minesweeper2D.
Minesweeper2D is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Minesweeper2D is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Minesweeper2D. If not, see <http://www.gnu.org/licenses/>.*/
#ifndef GAME_H_INCLUDED
#define GAME_H_INCLUDED
#include <SDL.h>
#include <SDL_ttf.h>
#include "table.h"
/** Ez egy játékot leíró struktura.
*
* \struct Game
*
*/
typedef struct Game/*Játék típus*/
{
int width;/**<Tábla szélesége*/
int height;/**<Tábla magasága*/
int mines;/**<Aknák száma*/
int time;/**<Eltelt másodperc*/
Table table;/**<Játék tábla*/
} Game;
SubMenu drawGameSetting(Game*,SDL_Surface*,TTF_Font*,TTF_Font*,SDL_Surface*,SDL_Surface*,SDL_Surface*);
void drawGame(Game*,SDL_Surface*,TTF_Font*,TTF_Font*,SDL_Surface*,SDL_Surface*);
void saveGame(Game const*);
void loadGame(Game*,SDL_Surface*,TTF_Font*);
#endif