Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

mask.h

Go to the documentation of this file.
00001 #ifndef __MASK_H
00002 #define __MASK_H
00003 
00004 #define OVERLAP( a,b, c,d )  ( MIN(b,d) - MAX(a,c) )
00005 
00006 class Mask
00007 {
00008 private:
00009   int w;
00010   int h;
00011   int **pixels;
00012 public:
00013   Mask( SDL_Surface * frame );
00014   Mask();
00015   ~Mask();
00016   int CollisionWithObject(Mask *m, int x, int y);
00017   int CollisionWithTile(int tilew, int tileh, int x, int y);
00018   void Print();
00019 };
00020 
00021 #endif // __MASK_H

Generated on Sun Mar 2 18:50:27 2003 for eounicorn by doxygen1.3-rc3