Rally X
ELEN3009 Project by Justin Wernick and David Schneider
|
00001 #ifndef COLOURSTORE_H 00002 #define COLOURSTORE_H 00003 00004 #include <allegro5/allegro.h> 00005 00006 #include "../presentation/BitmapStore.h" 00007 00014 class ColourStore 00015 { 00016 public: 00020 ColourStore(); 00021 00032 ALLEGRO_COLOR getColour(BitmapStore::Image image); 00033 private: 00039 ColourStore(const ColourStore& ref); 00045 ColourStore& operator=(const ColourStore& rhs); 00046 00047 map<BitmapStore::Image, ALLEGRO_COLOR> _colours; 00048 00052 ALLEGRO_COLOR _transparent; 00053 00057 void populateColours(); 00058 }; 00059 00060 #endif // COLOURSTORE_H