Keine Beschreibung

project.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef PROJECT_H
  2. #define PROJECT_H
  3. #include "map.h"
  4. #include "blockdata.h"
  5. #include <QStringList>
  6. #include <QList>
  7. class Project
  8. {
  9. public:
  10. Project();
  11. QString root;
  12. QStringList *groupNames = NULL;
  13. QList<QStringList*> *groupedMapNames = NULL;
  14. QStringList *mapNames = NULL;
  15. QMap<QString, Map*> *map_cache;
  16. Map* loadMap(QString);
  17. Map* getMap(QString);
  18. QMap<QString, Tileset*> *tileset_cache = NULL;
  19. Tileset* loadTileset(QString);
  20. Tileset* getTileset(QString);
  21. Blockdata* readBlockdata(QString);
  22. void loadBlockdata(Map*);
  23. QString readTextFile(QString path);
  24. void saveTextFile(QString path, QString text);
  25. void readMapGroups();
  26. QString getProjectTitle();
  27. QList<QStringList>* getLabelMacros(QList<QStringList>*, QString);
  28. QStringList* getLabelValues(QList<QStringList>*, QString);
  29. void readMapHeader(Map*);
  30. void readMapAttributes(Map*);
  31. void getTilesets(Map*);
  32. void loadTilesetAssets(Tileset*);
  33. QString getBlockdataPath(Map*);
  34. void saveBlockdata(Map*);
  35. void writeBlockdata(QString, Blockdata*);
  36. void saveAllMaps();
  37. void saveMap(Map*);
  38. void saveMapHeader(Map*);
  39. QList<QStringList>* parse(QString text);
  40. QStringList getSongNames();
  41. QString getSongName(int);
  42. QStringList getLocations();
  43. QStringList getVisibilities();
  44. QStringList getWeathers();
  45. QStringList getMapTypes();
  46. QStringList getBattleScenes();
  47. void loadObjectPixmaps(QList<Event*> objects);
  48. QMap<QString, int> getMapObjGfxConstants();
  49. QString fixGraphicPath(QString path);
  50. void readMapEvents(Map *map);
  51. void loadMapConnections(Map *map);
  52. void loadMapBorder(Map *map);
  53. QString getMapBorderPath(Map *map);
  54. void saveMapEvents(Map *map);
  55. QStringList readCArray(QString text, QString label);
  56. QString readCIncbin(QString text, QString label);
  57. QMap<QString, int> readCDefines(QString text, QStringList prefixes);
  58. };
  59. #endif // PROJECT_H