Advertisement
Guest User

Map.h

a guest
Nov 26th, 2013
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #ifndef MAP_H
  2. #define MAP_H
  3.  
  4. #include "Tile.h"
  5. #include "SFML/Graphics/RenderWindow.hpp"
  6. #include <vector>
  7.  
  8. class Map {
  9.     private:
  10.         int width, height;
  11.         std::vector< std::vector<Tile*> > tiles;
  12.  
  13.     public:
  14.         Map(int w = 0, int h = 0);
  15.         virtual ~Map();
  16.  
  17.         Tile* GetTile(int row, int column);
  18.         void DrawTiles(sf::RenderWindow* window);
  19. };
  20.  
  21. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement