Guest User

toffyrn

a guest
May 13th, 2010
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.25 KB | None | 0 0
  1. #ifndef MONOLITH
  2.  
  3. #define MONOLITH
  4.  
  5.  
  6.  
  7. #include <iostream>
  8.  
  9. #include <string>
  10.  
  11. #include <cstdlib>
  12.  
  13. #include <math.h>
  14.  
  15. #include <SDL.h>
  16.  
  17. #include <SDL_image.h>
  18.  
  19.  
  20.  
  21. #include "game_objects.h"
  22.  
  23.  
  24.  
  25. //Some useful defines...
  26.  
  27. #define COLOURKEY 255, 0, 255 //Soon to be obselete
  28.  
  29. #define SENSITIVITY 0.5
  30.  
  31.  
  32.  
  33. class monolith
  34.  
  35. {
  36.  
  37.     public:
  38.  
  39.         //EDIT: You either need to write these 2 functions
  40.  
  41.         //      in your .cpp file too, or comment them out
  42.  
  43.         //      and use the default ones.
  44.  
  45.         //monolith();
  46.  
  47.         //~monolith();
  48.  
  49.        
  50.  
  51.         int monoInitVideo( Uint32 flags, int width, int height );
  52.  
  53.         SDL_Surface *monoLoadImage( std::string imageName, int &exitState );
  54.  
  55.        
  56.  
  57.     private:
  58.  
  59.         void monoPrepObject( image_coord_t object );
  60.  
  61.         void monoDrawImage( SDL_Surface *image, image_coord_t surface_param, image_coord_t dest_param );
  62.  
  63.        
  64.  
  65.         int monoCheckBoundingBox( image_coord_t obj1, image_coord_t obj2 );
  66.  
  67.         int monoCheckCollision( image_coord_t obj1, image_coord_t obj2 );
  68.  
  69.        
  70.  
  71.         void monoMoveImage( image_coord_t the_image );
  72.  
  73.        
  74.  
  75.         void monoNextMove( image_coord_t good_guy, image_coord_t bad_guy );
  76.  
  77. };
  78.  
  79. #endif
Advertisement
Add Comment
Please, Sign In to add comment