|
mkRPG
|
Definition of the XmlTree class and other related functions to read XML game's files. More...
Go to the source code of this file.
Data Structures | |
| class | XmlTree |
| The XmlTree class represents a XML file as a tree. More... | |
Defines | |
| #define | RegMU(MU) std::pair<QString,MarkUp>(#MU, MU_##MU) |
Typedefs | |
| typedef std::pair< QString, MarkUp > | Asso |
Enumerations | |
| enum | MarkUp { MU_Invalid, MU_Files, MU_File, MU_Game, MU_World, MU_Background, MU_Parent, MU_MapType, MU_Map, MU_CellType, MU_Cell, MU_ObjectType, MU_Object, MU_EntityType, MU_Entity, MU_Image, MU_Parameter, MU_Flag, MU_Event, MU_Order } |
| The MarkUp enum describes the Mark-ups that can be find in a XML game description file. | |
Functions | |
| const QMap< QString, MarkUp > | markUps ({RegMU(Files), RegMU(File), RegMU(Game), RegMU(World), RegMU(CellType), RegMU(MapType), RegMU(Map), RegMU(ObjectType), RegMU(Object), RegMU(EntityType), RegMU(Entity), RegMU(Parent), RegMU(Cell), RegMU(Image), RegMU(Order), RegMU(Event), RegMU(Background),}) |
| void | readElement (const QDir &dir, const XmlTree &tree, Game *game, QMap< int, int > &identCV) |
| Game * | importGame (const QString &fileName) |
Definition of the XmlTree class and other related functions to read XML game's files.
| Game* importGame | ( | const QString & | fileName | ) |
Reading of a XML game file.
| void readElement | ( | const QDir & | dir, |
| const XmlTree & | tree, | ||
| Game * | game, | ||
| QMap< int, int > & | identCV | ||
| ) |
Internal use only. Generic function to read Marks-up.
1.7.6.1