summaryrefslogtreecommitdiff
path: root/terrain.h
blob: 3ce4402ba13f229b14b6c236ae09ef4e83315ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef TERRAIN_H
#define TERRAIN_H

#include <set>

class Terrain {
	private:
		std::set<std::pair<int, int> > chunk_indices;
	public:
		float *generate_heights(int x, int y, int width, int height);
		float *get_chunk(int x, int y, int width, int height);
		bool has_chunk(int x, int y);
};

#endif