4 * Created on: Sep 26, 2012
11 #include "../geometry/Vector.h"
30 int Width() const { return width; }
31 int Height() const { return numTiles / width + (numTiles % width ? 1 : 0); }
33 void Render(SDL_Surface *dest, const graphics::Sprite *tileset, const geometry::Vector<int> &offset) const;
37 void SetTiles(const Tile *t, int num) { tiles = t; numTiles = num; }
38 void SetWidth(int w) { width = w; }
49 #endif /* MAP_AREA_H_ */