|
| CLevelParser () |
| Create an empty level file.
|
|
| CLevelParser (std::string filename) |
| Load level from file.
|
|
bool | Exists () |
| Check if level file exists.
|
|
void | Load () |
| Load file.
|
|
void | Save () |
| Save file.
|
|
void | SetLevelPaths (LevelCategory category, int chapter=0, int rank=0) |
| Configure level paths for the given level.
|
|
std::string | InjectLevelPaths (const std::string &path, const std::string &defaultDir="") |
| Inject something% paths.
|
|
const std::string & | GetFilename () |
| Get filename.
|
|
const std::vector< CLevelParserLineUPtr > & | GetLines () |
| Get all lines from file.
|
|
void | AddLine (CLevelParserLineUPtr line) |
| Insert new line to file.
|
|
CLevelParserLine * | Get (const std::string &command) |
| Find first line with given command.
|
|
int | CountLines (const std::string &command) |
| Count lines with given command.
|
|
|
| CLevelParser (LevelCategory category, int chapter, int rank) |
| Load given level.
|
|
| CLevelParser (std::string category, int chapter, int rank) |
|
|
|
static std::string | BuildCategoryPath (LevelCategory category) |
| Build category path.
|
|
static std::string | BuildCategoryPath (std::string category) |
|
|
static std::string | BuildScenePath (LevelCategory category, int chapter, int rank, bool sceneFile=true) |
| Build level filename.
|
|
static std::string | BuildScenePath (std::string category, int chapter, int rank, bool sceneFile=true) |
|
The documentation for this class was generated from the following files:
- /build/colobot-0.1.6/src/level/parser/parser.h
- /build/colobot-0.1.6/src/level/parser/parser.cpp