Advertisement
Guest User

Level.h

a guest
Nov 25th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. #ifndef LEVEL_H
  2. #define LEVEL_H
  3.  
  4. #include "Tile.h"
  5. #include <SFML/Graphics.hpp>
  6. #include <vector>
  7.  
  8. class Level {
  9.     private:
  10.         int w, h;
  11.         std::vector< std::vector<Tile> > tiles;
  12.  
  13.         void Resize(int w, int h);
  14.  
  15.     public:
  16.         Level(int w, int h);
  17.         virtual ~Level();
  18.  
  19.         int GetWidth();
  20.         int GetHeight();
  21.  
  22.         void AddTile(int x, int y, Tile* tile);
  23.         Tile* GetTile(int x, int y);
  24.         void DrawTiles(sf::RenderWindow* window);
  25. };
  26.  
  27. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement