summaryrefslogtreecommitdiff
path: root/VegetationConfiguration.h
diff options
context:
space:
mode:
authorJapa2010-04-09 14:24:27 +0000
committerJapa2010-04-09 14:24:27 +0000
commit114df922d3073bd296b38cf522997f520fb17850 (patch)
treec4cf372825118c3663cd77e18c69a6c3b59d070f /VegetationConfiguration.h
parent81aefc8e03ff3f647494012e18bcdc8f33f4de42 (diff)
downloadstonesense-114df922d3073bd296b38cf522997f520fb17850.tar.gz
stonesense-114df922d3073bd296b38cf522997f520fb17850.tar.bz2
stonesense-114df922d3073bd296b38cf522997f520fb17850.tar.xz
updated trunk to the new graphics engine, and the latest DFhack
Diffstat (limited to 'VegetationConfiguration.h')
-rw-r--r--VegetationConfiguration.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/VegetationConfiguration.h b/VegetationConfiguration.h
new file mode 100644
index 0000000..a399b6e
--- /dev/null
+++ b/VegetationConfiguration.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "dfhack/depends/tinyxml/tinyxml.h"
+
+class VegetationConfiguration
+{
+public:
+ int gameID;
+ bool live;
+ bool grown;
+ t_SpriteWithOffset sprite;
+
+ VegetationConfiguration(){}
+ VegetationConfiguration(int gameID, t_SpriteWithOffset &sprite, bool live, bool grown);
+ ~VegetationConfiguration(void);
+};
+
+
+bool addSingleVegetationConfig( TiXmlElement* elemRoot, vector<VegetationConfiguration>* vegetationConfigs, vector<t_matgloss>& plantNames );
+t_SpriteWithOffset getVegetationSprite(vector<VegetationConfiguration>& vegetationConfigs,int index,bool live,bool grown);