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

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.

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 (char saveas)
void k_loadmap (void)
void lines (int x1, int y, int x2, int y2)
void changeunitvalues (Vehicle *ae)
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)
tfieldgetactfield ()
void selectunitsetfilter (void)
void movebuilding ()
void unitsettransformation (void)
void transformMap ()
 replaces the terrain and the objects on a map according to a translation table
void editArchivalInformation ()
void resourceComparison ()
 displays a textmessage comparing the resources of all players
void unitProductionLimitation ()
 the function to edit the vehicle type that are allowed to be build by units
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 ()

Variables

bool mapsaved
MapSwitcher mapSwitcher


Function Documentation

void cargoEditor ContainerBase container  ) 
 

Definition at line 201 of file cargoeditor.cpp.

References ContainerBase::baseType, ContainerBaseType::maxLoadableUnits, PG_Widget::RunModal(), and PG_Widget::Show().

Referenced by execaction_pg().

void changebuildingvalues Building b  ) 
 

Definition at line 1176 of file edmisc.cpp.

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

Referenced by execaction().

void changeminestrength void   ) 
 

Definition at line 1920 of file edmisc.cpp.

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

Referenced by execaction().

void changeresource void   ) 
 

Definition at line 1846 of file edmisc.cpp.

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

Referenced by execaction().

void changeunitvalues Vehicle ae  ) 
 

Definition at line 1765 of file edmisc.cpp.

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

Referenced by execaction().

void copyArea  ) 
 

Definition at line 4684 of file edmisc.cpp.

Referenced by execaction_pg().

void editArchivalInformation  ) 
 

Definition at line 3311 of file edmisc.cpp.

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

Referenced by execaction().

void editpolygon Poly_gon poly  ) 
 

Definition at line 849 of file edmisc.cpp.

void editResearch  ) 
 

Definition at line 3399 of file edmisc.cpp.

References actmap, chooseString(), Research::developedTechnologies, Player::getName(), Technology::id, infoMessage(), ItemFiltrationSystem::isFiltered(), GameMap::player, printTech(), Player::research, strrr(), ItemFiltrationSystem::Technology, and technologyRepository.

Referenced by execaction().

void editResearchPoints  ) 
 

Definition at line 3468 of file edmisc.cpp.

References actmap, chooseString(), editInt(), Player::getName(), GameMap::player, Research::progress, Player::research, and strrr().

Referenced by execaction().

void editTechAdapter  ) 
 

Definition at line 3591 of file edmisc.cpp.

References actmap, chooseString(), editString(), Player::getName(), GameMap::player, Research::predefinedTechAdapter, Player::research, strrr(), and ASCString::toLower().

Referenced by execaction().

void exchg int *  a1,
int *  a2
 

Definition at line 483 of file edmisc.cpp.

void generateTechTree  ) 
 

Definition at line 3490 of file edmisc.cpp.

References choice_dlg(), chooseString(), TechDependency::findInheritanceLevel(), Technology::id, ItemFiltrationSystem::isFiltered(), Technology::name, printTech(), selectFile(), Technology::techDependency, ItemFiltrationSystem::Technology, technologyRepository, tnstream::writeString(), TechDependency::writeTreeOutput(), and tnstream::writing.

Referenced by execaction().

tfield* getactfield  ) 
 

Definition at line 3721 of file edmisc.cpp.

References actmap, GameMap::getCursor(), and GameMap::getField().

Referenced by changeminestrength(), execaction(), execaction_pg(), tres::init(), tminestrength::init(), movebuilding(), and CopyMap::paste().

void k_loadmap void   ) 
 

Definition at line 613 of file edmisc.cpp.

References actmap, GameMap::Campaign::avail, GameMap::campaign, GameMap::codeWord, GameMap::Campaign::directaccess, displaymap(), enterpassword(), tmaploaders::loadmap(), mapextension, mapLoadingExceptionChecker(), mapsaved, removemessage(), s1, selectFile(), and Password::setUnencoded().

Referenced by execaction_pg().

void k_savemap char  saveas  ) 
 

Definition at line 591 of file edmisc.cpp.

References actmap, displaymap(), mapextension, GameMap::PreferredFilenames::mapname, mapsaved, GameMap::preferredFileNames, savemap(), and selectFile().

Referenced by execaction_pg(), and mapeditorMainThread().

void lines int  x1,
int  y,
int  x2,
int  y2
 

Definition at line 212 of file edmisc.cpp.

References darkgray, line(), and white.

void locateItemByID  ) 
 

Definition at line 3815 of file edmisc.cpp.

References ASC_PG_Dialog::RunModal(), and PG_Widget::Show().

Referenced by execaction_pg().

void mirrorMap  ) 
 

Definition at line 4184 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 96 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 84 of file edmisc.cpp.

References act_primaryAction, and execaction_ev().

Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget().

void movebuilding  ) 
 

Definition at line 2544 of file edmisc.cpp.

References tfield::building, Building::chainbuildingtofield(), displaymap(), displaymessage(), getactfield(), Building::getEntry(), getfield(), mapsaved, selectfield(), Vehicle::setnewposition(), terrainaccessible(), Building::unchainbuildingfromfield(), tfield::vehicle, warning(), MapCoordinate::x, Vehicle::xpos, MapCoordinate::y, and Vehicle::ypos.

Referenced by execaction().

void newmap void   ) 
 

Definition at line 869 of file edmisc.cpp.

References actmap, createNewMap(), and mapChanged.

Referenced by execaction_pg().

void pasteArea  ) 
 

Definition at line 4694 of file edmisc.cpp.

References actmap, displaymap(), and mapChanged.

Referenced by execaction_pg().

void placeCurrentItem  ) 
 

Definition at line 63 of file edmisc.cpp.

References actmap, SelectionHolder::brushSize, circularFieldIterator(), GameMap::getCursor(), SelectionHolder::getSelection(), mapChanged, selection, and MapComponent::vPlace().

Referenced by execaction().

void playerchange void   ) 
 

Definition at line 472 of file edmisc.cpp.

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

Referenced by execaction().

void readClipboard  ) 
 

Definition at line 3362 of file edmisc.cpp.

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

Referenced by execaction().

bool removeCurrentItem  ) 
 

Definition at line 75 of file edmisc.cpp.

References actmap, GameMap::getCursor(), SelectionHolder::getSelection(), and selection.

Referenced by execaction().

void resourceComparison  ) 
 

displays a textmessage comparing the resources of all players

Definition at line 3319 of file edmisc.cpp.

References GameMap::_resourcemode, actmap, Player::buildingList, displaymessage(), Resources::fuel, GameMap::getField(), Resources::material, GameMap::player, Resources::resource(), resourceNames, resourceTypeNum, and strrr().

Referenced by execaction().

void saveClipboard  ) 
 

Definition at line 3371 of file edmisc.cpp.

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

Referenced by execaction().

void selectunitsetfilter void   ) 
 

Definition at line 2677 of file edmisc.cpp.

References chooseString(), displaymessage(), filter(), filtersChangedSignal, and ItemFiltrationSystem::itemFilters.

Referenced by execaction().

void setstartvariables void   ) 
 

Definition at line 664 of file edmisc.cpp.

References activefontsettings, tfontsettings::color, tfontsettings::font, mapsaved, schriften, and Schriften::smallarial.

Referenced by mapeditorMainThread().

void setweatherall int  weather  ) 
 

Definition at line 3380 of file edmisc.cpp.

References actmap, and GameMap::getField().

Referenced by execaction().

void testDebugFunction  ) 
 

Definition at line 4714 of file edmisc.cpp.

References tfield::a, actmap, GameMap::cleartemps(), GameMap::getField(), tfield::getVisibility(), repaintMap, and visible_now.

Referenced by execaction_pg().

void transformMap  ) 
 

replaces the terrain and the objects on a map according to a translation table

Definition at line 3036 of file edmisc.cpp.

References actmap, PropertyContainer::addIntegerArray(), tfield::addobject(), tfield::bdt, tfield::building, buildingTypeRepository, calculateallobjects(), cbbuildingentry, Building::chainbuildingtofield(), displaymap(), displaymessage(), PropertyContainer::find(), Building::getEntry(), GameMap::getField(), getNeighbouringFieldCoordinate(), GameMap::getPlayer(), GameMap::getPlayerCount(), getTerrainBitType(), tfield::getweather(), ContainerBaseType::id, TerrainType::id, tfield::objects, objectTypeRepository, tnstream::reading, tfield::removeobject(), TextFormatParser::run(), selectFile(), tfield::setparams(), tfield::sortobjects(), TerrainType::Weather::terraintype, terrainTypeRepository, transform(), Building::typ, tfield::typ, Building::unchainbuildingfromfield(), and TerrainType::weather.

Referenced by execaction_pg().

void unitProductionLimitation  ) 
 

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

void unitsettransformation void   ) 
 

Definition at line 2950 of file edmisc.cpp.

References UnitTypeTransformation::run().

Referenced by execaction().


Variable Documentation

bool mapsaved
 

Definition at line 59 of file edmisc.cpp.

Referenced by UnitPropertyEditor::buttonpressed(), tres::buttonpressed(), tminestrength::buttonpressed(), EditArchivalInformation::buttonpressed(), execaction(), execaction_pg(), k_loadmap(), k_savemap(), mapeditorMainThread(), movebuilding(), tmapgenerator::setmap(), setSaveNotification(), setstartvariables(), and MapSwitcher::toggle().

MapSwitcher mapSwitcher
 

Definition at line 3025 of file edmisc.cpp.

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


Generated on Tue Jun 24 01:41:23 2008 for Advanced Strategic Command by  doxygen 1.4.2