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 /commonTypes.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 'commonTypes.h')
| -rw-r--r-- | commonTypes.h | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/commonTypes.h b/commonTypes.h new file mode 100644 index 0000000..b1aea7a --- /dev/null +++ b/commonTypes.h @@ -0,0 +1,160 @@ +#pragma once
+
+#include "common.h"
+
+enum ShadeBy
+{
+ ShadeNone,
+ ShadeXml,
+ ShadeMat,
+ ShadeLayer,
+ ShadeVein,
+ ShadeMatFore,
+ ShadeMatBack,
+ ShadeLayerFore,
+ ShadeLayerBack,
+ ShadeVeinFore,
+ ShadeVeinBack
+} ;
+struct t_subSprite
+{
+ int32_t sheetIndex;
+ int32_t fileIndex;
+ ALLEGRO_COLOR shadeColor;
+ ShadeBy shadeBy;
+} ;
+
+struct t_SpriteWithOffset{
+ int32_t sheetIndex;
+ int16_t x;
+ int16_t y;
+ int32_t fileIndex;
+ uint8_t numVariations;
+ char animFrames;
+ ALLEGRO_COLOR shadeColor;
+ bool needOutline;
+ vector<t_subSprite> subSprites;
+ ShadeBy shadeBy;
+} ;
+
+typedef struct dfColors
+{
+ uint8_t black_r;
+ uint8_t black_g;
+ uint8_t black_b;
+ uint8_t blue_r;
+ uint8_t blue_g;
+ uint8_t blue_b;
+ uint8_t green_r;
+ uint8_t green_g;
+ uint8_t green_b;
+ uint8_t cyan_r;
+ uint8_t cyan_g;
+ uint8_t cyan_b;
+ uint8_t red_r;
+ uint8_t red_g;
+ uint8_t red_b;
+ uint8_t magenta_r;
+ uint8_t magenta_g;
+ uint8_t magenta_b;
+ uint8_t brown_r;
+ uint8_t brown_g;
+ uint8_t brown_b;
+ uint8_t lgray_r;
+ uint8_t lgray_g;
+ uint8_t lgray_b;
+ uint8_t dgray_r;
+ uint8_t dgray_g;
+ uint8_t dgray_b;
+ uint8_t lblue_r;
+ uint8_t lblue_g;
+ uint8_t lblue_b;
+ uint8_t lgreen_r;
+ uint8_t lgreen_g;
+ uint8_t lgreen_b;
+ uint8_t lcyan_r;
+ uint8_t lcyan_g;
+ uint8_t lcyan_b;
+ uint8_t lred_r;
+ uint8_t lred_g;
+ uint8_t lred_b;
+ uint8_t lmagenta_r;
+ uint8_t lmagenta_g;
+ uint8_t lmagenta_b;
+ uint8_t yellow_r;
+ uint8_t yellow_g;
+ uint8_t yellow_b;
+ uint8_t white_r;
+ uint8_t white_g;
+ uint8_t white_b;
+} dfColors;
+
+typedef struct Crd2D {
+ int32_t x,y;
+}Crd2D;
+typedef struct Crd3D {
+ int32_t x,y,z;
+}Crd3D;
+
+
+typedef struct {
+ bool show_zones;
+ bool show_stockpiles;
+ bool show_osd;
+ bool single_layer_view;
+ bool shade_hidden_blocks;
+ bool show_hidden_blocks;
+ bool show_creature_names;
+ bool names_use_nick;
+ bool names_use_species;
+ bool show_all_creatures;
+ bool load_ground_materials;
+ bool hide_outer_blocks;
+ bool debug_mode;
+ bool track_center;
+ int lift_segment_offscreen;
+ bool truncate_walls;
+ bool follow_DFscreen;
+ bool verbose_logging;
+ int viewXoffset;
+ int viewYoffset;
+ int viewZoffset;
+ int automatic_reload_time;
+ int automatic_reload_step;
+ int animation_step;
+ int fontsize;
+ ALLEGRO_PATH * font;
+ int screenWidth;
+ int screenHeight;
+ bool Fullscreen;
+ bool show_intro;
+ int fogr;
+ int fogg;
+ int fogb;
+ int foga;
+ int backr;
+ int backg;
+ int backb;
+ bool fogenable;
+ Crd3D segmentSize;
+
+ bool follow_DFcursor;
+ int dfCursorX;
+ int dfCursorY;
+ int dfCursorZ;
+ unsigned int cellDimX;
+ unsigned int cellDimY;
+ unsigned int cellDimZ;
+
+ bool saveImageCache;
+ bool cache_images;
+ int imageCacheSize;
+ dfColors colors;
+} GameConfiguration;
+
+
+enum enumCreatureSex{
+ eCreatureSex_NA,
+ eCreatureSex_Male,
+ eCreatureSex_Female
+};
\ No newline at end of file |
