diff options
Diffstat (limited to 'src/resources/dye.h')
-rw-r--r-- | src/resources/dye.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/resources/dye.h b/src/resources/dye.h index 34afcf8ed..03aec71cb 100644 --- a/src/resources/dye.h +++ b/src/resources/dye.h @@ -26,6 +26,8 @@ #include <string> #include <vector> +#include <SDL_stdinc.h> + const int dyePalateSize = 8; /** @@ -59,7 +61,7 @@ class DyePalette */ void getColor(double intensity, int color[3]) const; - void replaceColor(int color[3]) const; + void replaceColor(Uint8 *color) const; private: struct Color @@ -99,6 +101,18 @@ class Dye static void instantiate(std::string &target, const std::string &palettes); + /** + * Check if dye is special dye (S) + */ + bool isSpecialDye() const + { return mDyePalettes[dyePalateSize - 1]; } + + /** + * Return special dye palete (S) + */ + DyePalette *getSPalete() const + { return mDyePalettes[dyePalateSize - 1]; } + private: /** |