home *** CD-ROM | disk | FTP | other *** search
/ Game Programming - All in One (3rd Edition) / game_prog_all_in_one_3rd_ed.iso / sources / TankWar-Final / scroller.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-06-22  |  475 b   |  25 lines

  1. #ifndef _SCROLLER_H
  2. #define _SCROLLER_H 1
  3.  
  4. #include <allegro.h>
  5.  
  6. class tilescroller {
  7. private:
  8.     int _mapwidth, _mapheight;
  9.     int _tilewidth, _tileheight;
  10.  
  11. public:
  12.     int xoffset, yoffset;
  13.     tilescroller();
  14.     ~tilescroller();
  15.  
  16.     int loadmap(char *filename);
  17.     int mapWidth() { return _mapwidth; }
  18.     int mapHeight() { return _mapheight; }
  19.     int tileWidth() { return _tilewidth; }
  20.     int tileHeight() { return _tileheight; }
  21.     void drawmap(BITMAP *dest);
  22. };
  23.  
  24. #endif
  25.