mkRPG
Data Structures | Defines | Typedefs | Enumerations | Functions
src/editor/Game/xmlreader.h File Reference

Definition of the XmlTree class and other related functions to read XML game's files. More...

#include <QtXml>
#include "game.h"

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, MarkUpmarkUps ({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)
GameimportGame (const QString &fileName)

Detailed Description

Definition of the XmlTree class and other related functions to read XML game's files.


Typedef Documentation

typedef std::pair<QString,MarkUp> Asso

Association dictionnary to convert mark-ups.


Function Documentation

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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines