Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
cmdtoken.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Colobot: Gold Edition source code
3  * Copyright (C) 2001-2014, Daniel Roux, EPSITEC SA & TerranovaTeam
4  * http://epsiteс.ch; http://colobot.info; http://github.com/colobot
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see http://gnu.org/licenses
18  */
19 
25 #pragma once
26 
27 
28 #include "graphics/engine/water.h"
29 #include "graphics/engine/engine.h"
30 #include "graphics/engine/pyro.h"
31 
32 
33 
34 // Procedures.
35 
36 extern std::string GetCmd(char* line);
37 extern bool Cmd(char *line, const char *token);
38 extern char* SearchOp(char *line, const char *op);
39 
40 extern int GetInt(char *line, int rank, int def);
41 extern float GetFloat(char *line, int rank, float def);
42 extern void GetString(char *line, int rank, char *buffer);
43 extern ObjectType GetTypeObject(char *line, int rank, ObjectType def);
44 extern const char* GetTypeObject(ObjectType type);
45 extern Gfx::WaterType GetTypeWater(char *line, int rank, Gfx::WaterType def);
46 extern Gfx::EngineObjectType GetTypeTerrain(char *line, int rank, Gfx::EngineObjectType def);
47 extern int GetBuild(char *line, int rank);
48 extern int GetResearch(char *line, int rank);
49 extern Gfx::PyroType GetPyro(char *line, int rank);
50 extern Gfx::CameraType GetCamera(char *line, int rank);
51 extern const char* GetCamera(Gfx::CameraType type);
52 extern DriveType GetDrive(char *line, int rank);
53 extern const char* GetDrive(DriveType type);
54 extern ToolType GetTool(char *line, int rank);
55 extern const char* GetTool(ToolType type);
56 
57 extern int OpInt(char *line, const char *op, int def);
58 extern float OpFloat(char *line, const char *op, float def);
59 extern void OpString(char *line, const char *op, char *buffer);
60 extern ObjectType OpTypeObject(char *line, const char *op, ObjectType def);
61 extern Gfx::WaterType OpTypeWater(char *line, const char *op, Gfx::WaterType def);
62 extern Gfx::EngineObjectType OpTypeTerrain(char *line, const char *op, Gfx::EngineObjectType def);
63 extern int OpResearch(char *line, const char *op);
64 extern Gfx::PyroType OpPyro(char *line, const char *op);
65 extern Gfx::CameraType OpCamera(char *line, const char *op);
66 extern DriveType OpDrive(char *line, const char *op);
67 extern ToolType OpTool(char *line, const char *op);
68 extern int OpBuild(char *line, const char *op);
69 extern Math::Vector OpPos(char *line, const char *op);
70 extern Math::Vector OpDir(char *line, const char *op);
71 extern Gfx::Color OpColor(char *line, const char *op, Gfx::Color def);
72 
CameraType
Type of camera.
Definition: camera.h:45
Main graphics engine - CEngine class.
EngineObjectType
Class of graphics engine object.
Definition: engine.h:168
WaterType
Mode of water display.
Definition: water.h:91
Fire effect rendering - CPyro class.
PyroType
Type of pyro effect.
Definition: pyro.h:55
ObjectType
Type of game object.
Definition: object.h:51
3D (3x1) vector
Definition: vector.h:52
RGBA color.
Definition: color.h:38
Water rendering - CWater class.