64 std::string AsString();
66 std::string AsPath(
const std::string defaultDir);
70 DriveType AsDriveType();
71 ToolType AsToolType();
78 const std::vector<CLevelParserParam*>& AsArray();
84 float AsFloat(
float def);
85 std::string AsString(std::string def);
86 bool AsBool(
bool def);
87 std::string AsPath(
const std::string defaultDir, std::string def);
91 DriveType AsDriveType(DriveType def);
92 ToolType AsToolType(ToolType def);
95 int AsBuildFlag(
int def);
96 int AsResearchFlag(
int def);
106 std::string GetName();
107 std::string GetValue();
114 template<
typename T> T Cast(std::string value, std::string requestedType);
115 template<
typename T> T Cast(std::string requestedType);
117 std::string ToPath(std::string path,
const std::string defaultDir);
119 DriveType ToDriveType(std::string value);
120 ToolType ToToolType(std::string value);
123 int ToBuildFlag(std::string value);
124 int ToResearchFlag(std::string value);
128 const std::string FromObjectType(
ObjectType value);
136 std::vector<CLevelParserParam*> m_array;
CameraType
Type of camera.
Definition: camera.h:45
EngineObjectType
Class of graphics engine object.
Definition: engine.h:168
WaterType
Mode of water display.
Definition: water.h:91
Point struct and related functions.
Fire effect rendering - CPyro class.
Definition: parserline.h:33
PyroType
Type of pyro effect.
Definition: pyro.h:55
Color structs and related functions.
Definition: parserparam.h:37
ObjectType
Type of game object.
Definition: object.h:51
void SetLine(CLevelParserLine *line)
Set line this param is part of.
Definition: parserparam.cpp:54
2D point
Definition: point.h:49
int AsInt()
Get value (throws exception if not found or unable to process)
Definition: parserparam.cpp:98
CObject - base class for all game objects.
CLevelParserParam(int value)
Create param with given value.
Definition: parserparam.cpp:939
3D (3x1) vector
Definition: vector.h:52
RGBA color.
Definition: color.h:38
Water rendering - CWater class.
CLevelParserLine * GetLine()
Get line this param is part of.
Definition: parserparam.cpp:59