Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

edgen.cpp File Reference

The random map generator. More...

#include "global.h"
#include "edmisc.h"
#include "edgen.h"
#include "vehicletype.h"
#include "itemrepository.h"
#include "paradialog.h"

Include dependency graph for edgen.cpp:

Go to the source code of this file.

Defines

#define layercount   5
#define centerlayer   65000
#define maxoverwrite   5
#define enhance   1000

Functions

int mapgenerator (void)
int random2 (int max)

Variables

const char * clayer [layercount] = {"Land", "Forest", "Desert","Material","Fuel"}
int matdiv [3]
int fueldiv [3]
int terrain_object_ids [numofbdts][2][2]


Detailed Description

The random map generator.

Definition in file edgen.cpp.


Define Documentation

#define centerlayer   65000
 

Definition at line 33 of file edgen.cpp.

Referenced by tmapgenerator::buttonpressed(), tmapgenerator::showmap(), and tmapgenerator::showmontlayer().

#define enhance   1000
 

Definition at line 488 of file edgen.cpp.

Referenced by tmapgenerator::setfuel(), tmapgenerator::setmap(), and tmapgenerator::setmaterial().

#define layercount   5
 

Definition at line 32 of file edgen.cpp.

Referenced by tmapgenerator::buttonpressed(), tmapgenerator::init(), and tmapgenerator::run().

#define maxoverwrite   5
 

Definition at line 34 of file edgen.cpp.


Function Documentation

int mapgenerator void   ) 
 

Definition at line 857 of file edgen.cpp.

References tdialogbox::done(), tmapgenerator::init(), and tmapgenerator::run().

Referenced by execaction().

int random2 int  max  ) 
 

Definition at line 867 of file edgen.cpp.

Referenced by tplasma::generateplasma().


Variable Documentation

const char* clayer[layercount] = {"Land", "Forest", "Desert","Material","Fuel"}
 

Definition at line 68 of file edgen.cpp.

Referenced by tmapgenerator::buttonpressed(), and tmapgenerator::init().

int fueldiv[3]
 

Definition at line 486 of file edgen.cpp.

Referenced by tmapgenerator::setfuel(), and tmapgenerator::setmap().

int matdiv[3]
 

Definition at line 485 of file edgen.cpp.

Referenced by tmapgenerator::setmap(), and tmapgenerator::setmaterial().

int terrain_object_ids[numofbdts][2][2]
 

Initial value:

 {{{ 299, -1 }, { 307, -1 }},  
                                           {{ 28 , -1 }, { 38 , -1 }},  
                                           {{ 30 , -1 }, { 40 , -1 }},  
                                           {{ 30 , -1 }, { 40 , -1 }},  
                                           {{ 34 , -1 }, { 35 , -1 }},  
                                           {{ 299, -1 }, { 307, -1 }},  
                                           {{ 301, -1 }, { 308, -1 }},  
                                           {{ 302, -1 }, { 309, -1 }},  
                                           {{ 30 , -1 }, { 40 , -1 }},  
                                           {{ 30 , -1 }, { 40 , -1 }},  
                                           {{ 30 , -1 }, { 40 , -1 }},  
                                           {{ 30 , -1 }, { 40 , -1 }}}

Definition at line 515 of file edgen.cpp.

Referenced by tmapgenerator::setmap().


Generated on Tue Jun 24 01:40:15 2008 for Advanced Strategic Command by  doxygen 1.4.2