Colobot
|
Public Member Functions | |
CLevelParserParam (std::string name, std::string value) | |
Create param from string. More... | |
CLevelParserParam (std::string name, bool empty) | |
Create empty parser param. More... | |
void | SetLine (CLevelParserLine *line) |
Set line this param is part of. More... | |
CLevelParserLine * | GetLine () |
Get line this param is part of. More... | |
std::string | GetName () |
std::string | GetValue () |
bool | IsDefined () |
CLevelParserParam (int value) | |
Create param with given value. More... | |
CLevelParserParam (float value) | |
Create param with given value. More... | |
CLevelParserParam (std::string value) | |
Create param with given value. More... | |
CLevelParserParam (bool value) | |
Create param with given value. More... | |
CLevelParserParam (Gfx::Color value) | |
Create param with given value. More... | |
CLevelParserParam (Math::Point value) | |
Create param with given value. More... | |
CLevelParserParam (Math::Vector value) | |
Create param with given value. More... | |
CLevelParserParam (ObjectType value) | |
Create param with given value. More... | |
CLevelParserParam (Gfx::CameraType value) | |
Create param with given value. More... | |
CLevelParserParam (CLevelParserParamVec &&array) | |
Create param with given value. More... | |
int | AsInt () |
Get value (throws exception if not found or unable to process) More... | |
float | AsFloat () |
Get value (throws exception if not found or unable to process) More... | |
std::string | AsString () |
Get value (throws exception if not found or unable to process) More... | |
bool | AsBool () |
Get value (throws exception if not found or unable to process) More... | |
std::string | AsPath (const std::string defaultDir) |
Get value (throws exception if not found or unable to process) More... | |
Gfx::Color | AsColor () |
Get value (throws exception if not found or unable to process) More... | |
Math::Vector | AsPoint () |
Get value (throws exception if not found or unable to process) More... | |
ObjectType | AsObjectType () |
Get value (throws exception if not found or unable to process) More... | |
DriveType | AsDriveType () |
Get value (throws exception if not found or unable to process) More... | |
ToolType | AsToolType () |
Get value (throws exception if not found or unable to process) More... | |
Gfx::WaterType | AsWaterType () |
Get value (throws exception if not found or unable to process) More... | |
Gfx::EngineObjectType | AsTerrainType () |
Get value (throws exception if not found or unable to process) More... | |
int | AsBuildFlag () |
Get value (throws exception if not found or unable to process) More... | |
int | AsResearchFlag () |
Get value (throws exception if not found or unable to process) More... | |
Gfx::PyroType | AsPyroType () |
Get value (throws exception if not found or unable to process) More... | |
Gfx::CameraType | AsCameraType () |
Get value (throws exception if not found or unable to process) More... | |
MissionType | AsMissionType () |
Get value (throws exception if not found or unable to process) More... | |
const CLevelParserParamVec & | AsArray () |
Get value (throws exception if not found or unable to process) More... | |
Gfx::PlanetType | AsPlanetType () |
Get value (throws exception if not found or unable to process) More... | |
int | AsInt (int def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
float | AsFloat (float def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
std::string | AsString (std::string def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
bool | AsBool (bool def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
std::string | AsPath (const std::string defaultDir, std::string def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
Gfx::Color | AsColor (Gfx::Color def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
Math::Vector | AsPoint (Math::Vector def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
ObjectType | AsObjectType (ObjectType def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
DriveType | AsDriveType (DriveType def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
ToolType | AsToolType (ToolType def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
Gfx::WaterType | AsWaterType (Gfx::WaterType def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
Gfx::EngineObjectType | AsTerrainType (Gfx::EngineObjectType def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
int | AsBuildFlag (int def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
int | AsResearchFlag (int def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
Gfx::PyroType | AsPyroType (Gfx::PyroType def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
Gfx::CameraType | AsCameraType (Gfx::CameraType def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
MissionType | AsMissionType (MissionType def) |
Get value (returns default if not found, throws exception if unable to process) More... | |
Static Public Member Functions | |
static const std::string | FromObjectType (ObjectType value) |
CLevelParserParam::CLevelParserParam | ( | int | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | float | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | std::string | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | bool | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | Gfx::Color | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | Math::Point | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | Math::Vector | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | ObjectType | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | Gfx::CameraType | value | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | CLevelParserParamVec && | array | ) |
Create param with given value.
CLevelParserParam::CLevelParserParam | ( | std::string | name, |
std::string | value | ||
) |
Create param from string.
CLevelParserParam::CLevelParserParam | ( | std::string | name, |
bool | empty | ||
) |
Create empty parser param.
int CLevelParserParam::AsInt | ( | ) |
Get value (throws exception if not found or unable to process)
float CLevelParserParam::AsFloat | ( | ) |
Get value (throws exception if not found or unable to process)
std::string CLevelParserParam::AsString | ( | ) |
Get value (throws exception if not found or unable to process)
bool CLevelParserParam::AsBool | ( | ) |
Get value (throws exception if not found or unable to process)
std::string CLevelParserParam::AsPath | ( | const std::string | defaultDir | ) |
Get value (throws exception if not found or unable to process)
Gfx::Color CLevelParserParam::AsColor | ( | ) |
Get value (throws exception if not found or unable to process)
Math::Vector CLevelParserParam::AsPoint | ( | ) |
Get value (throws exception if not found or unable to process)
ObjectType CLevelParserParam::AsObjectType | ( | ) |
Get value (throws exception if not found or unable to process)
DriveType CLevelParserParam::AsDriveType | ( | ) |
Get value (throws exception if not found or unable to process)
ToolType CLevelParserParam::AsToolType | ( | ) |
Get value (throws exception if not found or unable to process)
Gfx::WaterType CLevelParserParam::AsWaterType | ( | ) |
Get value (throws exception if not found or unable to process)
Gfx::EngineObjectType CLevelParserParam::AsTerrainType | ( | ) |
Get value (throws exception if not found or unable to process)
int CLevelParserParam::AsBuildFlag | ( | ) |
Get value (throws exception if not found or unable to process)
int CLevelParserParam::AsResearchFlag | ( | ) |
Get value (throws exception if not found or unable to process)
Gfx::PyroType CLevelParserParam::AsPyroType | ( | ) |
Get value (throws exception if not found or unable to process)
Gfx::CameraType CLevelParserParam::AsCameraType | ( | ) |
Get value (throws exception if not found or unable to process)
MissionType CLevelParserParam::AsMissionType | ( | ) |
Get value (throws exception if not found or unable to process)
const CLevelParserParamVec & CLevelParserParam::AsArray | ( | ) |
Get value (throws exception if not found or unable to process)
Gfx::PlanetType CLevelParserParam::AsPlanetType | ( | ) |
Get value (throws exception if not found or unable to process)
int CLevelParserParam::AsInt | ( | int | def | ) |
Get value (returns default if not found, throws exception if unable to process)
float CLevelParserParam::AsFloat | ( | float | def | ) |
Get value (returns default if not found, throws exception if unable to process)
std::string CLevelParserParam::AsString | ( | std::string | def | ) |
Get value (returns default if not found, throws exception if unable to process)
bool CLevelParserParam::AsBool | ( | bool | def | ) |
Get value (returns default if not found, throws exception if unable to process)
std::string CLevelParserParam::AsPath | ( | const std::string | defaultDir, |
std::string | def | ||
) |
Get value (returns default if not found, throws exception if unable to process)
Gfx::Color CLevelParserParam::AsColor | ( | Gfx::Color | def | ) |
Get value (returns default if not found, throws exception if unable to process)
Math::Vector CLevelParserParam::AsPoint | ( | Math::Vector | def | ) |
Get value (returns default if not found, throws exception if unable to process)
ObjectType CLevelParserParam::AsObjectType | ( | ObjectType | def | ) |
Get value (returns default if not found, throws exception if unable to process)
DriveType CLevelParserParam::AsDriveType | ( | DriveType | def | ) |
Get value (returns default if not found, throws exception if unable to process)
ToolType CLevelParserParam::AsToolType | ( | ToolType | def | ) |
Get value (returns default if not found, throws exception if unable to process)
Gfx::WaterType CLevelParserParam::AsWaterType | ( | Gfx::WaterType | def | ) |
Get value (returns default if not found, throws exception if unable to process)
Gfx::EngineObjectType CLevelParserParam::AsTerrainType | ( | Gfx::EngineObjectType | def | ) |
Get value (returns default if not found, throws exception if unable to process)
int CLevelParserParam::AsBuildFlag | ( | int | def | ) |
Get value (returns default if not found, throws exception if unable to process)
int CLevelParserParam::AsResearchFlag | ( | int | def | ) |
Get value (returns default if not found, throws exception if unable to process)
Gfx::PyroType CLevelParserParam::AsPyroType | ( | Gfx::PyroType | def | ) |
Get value (returns default if not found, throws exception if unable to process)
Gfx::CameraType CLevelParserParam::AsCameraType | ( | Gfx::CameraType | def | ) |
Get value (returns default if not found, throws exception if unable to process)
MissionType CLevelParserParam::AsMissionType | ( | MissionType | def | ) |
Get value (returns default if not found, throws exception if unable to process)
void CLevelParserParam::SetLine | ( | CLevelParserLine * | line | ) |
Set line this param is part of.
CLevelParserLine * CLevelParserParam::GetLine | ( | ) |
Get line this param is part of.