gamedlg.cpp File Reference

Tons of dialog boxes which are used in ASC only (and not in the mapeditor). More...

#include <stdio.h>
#include <cstring>
#include <ctype.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include "vehicletype.h"
#include "buildingtype.h"
#include "basegfx.h"
#include "gamedlg.h"
#include "stack.h"
#include "controls.h"
#include "gameoptions.h"
#include "errors.h"
#include "viewcalculation.h"
#include "itemrepository.h"
#include "strtmesg.h"
#include "dialogs/editmapparam.h"
#include "dlg_box.h"
#include "spfst.h"
#include "dialog.h"
#include "actions/transfercontrolcommand.h"
#include "widgets/textrenderer.h"
#include "sg.h"
#include "spfst-legacy.h"

Include dependency graph for gamedlg.cpp:

Go to the source code of this file.

Classes

class  ttributepayments
class  tresearchinfo
class  tchoosetechlevel
class  tgiveunitawaydlg

Functions

void settributepayments (void)
void researchinfo (void)
void choosetechlevel (void)
ASCString writeGameParametersToString (GameMap *actmap)
void sendGameParameterAsMail (GameMap *actmap)
void showGameParameters (void)
void giveunitaway (MapField *fld, const Context &context)
void showPlayerTime ()
void displaywindspeed (void)


Detailed Description

Tons of dialog boxes which are used in ASC only (and not in the mapeditor).

Definition in file gamedlg.cpp.


Function Documentation

void choosetechlevel ( void   ) 

Definition at line 445 of file gamedlg.cpp.

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

void displaywindspeed ( void   ) 

Definition at line 693 of file gamedlg.cpp.

References actmap, displaymessage2(), maxwindspeed, strrrd8d(), GameMap::weather, GameMap::Weather::windDirection, and GameMap::Weather::windSpeed.

void giveunitaway ( MapField fld,
const Context context 
)

Definition at line 639 of file gamedlg.cpp.

References GameMap::actplayer, TransferControlCommand::avail(), dispmessage2(), tdialogbox::done(), MapField::getContainer(), ContainerBase::getMap(), ContainerBase::getOwner(), tgiveunitawaydlg::init(), mouseparams, releasetimeslice(), tgiveunitawaydlg::run(), and tmousesettings::taste.

Referenced by executeUserAction().

void researchinfo ( void   ) 

Definition at line 357 of file gamedlg.cpp.

References actmap, GameMap::actplayer, ct_lshift, Research::developedTechnologies, tdialogbox::done(), tresearchinfo::init(), Research::listTriggeredTechAdapter(), GameMap::player, Player::research, tresearchinfo::run(), ASC_PG_Dialog::RunModal(), skeypress(), and technologyRepository.

Referenced by executeUserAction().

void sendGameParameterAsMail ( GameMap actmap  ) 

Definition at line 481 of file gamedlg.cpp.

References actmap, cgp_superVisorCanSaveMap, GameMap::getgameparameter(), and writeGameParametersToString().

Referenced by StartMultiplayerGame::start().

void settributepayments ( void   ) 

Definition at line 255 of file gamedlg.cpp.

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

Referenced by executeUserAction().

void showGameParameters ( void   ) 

Definition at line 495 of file gamedlg.cpp.

References actmap, ASC_PG_Dialog::RunModal(), and writeGameParametersToString().

Referenced by executeUserAction().

void showPlayerTime (  ) 

Definition at line 665 of file gamedlg.cpp.

References actmap, GameMap::actplayer, Player::ASCversion, Player::exist(), Player::getName(), getVersionString(), GameMap::player, Player::playTime, ASC_PG_Dialog::RunModal(), and strrr().

Referenced by executeUserAction().

ASCString writeGameParametersToString ( GameMap actmap  ) 

Definition at line 459 of file gamedlg.cpp.

References actmap, GameParameterSettings::defaultValue, gameparameternum, gameParameterSettings, GameMap::getgameparameter(), GameParameterSettings::longName, and strrr().

Referenced by sendGameParameterAsMail(), and showGameParameters().


Generated on Mon May 21 01:35:03 2012 for Advanced Strategic Command by  doxygen 1.5.1