From 98ba22e7064db57316dfff1ae127feb3dceeb73e Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 31 Jul 2014 13:58:22 +0200 Subject: Initial commit --- docs/html/_colour_store_8cpp_source.html | 132 +++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 docs/html/_colour_store_8cpp_source.html (limited to 'docs/html/_colour_store_8cpp_source.html') diff --git a/docs/html/_colour_store_8cpp_source.html b/docs/html/_colour_store_8cpp_source.html new file mode 100644 index 0000000..8b28e13 --- /dev/null +++ b/docs/html/_colour_store_8cpp_source.html @@ -0,0 +1,132 @@ + + + + +Rally X: source/presentation/ColourStore.cpp Source File + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + +
+
Rally X + +
+
ELEN3009 Project by Justin Wernick and David Schneider
+
+
+ + + + + +
+
+
source/presentation/ColourStore.cpp
+
+
+Go to the documentation of this file.
00001 #include "ColourStore.h"
+00002 
+00003 ColourStore::ColourStore()
+00004 {
+00005     populateColours();
+00006 }
+00007 
+00008 void ColourStore::populateColours()
+00009 {
+00010     _colours[BitmapStore::PLAYER] = al_map_rgb(0,255,255);
+00011     _colours[BitmapStore::ENEMY] = al_map_rgb(255,0,0);
+00012     _colours[BitmapStore::CHECKPOINT] = al_map_rgb(0,255,0);
+00013     _colours[BitmapStore::MAZE_WALL] = al_map_rgb(255,255,255);
+00014     _colours[BitmapStore::MAZE_FLOOR] = al_map_rgb(0,0,0);
+00015     _transparent = al_map_rgba(0,0,0,0);
+00016 }
+00017 
+00018 ALLEGRO_COLOR ColourStore::getColour(BitmapStore::Image image)
+00019 {
+00020     if (_colours.find(image) != _colours.end())
+00021     {
+00022         return _colours[image];
+00023     }
+00024     else return _transparent;
+00025 }
+
+
+ +
+ All Classes Files Functions Variables Typedefs Enumerations Enumerator
+ + +
+ +
+ + + + + + + -- cgit v1.2.3