// // Created by trotfunky on 27/05/19. // #include "World.h" World::World(int w, int h, std::vector worldMap) : w(w), h(h), map(std::move(worldMap)) { map.resize(w*h,BlockType::WALL); } int World::getW() const { return w; } int World::getH() const { return h; } BlockType World::getBlock(float x, float y) const { return(map.at(static_cast(x)+w* static_cast(y))); } void World::setBlock(BlockType block, int x, int y, int width, int height) { for(int i = 0;i