Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MONOLITH
- #define MONOLITH
- #include <iostream>
- #include <string>
- #include <cstdlib>
- #include <math.h>
- #include <SDL/SDL.h>
- #include <SDL/SDL_image.h>
- #include "game_objects.h"
- //Some useful defines...
- #define COLOURKEY 255, 0, 255 //Soon to be obselete
- #define SENSITIVITY 0.5
- class monolith
- {
- public:
- monolith();
- ~monolith();
- private:
- int monoInitVideo( Uint32 flags = SDL_DOUBLEBUF | SDL_SWSURFACE, int width = 100, int height = 100 );
- SDL_Surface *monoLoadImage( std::string imageName, int &exitState );
- void monoPrepObject( image_coord_t object );
- void monoDrawImage( SDL_Surface *image, image_coord_t surface_param, image_coord_t dest_param );
- int monoCheckBoundingBox( image_coord_t obj1, image_coord_t obj2 );
- int monoCheckCollision( image_coord_t obj1, image_coord_t obj2 );
- void monoMoveImage( image_coord_t the_image );
- void monoNextMove( image_coord_t good_guy, image_coord_t bad_guy );
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment