Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
CLevelParser Class Reference

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.
 
CLevelParserLineGet (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.
 

The documentation for this class was generated from the following files: