blob: 6f31e94aee8e9563d3b92d328e397f857ee56300 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include "ArrayWithLength.h"
class LevelType;
#ifndef _CONTENT_PACAKGE
#define _BIOME_OVERRIDE
#endif
class Layer
{
private:
int64_t seed;
protected:
shared_ptr<Layer>parent;
private:
int64_t rval;
int64_t seedMixup;
public:
static LayerArray getDefaultLayers(int64_t seed, LevelType *levelType);
Layer(int64_t seedMixup);
virtual void init(int64_t seed);
virtual void initRandom(int64_t x, int64_t y);
protected:
int nextRandom(int max);
public:
virtual intArray getArea(int xo, int yo, int w, int h) = 0;
};
|