D:/Development/Projects/X-Clone/X-Clone/trunk/Wall.h

Go to the documentation of this file.
00001 #ifndef XCLONE_WALL_H
00002 #define XCLONE_WALL_H
00003 
00004 #include "MapObject.h"
00005 #include "MapTile.h"
00006 #include "Direction.h"
00007 
00008 
00009 class Wall : public MapObject
00010 {
00011    public:
00012       Wall(Direction dir);
00013       ~Wall();
00014 
00015       Direction _dir;
00016       bool isPassable() const;
00017       bool isPassable(Direction dir) const;
00018       void destroy();
00019       spMapTile tile1;
00020       spMapTile tile2;
00021 
00022       void draw(Point position, Point dimensions) const;
00023 
00024    private:
00025       bool _destroyed;
00026       static SDL_Surface* _image;
00027       static SDL_Surface* _imageNE;
00028       static SDL_Surface* _imageNW;
00029       static SDL_Surface* _imageSE;
00030       static SDL_Surface* _imageSW;
00031 };
00032 
00033 #endif

Generated on Fri Sep 22 06:00:26 2006 for X-CLONE by  doxygen 1.4.7