C:/Documents and Settings/jegan/Desktop/projectX/Tile.h

Go to the documentation of this file.
00001 #ifndef TILE_H
00002 #define TILE_H
00003 
00004 #include "Object.h"
00005 #include "Sprite.h"
00006 
00007 class Tile: public Object
00008 {
00009 public:
00010         Tile();
00011         Tile(Sprite* sprite, bool collidable, int x, int y, double depth = 0);
00012 
00013         virtual Object *copy();
00014 
00015         void collide( Object* o );      
00016         void draw();
00017         void update();
00018 
00019         Sprite *getSprite() {return _sprite;}
00020         void setDraw(bool draw) {_draw = draw;}
00021         bool getDraw() {return _draw;}
00022 
00023         void calcDrawBox();
00024         SDL_Rect getSquare(Sprite *sprite, double depth);
00025 
00026 
00027 private:
00028         Sprite * _sprite;
00029         bool _draw;
00030         bool _existDBox;
00031         SDL_Rect _drawBox;
00032 };
00033 
00034 #endif

Generated on Fri May 5 00:20:19 2006 for ProjectX by  doxygen 1.4.6-NO