Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream> //for debugging purposes (the namespace std will be used in cpp's)
- #include "Tile.h"
- #ifndef DYNAMICTILEARRAY_H
- #define DYNAMICTILEARRAY_H
- class DynamicTileArray {
- private:
- Tile** tiles;
- int width;
- int height;
- public:
- DynamicTileArray();
- DynamicTileArray(int width, int height);
- ~DynamicTileArray();
- Tile getTile(int x, int y);
- void setTile(Tile tile, int x, int y);
- int getWidth();
- int getHeight();
- void allocateSpace(int width, int height);
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment