30 #include "graphics/engine/planet_type.h" 36 #include "object/drive_type.h" 37 #include "object/mission_type.h" 39 #include "object/tool_type.h" 48 using CLevelParserParamUPtr = std::unique_ptr<CLevelParserParam>;
49 using CLevelParserParamVec = std::vector<CLevelParserParamUPtr>;
76 std::string AsString();
78 std::string AsPath(
const std::string defaultDir);
82 DriveType AsDriveType();
83 ToolType AsToolType();
90 MissionType AsMissionType();
91 const CLevelParserParamVec& AsArray();
98 float AsFloat(
float def);
99 std::string AsString(std::string def);
100 bool AsBool(
bool def);
101 std::string AsPath(
const std::string defaultDir, std::string def);
105 DriveType AsDriveType(DriveType def);
106 ToolType AsToolType(ToolType def);
109 int AsBuildFlag(
int def);
110 int AsResearchFlag(
int def);
113 MissionType AsMissionType(MissionType def);
121 std::string GetName();
122 std::string GetValue();
125 static const std::string FromObjectType(
ObjectType value);
131 template<
typename T> T Cast(std::string value, std::string requestedType);
132 template<
typename T> T Cast(std::string requestedType);
134 std::string ToPath(std::string path,
const std::string defaultDir);
136 DriveType ToDriveType(std::string value);
137 ToolType ToToolType(std::string value);
140 int ToBuildFlag(std::string value);
141 int ToResearchFlag(std::string value);
144 MissionType ToMissionType(std::string value);
150 bool m_empty =
false;
153 CLevelParserParamVec m_array;
CameraType
Type of camera.
Definition: camera.h:44
Camera handling - CCamera class.
EngineObjectType
Class of graphics engine object.
Definition: engine.h:171
WaterType
Mode of water display.
Definition: water.h:45
Point struct and related functions.
Definition: parserline.h:37
PyroType
Type of pyro effect.
Definition: pyro_type.h:34
Color structs and related functions.
Definition: parserparam.h:51
void SetLine(CLevelParserLine *line)
Set line this param is part of.
Definition: parserparam.cpp:108
2D point
Definition: point.h:50
int AsInt()
Get value (throws exception if not found or unable to process)
Definition: parserparam.cpp:153
ObjectType
Type of game object.
Definition: object_type.h:33
CLevelParserParam(int value)
Create param with given value.
Definition: parserparam.cpp:49
3D (3x1) vector
Definition: vector.h:53
RGBA color.
Definition: color.h:39
Water rendering - CWater class.
PlanetType
Type of planet which determines when it is displayed.
Definition: planet_type.h:29
CLevelParserLine * GetLine()
Get line this param is part of.
Definition: parserparam.cpp:113