From b26024e6075299b8d75ddc327dde7453994bc98a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20W=2E=20Urba=C5=84czyk?= Date: Mon, 30 Jun 2008 00:05:48 +0000 Subject: [PATCH] First part of commit --- client/Graphics.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/Graphics.h b/client/Graphics.h index d01addf80..5dd17272f 100644 --- a/client/Graphics.h +++ b/client/Graphics.h @@ -6,10 +6,14 @@ class CGHeroInstance; class CGTownInstance; class CDefHandler; class CHeroClass; +struct SDL_Color; class Graphics { public: //various graphics + SDL_Color * playerColors; //array [8] + SDL_Color * neutralColor; + SDL_Color * playerColorPalette; //palette to make interface colors good - array of size [256] SDL_Surface * hInfo, *tInfo; //hero and town infobox bgs std::vector > slotsPos; //creature slot positions in infoboxes CDefEssential *luck22, *luck30, *luck42, *luck82, @@ -31,6 +35,7 @@ public: //functions Graphics(); + void loadPaletteAndColors(); void loadHeroFlags(); void loadHeroFlags(std::pair Graphics::*, std::vector > &pr, bool mode); void loadHeroAnim(std::vector & anims); @@ -39,6 +44,7 @@ public: SDL_Surface * drawPrimarySkill(const CGHeroInstance *curh, SDL_Surface *ret, int from=0, int to=PRIMARY_SKILLS); SDL_Surface * drawTownInfoWin(const CGTownInstance * curh); SDL_Surface * getPic(int ID, bool fort=true, bool builded=false); //returns small picture of town: ID=-1 - blank; -2 - border; -3 - random + void blueToPlayersAdv(SDL_Surface * sur, int player); //replaces blue interface colour with a color of player }; extern Graphics * graphics; \ No newline at end of file