Advanced Strategic Command
Public Member Functions | Public Attributes | Protected Attributes | List of all members
tmapgenerator Class Reference
Inheritance diagram for tmapgenerator:
Inheritance graph
[legend]

Public Member Functions

void init (void)
 
void showmap (void)
 
void generatefinishmap (void)
 
void montlayer (int layer)
 
void showmontlayer (int sx, int sy, int barsize)
 
void setpfield (int number)
 
void setmaterial (int number)
 
void setfuel (int number)
 
void resetmapfield (void)
 
void addcoast (void)
 
void setmap (void)
 
Uint8 checkland (int x, int y)
 
virtual void run (void)
 
virtual void buttonpressed (int id)
 
- Public Member Functions inherited from tdialogbox
 tdialogbox ()
 
void init (void)
 
void buildgraphics (void)
 
virtual void changecoordinates (void)
 
void done (void)
 
virtual Uint8 checkvalue (int id, void *p)
 
void editfield (pbutton pb)
 
void editfield (int id)
 
void toggleswitch (pbutton pb)
 
virtual void enablebutton (int id)
 
virtual void disablebutton (int id)
 
virtual void execbutton (pbutton pb, char mouse)
 
void showbutton (int id)
 
void hidebutton (int id)
 
void setscrollspeed (char id, int speed)
 
void rebuildtaborder (void)
 
void showtabmark (int b)
 
virtual void setclipping (void)
 
virtual void paint (void)
 
virtual void redrawall (void)
 
virtual void redrawall2 (int xx1, int yy1, int xx2, int yy2)
 
virtual int getcapabilities (void)
 
void repaintdisplay (void)
 
- Public Member Functions inherited from tdlgengine
void addbutton (const char *ltxt, int lx1, int ly1, int lx2, int ly2, int lart, int lstyle, int lid, bool enabled)
 
void addbutton (const char *ltxt, tmouserect rect1, int lart, int lstyle, int lid, bool enabled)
 
void addeingabe (int lid, void *data, int min, int max)
 
void addscrollbar (int lx1, int ly1, int lx2, int ly2, int *numberofitems, int itemsvisible, int *actitem, int lid, int keys)
 
void addscrollbar (tmouserect rec, int *numberofitems, int itemsvisible, int *actitem, int lid, int keys)
 
void addDropDown (int x1, int y1, int x2, int y2, int ID, const char **entries, int entrynum, int *pos)
 
void clearkey (char id)
 
void addkey (int id, tkey key)
 
void addmarkedkey (int id, tkey key)
 
pbutton getbutton (int id)
 
virtual ~tdlgengine ()
 

Public Attributes

int action
 
- Public Attributes inherited from tdialogbox
int textcolor
 
int starty
 
int ms
 
void * tp
 
int imagesaved
 
const char * title
 
int windowstyle
 
ttaborder taborder [100]
 
int tabcount
 
int markedtab
 
int disablecolor
 
int boxstatus
 
- Public Attributes inherited from tdlgengine
pbutton firstbutton
 
tkey taste
 
int prntkey
 

Protected Attributes

Uint8 flip
 
Uint8 showland
 
Uint8 showdesert
 
Uint8 showforest
 
Uint8 showmaterial
 
Uint8 showfuel
 
Uint8 correctvalues
 
Uint8 calculatevalues
 
bool initialized [layercount]
 
Uint8 * constructionlayer
 
int layer
 
int actlayer
 
int barsize
 
int maxbarsize
 
int whereland
 
int tileval
 
int res
 
int pres
 
int overwritecolorcount
 
tplasma plasma
 
pmemoryblock mblocks [layercount]
 
pterraintype btyp [numofbdts]
 
int overwritecolor [maxoverwrite]
 
MapFieldpf
 
- Protected Attributes inherited from tdialogbox
int virtualbufoffset
 
pdialogbox next
 
pdialogbox prev
 
int dlg_mode
 
int knopfsuccessful
 
- Protected Attributes inherited from tdlgengine
int x1
 
int y1
 
int xsize
 
int ysize
 

Additional Inherited Members

- Public Types inherited from tdlgengine
typedef tbuttonpbutton
 
- Static Public Attributes inherited from tdialogbox
static collategraphicoperationspcgo = NULL
 
- Protected Member Functions inherited from tdialogbox
virtual void redraw (void)
 
virtual void setvirtualframebuf (void)
 
virtual void copyvirtualframebuf (void)
 
void newknopf (int xx1, int yy1, int xx2, int yy2)
 
void knopfdruck (int xx1, int yy1, int xx2, int yy2)
 
void knopf (int xx1, int yy1, int xx2, int yy2)
 
void newknopfdruck4 (int xx1, int yy1, int xx2, int yy2)
 
void newknopfdruck3 (int xx1, int yy1, int xx2, int yy2)
 
void newknopfdruck2 (int xx1, int yy1, int xx2, int yy2)
 
void newknopfdruck (int xx1, int yy1, int xx2, int yy2)
 
void rahmen (bool invers, int x1, int y1, int x2, int y2)
 
void rahmen (bool invers, tmouserect rect)
 
void rahmen3 (const char *txt, int x1, int y1, int x2, int y2, int style)
 
void bar (tmouserect rect, int color)
 
void bar (int x1, int y1, int x2, int y2, int color)
 
virtual void dispeditstring (char *st, int x1, int y1)
 
void stredit (char *s, int x1, int y1, int wdth, int max)
 
virtual int gettextwdth_stredit (char *txt, pfont font)
 
virtual void lne (int x1, int y1, char *s, int position, int einfuegen)
 
void intedit (int *st, int x1, int y1, int wdth, int min, int max)
 
void paintsurface2 (int xx1, int yy1, int xx2, int yy2)
 
void paintsurface (int xx1, int yy1, int xx2, int yy2)
 
virtual ~tdialogbox ()
 
- Static Protected Attributes inherited from tdialogbox
static pdialogbox first = NULL
 

Detailed Description

Definition at line 37 of file edgen.cpp.

Member Function Documentation

void tmapgenerator::addcoast ( void  )
void tmapgenerator::buttonpressed ( int  id)
virtual
Uint8 tmapgenerator::checkland ( int  x,
int  y 
)

Definition at line 381 of file edgen.cpp.

References cbwater, getfield(), and getTerrainBitType().

Referenced by addcoast().

void tmapgenerator::generatefinishmap ( void  )
void tmapgenerator::init ( void  )
void tmapgenerator::montlayer ( int  layer)
void tmapgenerator::resetmapfield ( void  )

Definition at line 599 of file edgen.cpp.

References tdialogbox::bar(), lightgray, tdlgengine::x1, and tdlgengine::y1.

Referenced by buttonpressed().

void tmapgenerator::run ( void  )
virtual

Reimplemented from tdialogbox.

Definition at line 604 of file edgen.cpp.

References action, ct_esc, ct_f1, help(), initialized, layercount, mblocks, tdialogbox::run(), setmap(), and tdlgengine::taste.

Referenced by mapgenerator().

void tmapgenerator::setfuel ( int  number)

Definition at line 503 of file edgen.cpp.

References clfuel, enhance, MapField::fuel, fueldiv, mblocks, tmemoryblock::mempointer, pf, tileval, and tmemoryblock::tileval.

Referenced by setmap().

void tmapgenerator::setmap ( void  )
void tmapgenerator::setmaterial ( int  number)
void tmapgenerator::setpfield ( int  number)

Definition at line 462 of file edgen.cpp.

References btyp, cdeepwater, cdesert, cforest, cland, cmount, constructionlayer, cshallowwater, cverydeepwater, cwater, pf, and MapField::typ.

Referenced by setmap().

void tmapgenerator::showmap ( void  )
void tmapgenerator::showmontlayer ( int  sx,
int  sy,
int  barsize 
)

Member Data Documentation

int tmapgenerator::action

Definition at line 39 of file edgen.cpp.

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

int tmapgenerator::actlayer
protected

Definition at line 58 of file edgen.cpp.

Referenced by init().

int tmapgenerator::barsize
protected

Definition at line 59 of file edgen.cpp.

Referenced by buttonpressed(), init(), showmap(), and showmontlayer().

pterraintype tmapgenerator::btyp[numofbdts]
protected

Definition at line 64 of file edgen.cpp.

Referenced by addcoast(), setmap(), and setpfield().

Uint8 tmapgenerator::calculatevalues
protected

Definition at line 55 of file edgen.cpp.

Referenced by buttonpressed(), and init().

Uint8* tmapgenerator::constructionlayer
protected

Definition at line 57 of file edgen.cpp.

Referenced by generatefinishmap(), init(), montlayer(), setpfield(), and showmontlayer().

Uint8 tmapgenerator::correctvalues
protected

Definition at line 55 of file edgen.cpp.

Referenced by buttonpressed(), and init().

Uint8 tmapgenerator::flip
protected

Definition at line 55 of file edgen.cpp.

Referenced by buttonpressed(), init(), setmap(), and showmontlayer().

bool tmapgenerator::initialized[layercount]
protected

Definition at line 56 of file edgen.cpp.

Referenced by buttonpressed(), generatefinishmap(), init(), run(), setmap(), and showmap().

int tmapgenerator::layer
protected

Definition at line 58 of file edgen.cpp.

Referenced by buttonpressed(), init(), and montlayer().

int tmapgenerator::maxbarsize
protected

Definition at line 59 of file edgen.cpp.

Referenced by buttonpressed(), and init().

pmemoryblock tmapgenerator::mblocks[layercount]
protected

Definition at line 63 of file edgen.cpp.

Referenced by buttonpressed(), generatefinishmap(), montlayer(), run(), setfuel(), setmap(), and setmaterial().

int tmapgenerator::overwritecolor[maxoverwrite]
protected

Definition at line 65 of file edgen.cpp.

Referenced by generatefinishmap(), and montlayer().

int tmapgenerator::overwritecolorcount
protected

Definition at line 61 of file edgen.cpp.

Referenced by generatefinishmap(), montlayer(), and showmap().

MapField* tmapgenerator::pf
protected

Definition at line 66 of file edgen.cpp.

Referenced by addcoast(), setfuel(), setmap(), setmaterial(), and setpfield().

tplasma tmapgenerator::plasma
protected

Definition at line 62 of file edgen.cpp.

Referenced by buttonpressed(), generatefinishmap(), init(), montlayer(), setmap(), and showmontlayer().

int tmapgenerator::pres
protected

Definition at line 61 of file edgen.cpp.

Referenced by buttonpressed(), and init().

int tmapgenerator::res
protected

Definition at line 61 of file edgen.cpp.

Referenced by buttonpressed(), and init().

Uint8 tmapgenerator::showdesert
protected

Definition at line 55 of file edgen.cpp.

Referenced by buttonpressed(), and generatefinishmap().

Uint8 tmapgenerator::showforest
protected

Definition at line 55 of file edgen.cpp.

Referenced by buttonpressed(), and generatefinishmap().

Uint8 tmapgenerator::showfuel
protected

Definition at line 55 of file edgen.cpp.

Referenced by buttonpressed(), and showmap().

Uint8 tmapgenerator::showland
protected

Definition at line 55 of file edgen.cpp.

Referenced by buttonpressed(), and generatefinishmap().

Uint8 tmapgenerator::showmaterial
protected

Definition at line 55 of file edgen.cpp.

Referenced by buttonpressed(), and showmap().

int tmapgenerator::tileval
protected

Definition at line 61 of file edgen.cpp.

Referenced by buttonpressed(), init(), montlayer(), setfuel(), and setmaterial().

int tmapgenerator::whereland
protected

Definition at line 60 of file edgen.cpp.

Referenced by addcoast().


The documentation for this class was generated from the following file: