/********************************************************************************************
        Benny - The game
        
        Author: Martin Albrecht <martin.albrecht@javacoffee.de>
        Date: Something like 2004/2005... maybe? ;)
        Website: http://code.javacofee.de
                
DEPENDENCIES:
-------------
        - SDL library with SDL_TTF, SDL_MIXER, SDL_TIMER and SDL_IMAGE 
		  see http://www.libsdl.org/ for more information.

LICENSE:
--------
        This program is free software; you can redistribute it and/or modify it under
        the terms of the GNU General Public License as published by the Free Software
        Foundation; either version 2 of the License, or (at your option) any later version.

        This program is distributed in the hope that it will be useful, but WITHOUT ANY
        WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
        PARTICULAR PURPOSE. See the GNU General Public License for more details.

        You should have received a copy of the GNU General Public License along with this
        program; if not, write to the

        Free Software Foundation, Inc.,
        59 Temple Place, Suite 330,
        Boston, MA 02111-1307, USA.
        
********************************************************************************************/
#ifndef __SPRITE_H__
#define __SPRITE_H__

#include "general.h"

/* Class for sprite */
class Sprite{
	public:
		SDL_Surface *sprImg;
		int Health;

		Sprite(SDL_Surface *new_image, int x, int y);
		void SetImage(SDL_Surface *new_image);
		void SetPos(int x, int y);
		void Move(int move_x, int move_y);
		SDL_Rect *GetRect(void);
		void Draw(SDL_Surface *target);
		SDL_Surface* GetImage();
	protected:
		SDL_Rect rect;
		SDL_Surface *image;
};

/* Function prototypes */
int spr_collision(Sprite *S1, Sprite *S2);
#endif
