|
Colobot
|
Public Member Functions | |
| CLevelParser () | |
| Create an empty level file. | |
| CLevelParser (std::string filename) | |
| Load level from file. | |
| CLevelParser (std::string category, int chapter, int rank) | |
| Load given level. | |
| bool | Exists () |
| Check if level file exists. | |
| void | Load () |
| Load file. | |
| void | Save () |
| Save file. | |
| const std::string & | GetFilename () |
| Get filename. | |
| std::vector< CLevelParserLine * > | GetLines () |
| Get all lines from file. | |
| void | AddLine (CLevelParserLine *line) |
| Insert new line to file. | |
| CLevelParserLine * | Get (std::string command) |
| Find first line with given command. | |
Static Public Member Functions | |
| static std::string | BuildCategoryPath (std::string category) |
| Build category path. | |
| static std::string | BuildScenePath (std::string category, int chapter, int rank, bool sceneFile=true) |
| Build level filename. | |
1.8.8