Keine Beschreibung

project.h 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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, QString> mapConstantsToMapNames;
  16. QMap<QString, QString> mapNamesToMapConstants;
  17. QMap<QString, Map*> *map_cache;
  18. Map* loadMap(QString);
  19. Map* getMap(QString);
  20. QMap<QString, Tileset*> *tileset_cache = NULL;
  21. Tileset* loadTileset(QString);
  22. Tileset* getTileset(QString);
  23. Blockdata* readBlockdata(QString);
  24. void loadBlockdata(Map*);
  25. QString readTextFile(QString path);
  26. void saveTextFile(QString path, QString text);
  27. void readMapGroups();
  28. QString getProjectTitle();
  29. QList<QStringList>* getLabelMacros(QList<QStringList>*, QString);
  30. QStringList* getLabelValues(QList<QStringList>*, QString);
  31. void readMapHeader(Map*);
  32. void readMapAttributes(Map*);
  33. void getTilesets(Map*);
  34. void loadTilesetAssets(Tileset*);
  35. QString getBlockdataPath(Map*);
  36. void saveBlockdata(Map*);
  37. void writeBlockdata(QString, Blockdata*);
  38. void saveAllMaps();
  39. void saveMap(Map*);
  40. void saveMapHeader(Map*);
  41. QList<QStringList>* parse(QString text);
  42. QStringList getSongNames();
  43. QString getSongName(int);
  44. QStringList getLocations();
  45. QStringList getVisibilities();
  46. QStringList getWeathers();
  47. QStringList getMapTypes();
  48. QStringList getBattleScenes();
  49. void loadObjectPixmaps(QList<Event*> objects);
  50. QMap<QString, int> getMapObjGfxConstants();
  51. QString fixGraphicPath(QString path);
  52. void readMapEvents(Map *map);
  53. void loadMapConnections(Map *map);
  54. void loadMapBorder(Map *map);
  55. QString getMapBorderPath(Map *map);
  56. void saveMapEvents(Map *map);
  57. QStringList readCArray(QString text, QString label);
  58. QString readCIncbin(QString text, QString label);
  59. QMap<QString, int> readCDefines(QString text, QStringList prefixes);
  60. };
  61. #endif // PROJECT_H