1 #ifndef BOARDPARSER_H_DEFINED 2 #define BOARDPARSER_H_DEFINED 4 #include <Entities/Board.hpp> 24 #define COMMENT_CHAR ';' 26 #define SNAKE_CHAR '@' 66 static bool save(
Board* board, std::string filename);
76 #endif //BOARDPARSER_H_DEFINED static bool save(Board *board, std::string filename)
TODO.
Opens, loads and parses a level file, returning a well-formed Board.
static std::vector< std::string > listLevels()
Lists all levels found by the game.
static Board * loadFile(std::string filename)
Loads and parses the level at filename.
static std::string directory
Default directory where the level files are.
A level where the snake runs and eats fruits.
static Board * load(std::string filename)
Loads and parses level with name.
static std::string extension
Default extension for nSnake level files.
Custom exception class to specify an error that occurred during a level loading.