#ifndef PROJECT_H #define PROJECT_H #include "map.h" #include "blockdata.h" #include #include #include class Project { public: Project(); QString root; QStringList *groupNames = NULL; QMap *map_groups; QList *groupedMapNames = NULL; QStringList *mapNames = NULL; QMap *mapConstantsToMapNames; QMap *mapNamesToMapConstants; QMap *mapAttributesTable; QMap *map_cache; Map* loadMap(QString); Map* getMap(QString); QMap *tileset_cache = NULL; Tileset* loadTileset(QString); Tileset* getTileset(QString); Blockdata* readBlockdata(QString); void loadBlockdata(Map*); QString readTextFile(QString path); void saveTextFile(QString path, QString text); void readMapGroups(); void addNewMapToGroup(QString mapName, int groupNum); QString getNewMapName(); QString getProjectTitle(); QList* getLabelMacros(QList*, QString); QStringList* getLabelValues(QList*, QString); void readMapHeader(Map*); void readMapAttributesTable(); void readMapAttributes(Map*); void getTilesets(Map*); void loadTilesetAssets(Tileset*); QString getBlockdataPath(Map*); void saveBlockdata(Map*); void writeBlockdata(QString, Blockdata*); void saveAllMaps(); void saveMap(Map*); void saveAllDataStructures(); QList* parse(QString text); QStringList getSongNames(); QString getSongName(int); QStringList getLocations(); QStringList getVisibilities(); QStringList getWeathers(); QStringList getMapTypes(); QStringList getBattleScenes(); void loadObjectPixmaps(QList objects); QMap getMapObjGfxConstants(); QString fixGraphicPath(QString path); void readMapEvents(Map *map); void loadMapConnections(Map *map); void loadMapBorder(Map *map); QString getMapBorderPath(Map *map); void saveMapEvents(Map *map); QStringList readCArray(QString text, QString label); QString readCIncbin(QString text, QString label); QMap readCDefines(QString text, QStringList prefixes); private: QString getMapAttributesTableFilepath(); void saveMapHeader(Map*); void saveMapAttributesTable(); }; #endif // PROJECT_H