|
|
static std::string | BuildCategoryPath (LevelCategory category) |
| Build category path. More...
|
|
static std::string | BuildCategoryPath (std::string category) |
|
|
static std::string | BuildScenePath (LevelCategory category, int chapter, int rank, bool sceneFile=true) |
| Build level filename. More...
|
|
static std::string | BuildScenePath (std::string category, int chapter, int rank, bool sceneFile=true) |
|
CLevelParser::CLevelParser |
( |
| ) |
|
Create an empty level file.
CLevelParser::CLevelParser |
( |
std::string |
filename | ) |
|
CLevelParser::CLevelParser |
( |
LevelCategory |
category, |
|
|
int |
chapter, |
|
|
int |
rank |
|
) |
| |
std::string CLevelParser::BuildCategoryPath |
( |
LevelCategory |
category | ) |
|
|
static |
std::string CLevelParser::BuildScenePath |
( |
LevelCategory |
category, |
|
|
int |
chapter, |
|
|
int |
rank, |
|
|
bool |
sceneFile = true |
|
) |
| |
|
static |
bool CLevelParser::Exists |
( |
| ) |
|
Check if level file exists.
void CLevelParser::Load |
( |
| ) |
|
void CLevelParser::Save |
( |
| ) |
|
void CLevelParser::SetLevelPaths |
( |
LevelCategory |
category, |
|
|
int |
chapter = 0 , |
|
|
int |
rank = 0 |
|
) |
| |
Configure level paths for the given level.
std::string CLevelParser::InjectLevelPaths |
( |
const std::string & |
path, |
|
|
const std::string & |
defaultDir = "" |
|
) |
| |
const std::string & CLevelParser::GetFilename |
( |
| ) |
|
const std::vector<CLevelParserLineUPtr>& CLevelParser::GetLines |
( |
| ) |
|
|
inline |
void CLevelParser::AddLine |
( |
CLevelParserLineUPtr |
line | ) |
|
Find first line with given command.
Find first line with given command, null if doesn't exist.
int CLevelParser::CountLines |
( |
const std::string & |
command | ) |
|
Count lines with given command.
The documentation for this class was generated from the following files:
- /build/colobot-4LMcse/colobot-0.1.8/src/level/parser/parser.h
- /build/colobot-4LMcse/colobot-0.1.8/src/level/parser/parser.cpp