This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
frostbite/snowlib/World.cpp
2020-02-06 00:23:46 +00:00

34 lines
398 B
C++

#include "World.h"
World::World()
{
topoStartCol = 0;
topoStartRow = 0;
numTopoCols = 0;
numTopoRows = 0;
}
World::~World()
{
for (auto& element : topoElements)
{
delete element;
}
for (auto& patch : topoPatches)
{
delete patch;
}
}
TopoPatch::TopoPatch(int width, int height)
{
w = width;
h = height;
heights = new int[w * h];
}
TopoPatch::~TopoPatch()
{
delete[] heights;
}