1 #ifndef __ICONSET_H__ 2 #define __ICONSET_H__ 3 4 5 #include <SDL.h> 6 7 8 class IconSet 9 { 10 private: 11 SDL_Surface *smallIcons[6][6][2]; 12 SDL_Surface *largeIcons[6][6][2]; 13 SDL_Surface *emptyFieldIcon, *emptyHintIcon, *nearHintIcon[2]; 14 SDL_Surface *sideHintIcon[2], *betweenArrow[2]; 15 16 public: 17 IconSet(); 18 virtual ~IconSet(); 19 20 public: 21 SDL_Surface* getLargeIcon(int row, int num, bool highlighted); 22 SDL_Surface* getSmallIcon(int row, int num, bool highlighted); getEmptyFieldIcon()23 SDL_Surface* getEmptyFieldIcon() { return emptyFieldIcon; }; getEmptyHintIcon()24 SDL_Surface* getEmptyHintIcon() { return emptyHintIcon; }; getNearHintIcon(bool h)25 SDL_Surface* getNearHintIcon(bool h) { return nearHintIcon[h ? 1 : 0]; }; getSideHintIcon(bool h)26 SDL_Surface* getSideHintIcon(bool h) { return sideHintIcon[h ? 1 : 0]; }; getBetweenArrow(bool h)27 SDL_Surface* getBetweenArrow(bool h) { return betweenArrow[h ? 1 : 0]; }; 28 }; 29 30 31 #endif 32 33