#include <string>
#include <iostream>
#include <math.h>
#include "sdl/graphics.h"
#include "vehicletype.h"
#include "buildingtype.h"
#include "edmisc.h"
#include "loadbi3.h"
#include "edgen.h"
#include "edselfnt.h"
#include "edglobal.h"
#include "dialogs/pwd_dlg.h"
#include "mapdisplay.h"
#include "graphicset.h"
#include "itemrepository.h"
#include "textfileparser.h"
#include "textfile_evaluation.h"
#include "textfiletags.h"
#include "clipboard.h"
#include "dialogs/cargowidget.h"
#include "dialogs/fieldmarker.h"
#include "dialogs/newmap.h"
#include "stack.h"
#include "unitset.h"
#include "maped-mainscreen.h"
#include "gameevents.h"
#include "gameevent_dialogs.h"
#include "dialogs/fileselector.h"
#include "pgeventsupplier.h"
Include dependency graph for edmisc.cpp:

Go to the source code of this file.
Functions | |
| void | placeCurrentItem () |
| bool | removeCurrentItem () |
| 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) |
| char | checkobject (tfield *pf) |
| void | lines (int x1, int y1, int x2, int y2) |
| void | playerchange (void) |
| void | exchg (int *a1, int *a2) |
| void | k_savemap (char saveas) |
| void | k_loadmap (void) |
| void | selectUnitFromMap (GameMap *gamemap, MapCoordinate &pos) |
| void | setstartvariables (void) |
| void | editpolygon (Poly_gon &poly) |
| void | newmap (void) |
| void | changebuildingvalues (Building &b) |
| int | selectString (int lc, const char *title, const char **text, int itemNum) |
| void | changeunitvalues (Vehicle *ae) |
| void | changeresource (void) |
| void | changeminestrength (void) |
| Vehicle * | selectUnitFromContainer (ContainerBase *container) |
| void | movebuilding (void) |
| void | selectunitsetfilter (void) |
| void | unitsettransformation (void) |
| Vehicletype * | transform (int id, const vector< int > &translation) |
| 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 | readClipboard () |
| void | saveClipboard () |
| void | setweatherall (int weather) |
| ASCString | printTech (int id) |
| void | editResearch () |
| void | editResearchPoints () |
| void | generateTechTree () |
| void | editTechAdapter () |
| tfield * | getactfield (void) |
| void | locateItemByID () |
| void | copyVehicleData (Vehicle *source, Vehicle *target, GameMap *targetMap, int *playerTranslation) |
| void | copyBuildingData (Building *source, Building *target, GameMap *targetMap, int *playerTranslation, bool mirrorUnits) |
| void | copyFieldStep1 (tfield *sourceField, tfield *targetField, bool mirrorTerrain, bool mirrorResources, bool mirrorWeather) |
| void | copyFieldStep2 (tfield *sourceField, tfield *targetField, GameMap *targetMap, int *directionTranslation, int *playerTranslation, bool mirrorObjects, bool mirrorBuildings, bool mirrorUnits, bool mirrorMines) |
| void | mirrorMap () |
| void | copyArea () |
| void | pasteArea () |
| void | testDebugFunction () |
Variables | |
| bool | mapsaved |
| MapSwitcher | mapSwitcher |
| CopyMap * | copyMap = NULL |
Definition in file edmisc.cpp.
|
|
Definition at line 1176 of file edmisc.cpp. References displaymap(), tdialogbox::done(), BuildingValues::init(), and BuildingValues::run(). Referenced by execaction(). |
|
|
Definition at line 1920 of file edmisc.cpp. References tdialogbox::done(), getactfield(), tminestrength::init(), and tminestrength::run(). Referenced by execaction(). |
|
|
Definition at line 1846 of file edmisc.cpp. References tdialogbox::done(), tres::init(), and tres::run(). Referenced by execaction(). |
|
|
Definition at line 1765 of file edmisc.cpp. References tdialogbox::done(), UnitPropertyEditor::init(), and UnitPropertyEditor::run(). Referenced by execaction(). |
|
|
Definition at line 107 of file edmisc.cpp. References tfield::objects. |
|
|
Definition at line 4684 of file edmisc.cpp. Referenced by execaction_pg(). |
|
||||||||||||||||||||||||
|
Definition at line 3861 of file edmisc.cpp. References Building::actstorage, ContainerBase::addToCargo(), Building::ammo, copyVehicleData(), ContainerBase::damage, Building::lastmineddist, Building::name, Building::netcontrol, Building::visible, and waffenanzahl. Referenced by copyFieldStep2(). |
|
||||||||||||||||||||||||
|
Definition at line 3891 of file edmisc.cpp. References tfield::bdt, tfield::deleteeverything(), tfield::fuel, tfield::material, tfield::objects, tfield::removeobject(), tfield::setweather(), and tfield::typ. Referenced by CopyMap::fieldOperator(), MirrorMap::mirrorX(), MirrorMap::mirrorY(), and CopyMap::paste(). |
|
||||||||||||||||||||||||||||||||||||||||
|
Definition at line 3911 of file edmisc.cpp. References tfield::addobject(), copyBuildingData(), copyVehicleData(), Vehicle::direction, tfield::getx(), tfield::gety(), Mine::player, tfield::putmine(), Vehicle::setnewposition(), Mine::strength, Mine::type, and tfield::vehicle. Referenced by CopyMap::fieldOperator(), MirrorMap::mirrorX(), MirrorMap::mirrorY(), and CopyMap::paste(). |
|
||||||||||||||||||||
|
Definition at line 3830 of file edmisc.cpp. References ContainerBase::addToCargo(), Vehicle::ammo, ContainerBase::damage, Vehicle::ReactionFire::disable(), Vehicle::ReactionFire::enable(), Vehicle::experience, ContainerBase::getCargo(), Vehicle::ReactionFire::getStatus(), Vehicle::getTank(), Vehicle::height, Vehicle::name, Vehicle::ReactionFire::off, Vehicle::reactionfire, and Vehicle::tank. Referenced by copyBuildingData(), and copyFieldStep2(). |
|
|
Definition at line 3311 of file edmisc.cpp. References actmap, tdialogbox::done(), EditArchivalInformation::init(), and EditArchivalInformation::run(). Referenced by execaction(). |
|
|
Definition at line 849 of file edmisc.cpp. Referenced by CopyMap::selectArea(), and FieldAddressing::setup(). |
|
|
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(). |
|
|
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(). |
|
|
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(). |
|
||||||||||||
|
Definition at line 483 of file edmisc.cpp. |
|
|
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(). |
|
|
Definition at line 3721 of file edmisc.cpp. References actmap, GameMap::getCursor(), and GameMap::getField(). Referenced by changeminestrength(), execaction(), execaction_pg(), tminestrength::init(), tres::init(), movebuilding(), and CopyMap::paste(). |
|
|
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(). |
|
|
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(). |
|
||||||||||||||||||||
|
Definition at line 212 of file edmisc.cpp. |
|
|
Definition at line 3815 of file edmisc.cpp. References ASC_PG_Dialog::RunModal(), and PG_Widget::Show(). Referenced by execaction_pg(). |
|
|
Definition at line 4184 of file edmisc.cpp. References actmap, displaymap(), tdialogbox::done(), MirrorMap::init(), mapChanged, and MirrorMap::run(). Referenced by execaction_pg(). |
|
||||||||||||||||||||
|
Definition at line 96 of file edmisc.cpp. References act_primaryAction, and execaction_ev(). Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget(). |
|
||||||||||||||||||||||||
|
Definition at line 84 of file edmisc.cpp. References act_primaryAction, and execaction_ev(). Referenced by Maped_MainScreenWidget::Maped_MainScreenWidget(). |
|
|
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(). |
|
|
Definition at line 869 of file edmisc.cpp. References actmap, createNewMap(), and mapChanged. Referenced by execaction_pg(). |
|
|
Definition at line 4694 of file edmisc.cpp. References actmap, displaymap(), and mapChanged. Referenced by execaction_pg(). |
|
|
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(). |
|
|
Definition at line 472 of file edmisc.cpp. References tdialogbox::done(), tplayerchange::init(), and tplayerchange::run(). Referenced by execaction(). |
|
|
Definition at line 3388 of file edmisc.cpp. References ASCString::format(), and technologyRepository. Referenced by editResearch(), and generateTechTree(). |
|
|
Definition at line 3362 of file edmisc.cpp. References clipboardFileExtension, tnstream::reading, and selectFile(). Referenced by execaction(). |
|
|
Definition at line 75 of file edmisc.cpp. References actmap, GameMap::getCursor(), SelectionHolder::getSelection(), and selection. Referenced by execaction(). |
|
|
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(). |
|
|
Definition at line 3371 of file edmisc.cpp. References clipboardFileExtension, selectFile(), and tnstream::writing. Referenced by execaction(). |
|
||||||||||||||||||||
|
Definition at line 1383 of file edmisc.cpp. References tstringselect::done(), tstringselect::init(), StringSelector::lastchoice, tstringselect::redline, and StringSelector::run(). Referenced by EditAiParam::buttonpressed(). |
|
|
Definition at line 2381 of file edmisc.cpp. |
|
||||||||||||
|
Definition at line 647 of file edmisc.cpp. References ASC_PG_Dialog::RunModal(), and SelectFromMap::Show(). |
|
|
Definition at line 2677 of file edmisc.cpp. References chooseString(), displaymessage(), filter(), filtersChangedSignal, and ItemFiltrationSystem::itemFilters. Referenced by execaction(). |
|
|
Definition at line 664 of file edmisc.cpp. References activefontsettings, tfontsettings::color, tfontsettings::font, mapsaved, schriften, and Schriften::smallarial. Referenced by mapeditorMainThread(). |
|
|
Definition at line 3380 of file edmisc.cpp. References actmap, and GameMap::getField(). Referenced by execaction(). |
|
|
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(). |
|
||||||||||||
|
Definition at line 3028 of file edmisc.cpp. References vehicleTypeRepository. Referenced by MegaBlitter< BytesPerSourcePixel, BytesPerTargetPixel, SourceColorTransform, ColorMerger, SourcePixelSelector, TargetPixelSelector, MyColorConverter >::blit(), and 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(), TerrainType::id, ContainerBaseType::id, tfield::objects, objectTypeRepository, tnstream::reading, tfield::removeobject(), TextFormatParser::run(), selectFile(), tfield::setparams(), tfield::sortobjects(), TerrainType::Weather::terraintype, terrainTypeRepository, transform(), tfield::typ, Building::typ, Building::unchainbuildingfromfield(), and TerrainType::weather. Referenced by execaction_pg(). |
|
|
Definition at line 2950 of file edmisc.cpp. References UnitTypeTransformation::run(). Referenced by execaction(). |
|
|
Definition at line 4682 of file edmisc.cpp. |
|
|
|
Definition at line 3025 of file edmisc.cpp. Referenced by execaction(), execaction_pg(), main(), and mapeditorMainThread(). |
1.4.2