port/mars-tycoon
Last change
on this file since 7ef8ec4 was 80a6a52, checked in by Jonathan Neufeld <support@…>, 3 years ago |
Get to a compile state for terrain procedural generation
|
-
Property mode
set to
100644
|
File size:
879 bytes
|
Line | |
---|
1 | #ifndef __GeoMorphDefault_H__
|
---|
2 | #define __GeoMorphDefault_H__
|
---|
3 |
|
---|
4 | #include "gmregistry.h"
|
---|
5 |
|
---|
6 | #include "crater.h"
|
---|
7 | #include "mountains.h"
|
---|
8 | #include "outflowchannels.h"
|
---|
9 | #include "volcano.h"
|
---|
10 | #include "winderode.h"
|
---|
11 | #include "rough.h"
|
---|
12 |
|
---|
13 | namespace geoworld
|
---|
14 | {
|
---|
15 | class DefaultGMRegistry : public GeoMorphRegistry
|
---|
16 | {
|
---|
17 | private:
|
---|
18 | CraterGMFactory _factCraterGM;
|
---|
19 | MountainGMFactory _factMountGM;
|
---|
20 | OutflowChannelGMFactory _factOutflowGM;
|
---|
21 | WindErosionGTFactory _factWindGT;
|
---|
22 | VolcanoGMFactory _factVolcanoGM;
|
---|
23 | RoughGTFactory _factRough;
|
---|
24 |
|
---|
25 | public:
|
---|
26 | inline DefaultGMRegistry ()
|
---|
27 | {
|
---|
28 | registerFactory("crater", &_factCraterGM);
|
---|
29 | registerFactory("mountains", &_factMountGM);
|
---|
30 | registerFactory("outflowchannels", &_factOutflowGM);
|
---|
31 | registerFactory("winderosion", &_factWindGT);
|
---|
32 | registerFactory("volcano", &_factVolcanoGM);
|
---|
33 | registerFactory("rough", &_factRough);
|
---|
34 | }
|
---|
35 | };
|
---|
36 | }
|
---|
37 |
|
---|
38 | #endif |
---|
Note:
See
TracBrowser
for help on using the repository browser.