ajtgarber

DynamicTileArray.h

Jun 8th, 2011
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream> //for debugging purposes (the namespace std will be used in cpp's)
  3.  
  4. #include "Tile.h"
  5.  
  6. #ifndef DYNAMICTILEARRAY_H
  7. #define DYNAMICTILEARRAY_H
  8.  
  9. class DynamicTileArray {
  10.     private:
  11.         Tile** tiles;
  12.         int width;
  13.         int height;
  14.     public:
  15.         DynamicTileArray();
  16.         DynamicTileArray(int width, int height);
  17.         ~DynamicTileArray();
  18.  
  19.         Tile getTile(int x, int y);
  20.         void setTile(Tile tile, int x, int y);
  21.  
  22.         int getWidth();
  23.         int getHeight();
  24.  
  25.         void allocateSpace(int width, int height);
  26. };
  27.  
  28. #endif
Advertisement
Add Comment
Please, Sign In to add comment