diff options
| author | Japa | 2010-04-09 14:24:27 +0000 |
|---|---|---|
| committer | Japa | 2010-04-09 14:24:27 +0000 |
| commit | 114df922d3073bd296b38cf522997f520fb17850 (patch) | |
| tree | c4cf372825118c3663cd77e18c69a6c3b59d070f /CreatureConfiguration.h | |
| parent | 81aefc8e03ff3f647494012e18bcdc8f33f4de42 (diff) | |
| download | stonesense-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 'CreatureConfiguration.h')
| -rw-r--r-- | CreatureConfiguration.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/CreatureConfiguration.h b/CreatureConfiguration.h new file mode 100644 index 0000000..4aeb243 --- /dev/null +++ b/CreatureConfiguration.h @@ -0,0 +1,30 @@ +#pragma once
+#include "dfhack/depends/tinyxml/tinyxml.h"
+
+
+#define CREATURESTRLENGTH 50
+
+enum enumCreatureSpecialCases{
+ eCSC_Any,
+ eCSC_Normal,
+ eCSC_Zombie,
+ eCSC_Skeleton,
+};
+
+class CreatureConfiguration
+{
+public:
+ char professionstr[CREATURESTRLENGTH];
+ int professionID;
+ t_SpriteWithOffset sprite;
+ int shadow;
+ enumCreatureSpecialCases special;
+ enumCreatureSex sex;
+
+ CreatureConfiguration(){}
+ CreatureConfiguration(int professionID, const char* professionStr, enumCreatureSex sex, enumCreatureSpecialCases special, t_SpriteWithOffset &sprite, int shadow);
+ ~CreatureConfiguration(void);
+};
+
+
+bool addCreaturesConfig( TiXmlElement* elemRoot, vector<vector<CreatureConfiguration>*>& knownCreatures );
|
