Guest User

toffyrn

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