Advanced Strategic Command
Classes | Functions | Variables
edmisc.h File Reference
#include <string.h>
#include <stdlib.h>
#include <cstdlib>
#include <ctype.h>
#include "pgpopupmenu.h"
#include "typen.h"
#include "basegfx.h"
#include "mappolygons.h"
#include "misc.h"
#include "newfont.h"
#include "events.h"
#include "loaders.h"
#include "dlg_box.h"
#include "spfst.h"
#include "dialog.h"
#include "strtmesg.h"
#include "palette.h"
#include "mapalgorithms.h"
Include dependency graph for edmisc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  tputresources
 
class  tputresourcesdlg
 
class  MapSwitcher
 The class that manages the switching between the primary map (for editing) and the secondary map (for selecting objects and terrain) More...
 

Functions

bool mousePressedOnField (const MapCoordinate &pos, const SPoint &mousePos, bool cursorChanged, int button, int prio)
 
bool mouseDraggedToField (const MapCoordinate &pos, const SPoint &mousePos, bool cursorChanged, int prio)
 
void setstartvariables (void)
 
void exchg (int *a1, int *a2)
 
void k_savemap (bool saveas)
 
void k_loadmap (void)
 
void lines (int x1, int y, int x2, int y2)
 
void changeresource (void)
 
void changebuildingvalues (Building &b)
 
void changeminestrength (void)
 
void newmap (void)
 
void cargoEditor (ContainerBase *container)
 
void playerchange (void)
 
void editpolygon (Poly_gon &poly)
 
MapFieldgetactfield ()
 
void selectunitsetfilter (void)
 
void movebuilding ()
 
void unitsettransformation (void)
 
void transformMap ()
 replaces the terrain and the objects on a map according to a translation table More...
 
void editArchivalInformation ()
 
void resourceComparison ()
 displays a textmessage comparing the resources of all players More...
 
void unitProductionLimitation ()
 the function to edit the vehicle type that are allowed to be build by units More...
 
void saveClipboard ()
 
void readClipboard ()
 
void setweatherall (int weather)
 
void editResearch ()
 
void editResearchPoints ()
 
void generateTechTree ()
 
void editTechAdapter ()
 
void placeCurrentItem ()
 
bool removeCurrentItem ()
 
void locateItemByID ()
 
void mirrorMap ()
 
void copyArea ()
 
void pasteArea ()
 
void testDebugFunction ()
 
void selectAndRunLuaScript (const ASCString &filenamewildcard)
 

Variables

bool mapsaved
 
MapSwitcher mapSwitcher
 

Function Documentation

void cargoEditor ( ContainerBase container)

Definition at line 202 of file cargoeditor.cpp.

References ContainerBase::baseType, and ContainerBaseType::maxLoadableUnits.

Referenced by execaction_pg().

void changebuildingvalues ( Building b)

Definition at line 1141 of file edmisc.cpp.

References displaymap(), tdialogbox::done(), BuildingValues::init(), and BuildingValues::run().

Referenced by execaction().

void changeminestrength ( void  )

Definition at line 1636 of file edmisc.cpp.

References tdialogbox::done(), getactfield(), tminestrength::init(), and tminestrength::run().

Referenced by execaction().

void changeresource ( void  )

Definition at line 1561 of file edmisc.cpp.

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

Referenced by execaction().

void copyArea ( )

Definition at line 3735 of file edmisc.cpp.

Referenced by execaction_pg().

void editArchivalInformation ( )
void editpolygon ( Poly_gon poly)

Definition at line 807 of file edmisc.cpp.

void editResearch ( )
void editResearchPoints ( )
void editTechAdapter ( )

Definition at line 2728 of file edmisc.cpp.

References actmap, chooseString(), editTechAdapter(), Player::getName(), GameMap::player, and strrr().

Referenced by editTechAdapter().

void exchg ( int *  a1,
int *  a2 
)

Definition at line 498 of file edmisc.cpp.

void generateTechTree ( )
MapField* getactfield ( )
void k_loadmap ( void  )
void k_savemap ( bool  saveas)
void lines ( int  x1,
int  y,
int  x2,
int  y2 
)

Definition at line 223 of file edmisc.cpp.

References darkgray, line(), and white.

void locateItemByID ( )

Definition at line 2857 of file edmisc.cpp.

References ASC_PG_Dialog::RunModal().

Referenced by execaction_pg().

void mirrorMap ( )

Definition at line 3235 of file edmisc.cpp.

References actmap, displaymap(), tdialogbox::done(), MirrorMap::init(), mapChanged, and MirrorMap::run().

Referenced by execaction_pg().

bool mouseDraggedToField ( const MapCoordinate pos,
const SPoint mousePos,
bool  cursorChanged,
int  prio 
)

Definition at line 103 of file edmisc.cpp.

References act_primaryAction, and execaction_ev().

Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget().

bool mousePressedOnField ( const MapCoordinate pos,
const SPoint mousePos,
bool  cursorChanged,
int  button,
int  prio 
)

Definition at line 91 of file edmisc.cpp.

References act_primaryAction, and execaction_ev().

Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget().

void movebuilding ( )
void newmap ( void  )

Definition at line 827 of file edmisc.cpp.

References actmap, createNewMap(), and mapChanged.

Referenced by execaction_pg().

void pasteArea ( )

Definition at line 3745 of file edmisc.cpp.

References actmap, displaymap(), and mapChanged.

Referenced by execaction_pg().

void placeCurrentItem ( )
void playerchange ( void  )

Definition at line 485 of file edmisc.cpp.

References actmap, tdialogbox::done(), tplayerchange::init(), mapChanged, and tplayerchange::run().

Referenced by execaction().

void readClipboard ( )
bool removeCurrentItem ( )
void resourceComparison ( )
void saveClipboard ( )

Definition at line 2508 of file edmisc.cpp.

References clipboardFileExtension, selectFile(), and tnstream::writing.

Referenced by execaction().

void selectAndRunLuaScript ( const ASCString filenamewildcard)
void selectunitsetfilter ( void  )
void setstartvariables ( void  )
void setweatherall ( int  weather)

Definition at line 2518 of file edmisc.cpp.

References actmap, GameMap::getField(), MapField::setWeather(), GameMap::xsize, and GameMap::ysize.

Referenced by execaction().

void testDebugFunction ( )
void transformMap ( )
void unitProductionLimitation ( )

the function to edit the vehicle type that are allowed to be build by units

void unitsettransformation ( void  )

Definition at line 1996 of file edmisc.cpp.

References UnitTypeTransformation::run().

Referenced by execaction().

Variable Documentation

bool mapsaved
MapSwitcher mapSwitcher

Definition at line 2071 of file edmisc.cpp.

Referenced by execaction(), execaction_pg(), main(), and mapeditorMainThread().