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.h>
- #include <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:
- //EDIT: You either need to write these 2 functions
- // in your .cpp file too, or comment them out
- // and use the default ones.
- //monolith();
- //~monolith();
- int monoInitVideo( Uint32 flags, int width, int height );
- SDL_Surface *monoLoadImage( std::string imageName, int &exitState );
- private:
- 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