add game toold.c
This commit is contained in:
1 parent
0646d846c0
commit
c99a758a2f
2 files changed
+2
-42
No files matched your search
@@ -1,41 +0,0 @@
|
||||
/**
|
||||
* @file game_tools.h
|
||||
* @brief Game Tools.
|
||||
* @details See @ref index for further details.
|
||||
* @copyright University of Bordeaux. All rights reserved, 2020.
|
||||
*
|
||||
**/
|
||||
|
||||
#ifndef __GAME_TOOLS_H__
|
||||
#define __GAME_TOOLS_H__
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "game.h"
|
||||
|
||||
/**
|
||||
* @name Game Tools
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Creates a game by loading its description in a text file.
|
||||
* @details See the file format description in @ref index.
|
||||
* @param filename
|
||||
* @return the loaded game
|
||||
**/
|
||||
game game_load(char* filename);
|
||||
|
||||
/**
|
||||
* @brief Saves a game in a text file.
|
||||
* @details See the file format description in @ref index.
|
||||
* @param g game to save
|
||||
* @param filename output file
|
||||
**/
|
||||
void game_save(cgame g, char* filename);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
#endif // __GAME_TOOLS_H__
|
||||
Reference in new issue
Block a user