summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/rltiles/tool/tile_list_processor.h
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-23 17:07:46 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2008-08-23 17:07:46 +0000
commitb25208caa5f84ac6c370314945c6f110261d2c70 (patch)
treec477c16395f409c901bc7d405b14db67ff4a4d90 /crawl-ref/source/rltiles/tool/tile_list_processor.h
parent02bae5372f40ac282701831cc61deb2483938876 (diff)
downloadcrawl-ref-b25208caa5f84ac6c370314945c6f110261d2c70.tar.gz
crawl-ref-b25208caa5f84ac6c370314945c6f110261d2c70.zip
RLTiles complete code rewrite: now much more robust and functional.
Added PNG and non-palettized image input. Added PNG output. Added better tile packing and support for tiles of different sizes. Converted all BMPs to PNGs (for space and explicit transparency reasons.) Added the 48x32 pandemonium demon tiles, but these are not yet used in game. Added Bill B.'s portal tile (finally). The Win32 makefiles are not updated quite yet and thus will not build. Sorry. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6850 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/rltiles/tool/tile_list_processor.h')
-rw-r--r--crawl-ref/source/rltiles/tool/tile_list_processor.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/crawl-ref/source/rltiles/tool/tile_list_processor.h b/crawl-ref/source/rltiles/tool/tile_list_processor.h
new file mode 100644
index 0000000000..cb3c22da49
--- /dev/null
+++ b/crawl-ref/source/rltiles/tool/tile_list_processor.h
@@ -0,0 +1,40 @@
+#ifndef TILE_LIST_PROCESSOR_H
+#define TILE_LIST_PROCESSOR_H
+
+#include "tile.h"
+#include "tile_page.h"
+#include <string>
+#include <vector>
+
+class tile_list_processor
+{
+public:
+ tile_list_processor();
+
+ bool process_list(const char *list_file);
+ bool write_data();
+protected:
+ bool load_image(tile &img, const char *filename);
+ bool process_line(char *read_line, const char *list_file, int line);
+ void add_image(tile &img, const char *enumname);
+
+ std::string m_name;
+
+ tile_page m_page;
+ unsigned int m_last_enum;
+
+ // image options
+ bool m_rim;
+ bool m_corpsify;
+ bool m_composing;
+ bool m_shrink;
+ tile m_back;
+ std::string m_parts_ctg;
+ std::string m_sdir;
+ std::string m_prefix;
+ std::vector<std::string> m_categories;
+ std::vector<int> m_ctg_counts;
+ tile m_compose;
+};
+
+#endif