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

edglobal.cpp File Reference

various functions for the mapeditor More...

#include <stdarg.h>
#include "global.h"
#include "vehicletype.h"
#include "buildingtype.h"
#include "edmisc.h"
#include "loadbi3.h"
#include "edgen.h"
#include "edselfnt.h"
#include "edglobal.h"
#include "gameoptions.h"
#include "mapdisplay.h"
#include "itemrepository.h"
#include "clipboard.h"
#include "resourceplacementdialog.h"
#include "maped-mainscreen.h"
#include "attack.h"
#include "mapimageexport.h"
#include "viewcalculation.h"
#include "dialogs/unitinfodialog.h"
#include "dialogs/editmapparam.h"
#include "dialogs/alliancesetup.h"
#include "dialogs/playersetup.h"
#include "dialogs/editgameoptions.h"
#include "dialogs/admingame.h"
#include "dialogs/eventeditor.h"
#include "dialogs/newmap.h"
#include "dialogs/terraininfo.h"
#include "widgets/textrenderer.h"
#include "dialogs/exchangegraphics.h"
#include "dialogs/fileselector.h"
#include "dialogs/importbi3map.h"
#include "stack.h"

Include dependency graph for edglobal.cpp:

Go to the source code of this file.

Functions

int infomessage (char *formatstring,...)
ASCString getbipath (void)
double unitStrengthValue (Vehicle *veh)
ASCString getVisibilityStatistics (GameMap *actmap)
ASCString getPlayerStrength (GameMap *gamemap)
void pbpplayerstatistics (GameMap *gamemap)
void showPlayerPanel (bool open)
void execaction (int code)
 this executes all functions that use legacy Eventhandling
void execaction_pg (int code)
 this executes all functions that use Paragui Eventhandling
void execaction_ev (int code)

Variables

const char * execactionnames [execactionscount]
SelectionHolder selection


Detailed Description

various functions for the mapeditor

Definition in file edglobal.cpp.


Function Documentation

void execaction int  code  ) 
 

this executes all functions that use legacy Eventhandling

Definition at line 501 of file edglobal.cpp.

References GameMap::_resourcemode, act_about, act_aboutbox, act_asc_resource, act_bi_resource, act_changeminestrength, act_changeplayers, act_changeresources, act_changeunitdir, act_changeunitvals, act_copyToClipboard, act_createresources, act_cutToClipboard, act_deleteallobjects, act_deletebuilding, act_deletemine, act_deleteobject, act_deletething, act_deletetopmostobject, act_deleteunit, act_displayResourceComparison, act_editArchivalInformation, act_editResearch, act_editResearchPoints, act_editTechAdapter, act_generateTechTree, act_mapgenerator, act_mirrorcursorx, act_mirrorcursory, act_movebuilding, act_pasteFromClipboard, act_placething, act_playerStrengthSummary, act_primaryAction, act_readClipBoard, act_resizemap, act_saveClipboard, act_setactivefieldvals, act_setactweatherglobal, act_setTurnNumber, act_setunitfilter, act_showPipeNet, act_smoothcoasts, act_switchmaps, act_terraininfo, act_toggleresourcemode, act_unitSetInformation, act_unitsettransformation, act_viewmap, MainScreenWidget::activateMapLayer(), actmap, tfield::building, calculateallobjects(), changebuildingvalues(), changeminestrength(), changeresource(), changeunitvalues(), MapDisplayPG::cursor, Vehicle::direction, displaymap(), displaymessage(), tdialogbox::done(), editArchivalInformation(), editResearch(), editResearchPoints(), editTechAdapter(), execaction(), filtersChangedSignal, generateTechTree(), getactfield(), GameMap::getCursor(), MapSwitcher::getDefaultAction(), getid(), getMainScreenWidget(), MainScreenWidget::getMapDisplay(), getVersionAndCompilation(), SelectionHolder::getWeather(), MapDisplayPG::Cursor::goTo(), tputresourcesdlg::init(), mainScreenWidget, mapChanged, mapgenerator(), mapsaved, mapSwitcher, maxint, tfield::mines, mouseparams, movebuilding(), tfield::objects, pbpplayerstatistics(), SelectionHolder::pickup(), placeCurrentItem(), playerchange(), MapDisplayPG::Cursor::pos(), readClipboard(), readtextmessage(), releasetimeslice(), removeCurrentItem(), tfield::removemine(), tfield::removeobject(), repaintMap, resizemap(), resourceComparison(), tputresourcesdlg::run(), ASC_PG_Dialog::RunModal(), saveClipboard(), MapSwitcher::select, selectunitsetfilter(), GameTime::set(), setweatherall(), PG_Widget::Show(), sidenum, ForestCalculation::smooth(), tmousesettings::taste, GameMap::time, MapSwitcher::toggle(), MainScreenWidget::toggleMapLayer(), GameTime::turn(), unitsettransformation(), updateFieldInfo, tfield::vehicle, viewterraininfo(), viewUnitSetinfo(), GameMap::xsize, and GameMap::ysize.

Referenced by execaction(), execaction_ev(), and execaction_pg().

void execaction_ev int  code  ) 
 

Definition at line 1061 of file edglobal.cpp.

References execaction(), and execaction_pg().

Referenced by Maped_MainScreenWidget::eventKeyDown(), Maped_MainScreenWidget::eventKeyUp(), mouseDraggedToField(), mousePressedOnField(), Maped_MainScreenWidget::selectObject(), and Maped_MainScreenWidget::selectTerrain().

void execaction_pg int  code  ) 
 

this executes all functions that use Paragui Eventhandling

Definition at line 834 of file edglobal.cpp.

References act_changecargo, act_changemapvals, act_changeproduction, act_clearresources, act_clearSelection, act_copyArea, act_createresources2, act_decrease_zoom, act_dumpAllBuildings, act_dumpAllVehicleDefinitions, act_dumpBuilding, act_dumpObject, act_dumpVehicle, act_editpreferences, act_end, act_events, act_exchangeGraphics, act_help, act_import_bi_map, act_increase_zoom, act_insert_bi_map, act_loadmap, act_locateItemByID, act_maptopcx, act_mirrorMap, act_newmap, act_openControlPanel, act_pasteArea, act_pbpstatistics, act_releaseControlPanel, act_resetPlayerData, act_savemap, act_savemapas, act_selbodentyp, act_selbodentypAll, act_selbuilding, act_selectgraphicset, act_selmine, act_selobject, act_selobjectAll, act_selunit, act_setactivefieldvals, act_setactnewweather, act_setmapparameters, act_setupalliances, act_setupplayers, act_switchmaps, act_transformMap, act_unitinfo, actmap, adminGame(), asc_nullPointerCrash, asc_testFunction, buildingTypeRepository, cargoEditor(), choice_dlg(), SelectionHolder::clear(), computeview(), copyArea(), displaymap(), displaymessage(), editGameOptions(), editMap(), editProduction(), errorMessage(), eventEditor(), exchangeGraphics(), execaction(), getactfield(), GameMap::getbuildingtype_byid(), MapSwitcher::getDefaultAction(), GameMap::getField(), MainScreenWidget::getMapDisplay(), GameMap::getobjecttype_byid(), getPGApplication(), GameMap::getvehicletype_byid(), help(), importBI3Map(), ContainerBaseType::InternalVehicleProduction, k_loadmap(), k_savemap(), locateItemByID(), mainScreenWidget, mapsaved, mapSwitcher, mirrorMap(), newmap(), pasteArea(), pbpplayerstatistics(), repaintMap, resourcePlacementDialog(), BuildingType::runTextIO(), Vehicletype::runTextIO(), ObjectType::runTextIO(), MapSwitcher::select, selectFile(), selectgraphicset(), setmapparameters(), setupalliances(), setupPlayers(), showPlayerPanel(), testDebugFunction(), ASCString::toString(), transformMap(), unitInfoDialog(), vehicleTypeRepository, viewChanged, warning(), weatherConfigurationDialog(), writemaptopcx(), and tnstream::writing.

Referenced by execaction_ev().

ASCString getbipath void   ) 
 

Definition at line 283 of file edglobal.cpp.

References appendbackslash(), displaymessage(), editString(), exist(), getbi3path(), CGameOptions::Instance(), and pathdelimitterstring.

ASCString getPlayerStrength GameMap gamemap  ) 
 

Definition at line 362 of file edglobal.cpp.

References actmap, Player::buildingList, ASCString::format(), Player::getName(), Resources::material, maxint, GameMap::player, Resources::resource(), resourceNames, ASCString::toString(), unitStrengthValue(), and Player::vehicleList.

Referenced by pbpplayerstatistics().

ASCString getVisibilityStatistics GameMap actmap  ) 
 

Definition at line 328 of file edglobal.cpp.

References computeview(), Player::exist(), fieldVisibility(), GameMap::getField(), Player::getName(), GameMap::player, ASCString::toString(), visible_ago, and visible_not.

Referenced by pbpplayerstatistics().

int infomessage char *  formatstring,
  ...
 

Definition at line 240 of file edglobal.cpp.

References actdisplayedmessage, activefontsettings, agmp, tfontsettings::background, tfontsettings::color, tfontsettings::font, tfontsettings::justify, lastdisplayedmessageticker, lefttext, tfontsettings::length, lightgray, tfontsettings::markcolor, npop, npush, red, tgraphmodeparameters::resolutionx, tgraphmodeparameters::resolutiony, schriften, showtext3c(), Schriften::smallarial, and ticker.

void pbpplayerstatistics GameMap gamemap  ) 
 

Definition at line 401 of file edglobal.cpp.

References getPlayerStrength(), getVisibilityStatistics(), GameMap::maptitle, ASC_PG_Dialog::RunModal(), and PG_Widget::Show().

Referenced by execaction(), and execaction_pg().

void showPlayerPanel bool  open  ) 
 

Definition at line 480 of file edglobal.cpp.

References PlayerColorPanel::Hide(), and PlayerColorPanel::Show().

Referenced by execaction_pg().

double unitStrengthValue Vehicle veh  ) 
 

Definition at line 318 of file edglobal.cpp.

References ContainerBase::damage, AttackFormula::defense_experience(), Resources::energy, Vehicle::experience, Resources::material, ContainerBaseType::productionCost, AttackFormula::strength_damage(), AttackFormula::strength_experience(), and Vehicle::typ.

Referenced by getPlayerStrength().


Variable Documentation

const char* execactionnames[execactionscount]
 

Definition at line 63 of file edglobal.cpp.

Referenced by ContextMenu::AutoTextContextAction::getText().

SelectionHolder selection
 

Definition at line 178 of file edglobal.cpp.

Referenced by Maped_MainScreenWidget::brushChanged(), Maped_MainScreenWidget::clearSelection(), BuildingItem::display(), VehicleItem::display(), MapItemTypeWidgetFactory< MapItemTypeWidget< Vehicletype > >::itemSelected(), MapComponent::MapComponent(), Maped_MainScreenWidget::Maped_MainScreenWidget(), MineItem::place(), TerrainItem::place(), BuildingItem::place(), VehicleItem::place(), placeCurrentItem(), and removeCurrentItem().


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