OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4MapCreatorS2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  C4MCAlgorithm
 
class  C4MCCallbackArray
 
class  C4MCCallbackArrayList
 
class  C4MCNode
 
class  C4MCNode::int_bool
 
class  C4MCOverlay
 
class  C4MCPoint
 
class  C4MCMap
 
class  C4MapCreatorS2
 
class  C4MCParserErr
 
class  C4MCParser
 

Macros

#define C4MC_SizeRes   100
 
#define C4MC_ZoomRes   100
 
#define C4MC_Overlay   "overlay"
 
#define C4MC_Point   "point"
 
#define C4MC_Map   "map"
 
#define C4MC_DefAlgo   "solid"
 
#define C4MCErr_404   "file not found"
 
#define C4MCErr_NoGroup   "internal error: no group"
 
#define C4MCErr_EOF   "unexpected end of file"
 
#define C4MCErr_NoDirGlobal   "can't use directives in local scope"
 
#define C4MCErr_UnknownDir   "unknown directive: %s"
 
#define C4MCErr_MapNoGlobal   "can't declare map in local scope"
 
#define C4MCErr_OpTypeErr   "operator type mismatch"
 
#define C4MCErr_IdtfExp   "identifier expected"
 
#define C4MCErr_UnnamedNoGlbl   "unnamed objects not allowed in global scope"
 
#define C4MCErr_BlOpenExp   "'{' expected"
 
#define C4MCErr_OpsNoGlobal   "operators not allowed in global scope"
 
#define C4MCErr_SColonOrOpExp   "';' or operator expected"
 
#define C4MCErr_Obj2Exp   "second operand expected"
 
#define C4MCErr_ReinstNoGlobal   "can't reinstanciate object '%s' in global scope"
 
#define C4MCErr_UnknownObj   "unknown object: %s"
 
#define C4MCErr_ReinstUnknown   "can't reinstanciate '%s'; object type is unknown"
 
#define C4MCErr_EqSColonBlOpenExp   "'=', ';' or '{' expected"
 
#define C4MCErr_FieldConstExp   "constant for field '%s' expected"
 
#define C4MCErr_SColonExp   "';' expected"
 
#define C4MCErr_Field404   "field '%s' not found"
 
#define C4MCErr_FieldValInvalid   "'%s' is not a valid value for this field"
 
#define C4MCErr_MatNotFound   "material '%s' not found"
 
#define C4MCErr_TexNotFound   "texture '%s' not found"
 
#define C4MCErr_AlgoNotFound   "algorithm '%s' not found"
 
#define C4MCErr_SFuncNotFound   "script func '%s' not found in scenario script"
 
#define C4MCErr_PointOnlyOvl   "point only allowed in overlays"
 
#define C4MCErr_NoRecTemplate   "cannot use template '%s' within itself"
 

Enumerations

enum  C4MCNodeType { MCN_Node, MCN_Overlay, MCN_Point, MCN_Map }
 
enum  C4MCTokenType {
  MCT_NONE, MCT_DIR, MCT_IDTF, MCT_INT,
  MCT_EQ, MCT_BLOPEN, MCT_BLCLOSE, MCT_SCOLON,
  MCT_AND, MCT_OR, MCT_XOR, MCT_RANGE,
  MCT_PERCENT, MCT_PX, MCT_EOF
}
 

Variables

C4MCAlgorithm C4MCAlgoMap []
 

Macro Definition Documentation

#define C4MC_DefAlgo   "solid"

Definition at line 29 of file C4MapCreatorS2.h.

Referenced by C4MCOverlay::Default().

#define C4MC_Map   "map"

Definition at line 27 of file C4MapCreatorS2.h.

#define C4MC_Overlay   "overlay"

Definition at line 25 of file C4MapCreatorS2.h.

#define C4MC_Point   "point"

Definition at line 26 of file C4MapCreatorS2.h.

#define C4MC_SizeRes   100
#define C4MC_ZoomRes   100

Definition at line 22 of file C4MapCreatorS2.h.

Referenced by C4MCOverlay::Default(), and C4MCOverlay::SetField().

#define C4MCErr_404   "file not found"

Definition at line 32 of file C4MapCreatorS2.h.

Referenced by C4MCParser::ParseFile().

#define C4MCErr_AlgoNotFound   "algorithm '%s' not found"

Definition at line 56 of file C4MapCreatorS2.h.

Referenced by C4MCOverlay::SetField().

#define C4MCErr_BlOpenExp   "'{' expected"

Definition at line 42 of file C4MapCreatorS2.h.

#define C4MCErr_EOF   "unexpected end of file"

Definition at line 35 of file C4MapCreatorS2.h.

#define C4MCErr_EqSColonBlOpenExp   "'=', ';' or '{' expected"

Definition at line 49 of file C4MapCreatorS2.h.

#define C4MCErr_Field404   "field '%s' not found"

Definition at line 52 of file C4MapCreatorS2.h.

#define C4MCErr_FieldConstExp   "constant for field '%s' expected"

Definition at line 50 of file C4MapCreatorS2.h.

#define C4MCErr_FieldValInvalid   "'%s' is not a valid value for this field"

Definition at line 53 of file C4MapCreatorS2.h.

Referenced by C4MCNode::IntPar(), and C4MCNode::StrPar().

#define C4MCErr_IdtfExp   "identifier expected"

Definition at line 40 of file C4MapCreatorS2.h.

#define C4MCErr_MapNoGlobal   "can't declare map in local scope"

Definition at line 38 of file C4MapCreatorS2.h.

#define C4MCErr_MatNotFound   "material '%s' not found"

Definition at line 54 of file C4MapCreatorS2.h.

Referenced by C4MCOverlay::SetField().

#define C4MCErr_NoDirGlobal   "can't use directives in local scope"

Definition at line 36 of file C4MapCreatorS2.h.

#define C4MCErr_NoGroup   "internal error: no group"

Definition at line 33 of file C4MapCreatorS2.h.

Referenced by C4MCParser::ParseFile().

#define C4MCErr_NoRecTemplate   "cannot use template '%s' within itself"

Definition at line 59 of file C4MapCreatorS2.h.

Referenced by C4MCNode::C4MCNode().

#define C4MCErr_Obj2Exp   "second operand expected"

Definition at line 45 of file C4MapCreatorS2.h.

#define C4MCErr_OpsNoGlobal   "operators not allowed in global scope"

Definition at line 43 of file C4MapCreatorS2.h.

#define C4MCErr_OpTypeErr   "operator type mismatch"

Definition at line 39 of file C4MapCreatorS2.h.

#define C4MCErr_PointOnlyOvl   "point only allowed in overlays"

Definition at line 58 of file C4MapCreatorS2.h.

#define C4MCErr_ReinstNoGlobal   "can't reinstanciate object '%s' in global scope"

Definition at line 46 of file C4MapCreatorS2.h.

#define C4MCErr_ReinstUnknown   "can't reinstanciate '%s'; object type is unknown"

Definition at line 48 of file C4MapCreatorS2.h.

#define C4MCErr_SColonExp   "';' expected"

Definition at line 51 of file C4MapCreatorS2.h.

#define C4MCErr_SColonOrOpExp   "';' or operator expected"

Definition at line 44 of file C4MapCreatorS2.h.

#define C4MCErr_SFuncNotFound   "script func '%s' not found in scenario script"

Definition at line 57 of file C4MapCreatorS2.h.

Referenced by C4MCOverlay::SetField().

#define C4MCErr_TexNotFound   "texture '%s' not found"

Definition at line 55 of file C4MapCreatorS2.h.

Referenced by C4MCOverlay::SetField().

#define C4MCErr_UnknownDir   "unknown directive: %s"

Definition at line 37 of file C4MapCreatorS2.h.

#define C4MCErr_UnknownObj   "unknown object: %s"

Definition at line 47 of file C4MapCreatorS2.h.

#define C4MCErr_UnnamedNoGlbl   "unnamed objects not allowed in global scope"

Definition at line 41 of file C4MapCreatorS2.h.

Enumeration Type Documentation

Enumerator
MCN_Node 
MCN_Overlay 
MCN_Point 
MCN_Map 

Definition at line 81 of file C4MapCreatorS2.h.

Enumerator
MCT_NONE 
MCT_DIR 
MCT_IDTF 
MCT_INT 
MCT_EQ 
MCT_BLOPEN 
MCT_BLCLOSE 
MCT_SCOLON 
MCT_AND 
MCT_OR 
MCT_XOR 
MCT_RANGE 
MCT_PERCENT 
MCT_PX 
MCT_EOF 

Definition at line 84 of file C4MapCreatorS2.h.

85 {
86  MCT_NONE, // nothing
87  MCT_DIR, // directive (stored in CurrTokenIdtf)
88  MCT_IDTF, // identifier (stored in CurrTokenIdtf)
89  MCT_INT, // integer constant (stored in CurrTokenVal)
90  MCT_EQ, // =
91  MCT_BLOPEN, // {
92  MCT_BLCLOSE,// }
93  MCT_SCOLON, // ;
94  MCT_AND, // &
95  MCT_OR, // |
96  MCT_XOR, // ^
97  MCT_RANGE, // -
98  MCT_PERCENT,// integer constant (stored in CurrTokenVal) + %
99  MCT_PX, // integer constant (stored in CurrTokenVal) + px
100  MCT_EOF // end of file
101 };

Variable Documentation

C4MCAlgorithm C4MCAlgoMap[]

Definition at line 1746 of file C4MapCreatorS2.cpp.

Referenced by C4MCOverlay::GetAlgo().