42 CLevelParser(std::string category,
int chapter,
int rank);
49 static std::string
BuildScenePath(std::string category,
int chapter,
int rank,
bool sceneFile =
true);
62 std::vector<CLevelParserLine*>
GetLines();
70 std::string m_filename;
71 std::vector<CLevelParserLine*> m_lines;
Value of command argument in level file.
static std::string BuildCategoryPath(std::string category)
Build category path.
Definition: parser.cpp:65
Exceptions that could be thrown in level parser.
CLevelParser()
Create an empty level file.
Definition: parser.cpp:42
const std::string & GetFilename()
Get filename.
Definition: parser.cpp:254
void AddLine(CLevelParserLine *line)
Insert new line to file.
Definition: parser.cpp:264
Definition: parserline.h:33
void Save()
Save file.
Definition: parser.cpp:236
static std::string BuildScenePath(std::string category, int chapter, int rank, bool sceneFile=true)
Build level filename.
Definition: parser.cpp:80
bool Exists()
Check if level file exists.
Definition: parser.cpp:133
void Load()
Load file.
Definition: parser.cpp:138
CLevelParserLine * Get(std::string command)
Find first line with given command.
Definition: parser.cpp:270
Class for one line from level file.
std::vector< CLevelParserLine * > GetLines()
Get all lines from file.
Definition: parser.cpp:259