Worked out networking
[progcomp2012.git] / judge / manager / graphics.cpp
index 5b708df..7cc22d0 100644 (file)
@@ -3,6 +3,7 @@
 #include <cassert>
 #include <iostream>
 
 #include <cassert>
 #include <iostream>
 
+#ifdef BUILD_GRAPHICS
 
 #undef DEBUG
 //#define DEBUG
 
 #undef DEBUG
 //#define DEBUG
@@ -127,6 +128,7 @@ void Texture::Draw(int x, int y, double angle , double scale )
 }
 
 
 }
 
 
+
 Font::Font(const char * filename, int newWidth, int newHeight) : Texture(filename), width(newWidth), height(newHeight)
 {
 
 Font::Font(const char * filename, int newWidth, int newHeight) : Texture(filename), width(newWidth), height(newHeight)
 {
 
@@ -442,8 +444,9 @@ Colour Graphics::ConvertColour(Uint8 from)
        return result;
 }
 
        return result;
 }
 
+void Graphics::Wait(int n)
+{
+       SDL_Delay(n);
+}
 
 
-
-
-
-
+#endif //BUILD_GRAPHICS

UCC git Repository :: git.ucc.asn.au