Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

Picture.h

Go to the documentation of this file.
00001 #ifndef HEADER_PICTURE_H
00002 #define HEADER_PICTURE_H
00003 
00004 class Path;
00005 
00006 #include "Drawable.h"
00007 #include "V2.h"
00008 
00009 /**
00010  * Static picture at fixed screen position.
00011  */
00012 class Picture : public Drawable {
00013     protected:
00014         V2 m_loc;
00015         SDL_Surface *m_surface;
00016     public:
00017         Picture(const Path &file, const V2 &loc);
00018         Picture(SDL_Surface *new_surface, const V2 &loc);
00019         virtual ~Picture();
00020 
00021         int getW() const { return m_surface->w; }
00022         int getH() const { return m_surface->h; }
00023         virtual void drawOn(SDL_Surface *screen);
00024 
00025         void setLoc(const V2 &loc) { m_loc = loc; }
00026         void changePicture(const Path &file);
00027         void changePicture(SDL_Surface *new_surface);
00028 };
00029 
00030 #endif

Generated on Wed Jun 1 09:54:31 2005 for Fish Fillets - Next Generation by  doxygen 1.4.2