Guest User

monolith.h

a guest
May 11th, 2010
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.07 KB | None | 0 0
  1. #ifndef MONOLITH
  2. #define MONOLITH
  3.  
  4. #include <iostream>
  5. #include <string>
  6. #include <cstdlib>
  7. #include <math.h>
  8. #include <SDL.h>
  9. #include <SDL_image.h>
  10.  
  11. #include "game_objects.h"
  12.  
  13. //Some useful defines...
  14. #define true 1
  15. #define false 0
  16. #define COLOURKEY 255, 0, 255 //Soon to be obselete
  17. #define SENSITIVITY 0.5
  18.  
  19. class monolith
  20. {
  21.     public:
  22.         monolith();
  23.         ~monolith();
  24.        
  25.     private:
  26.         int monoInitVideo( Uint32 flags = SDL_DOUBLEBUF | SDL_SWSURFACE, int width = 100, int height = 100 );
  27.         //SDL_Surface *monoLoadImage( string imageName, int &exitState );
  28.         void monoPrepObject( image_coord_t object );
  29.         void monoDrawImage( SDL_Surface *image, image_coord_t surface_param, image_coord_t dest_param );
  30.        
  31.         int monoCheckBoundingBox( image_coord_t obj1, image_coord_t obj2 );
  32.         int monoCheckCollision( image_coord_t obj1, image_coord_t obj2 );
  33.        
  34.         void monoMoveImage( image_coord_t the_image );
  35.        
  36.         void monoNextMove( image_coord_t good_guy, image_coord_t bad_guy );
  37. };
  38. #endif
Advertisement
Add Comment
Please, Sign In to add comment