implemented map generator
This commit is contained in:
1 parent
69700f8b65
commit
f32cce0e56
9 files changed
+910
-38
No files matched your search
@@ -161,6 +161,11 @@ void v21ToLoc(int loc0, Vicinity21Loc &vicinityLoc);
|
||||
|
||||
void calculatePrimitive();
|
||||
bool mapGeneratorAvailable();
|
||||
// Fills the elevation table from the current random seed; createMap() then
|
||||
// builds realMap from it. With preview=true, rivers, continents and rare
|
||||
// resources are skipped (used for the start screen's mini map).
|
||||
void createElevation();
|
||||
void createMap(bool preview);
|
||||
|
||||
// --- Tech Related Functions ---
|
||||
|
||||
@@ -326,14 +331,11 @@ void setTestFlags(int p, int setFlags);
|
||||
// Allocates and initializes every RW[p] array (Un/City/Model/Map/Territory/
|
||||
// EnemyUn/EnemyCity/EnemyModel/EnemyReport/...) and creates each alive
|
||||
// player's starting units + capital. Needs startLoc/startLoc2 already set
|
||||
// (by predefinedStartPositions() or - not yet ported - StartPositions()).
|
||||
// (by predefinedStartPositions() or startPositions()).
|
||||
void initGame();
|
||||
// Predefined map path: FindContinents + PredefinedStartPositions + initGame().
|
||||
void initMapGame(int human);
|
||||
// TODO: needs CreateElevation/CreateMap/StartPositions/RarePositions (the
|
||||
// full procedural map generator, itself several hundred lines) - not
|
||||
// ported yet. Throws for now; only initMapGame()'s "load from file" path
|
||||
// is supported.
|
||||
// Random map path: CalculatePrimitive + CreateElevation + CreateMap + StartPositions + initGame().
|
||||
void initRandomGame();
|
||||
void findContinents();
|
||||
void predefinedStartPositions(int human);
|
||||
|
||||
Reference in new issue
Block a user