Advanced Strategic Command
Classes | Functions
turncontrol.cpp File Reference
#include "turncontrol.h"
#include "gamemap.h"
#include "mapdisplay.h"
#include "gameoptions.h"
#include "dialogs/pwd_dlg.h"
#include "controls.h"
#include "spfst.h"
#include "dlg_box.h"
#include "ai/ai.h"
#include "dialog.h"
#include "strtmesg.h"
#include "loaders.h"
#include "cannedmessages.h"
#include "viewcalculation.h"
#include "network/simple_file_transfer.h"
#include "dialogs/fileselector.h"
#include "researchexecution.h"
#include "gameeventsystem.h"
Include dependency graph for turncontrol.cpp:

Go to the source code of this file.

Classes

class  ReplayClearer
 

Functions

bool authenticateUser (GameMap *actmap, bool allowCancel=true, bool lockView=true, bool throwOnFailure=false)
 
void runai (GameMap *actmap, int playerView, MapDisplayInterface *display)
 
int findNextPlayer (GameMap *actmap, AbstractPlayerProcessing *playerProcessor)
 
void iterateToNextPlayer (GameMap *actmap, bool saveNetwork, int lastPlayer, int lastTurn, MapDisplayInterface *display)
 
void next_turn (GameMap *gamemap, const NextTurnStrategy &nextTurnStrategy, MapDisplayInterface *display, int playerView)
 
void skipTurn (GameMap *gamemap)
 skips the next player. This is for administrative use, for example if a player does not react More...
 
void checkUsedASCVersions (Player &currentPlayer)
 this checks if one player has been using a new ASC version than the current player. If this is the case, the current player is notified and asked to upgrade More...
 
GameMapcontinueNetworkGame (bool mostRecent)
 continues a PBeM game; the current map is deleted More...
 
GameMapcontinueNetworkGame (const ASCString &filename)
 
void checkforvictory (GameMap *gamemap, bool hasTurnControl)
 checks if the current player has terminated another player or even won More...
 

Function Documentation

bool authenticateUser ( GameMap actmap,
bool  allowCancel = true,
bool  lockView = true,
bool  throwOnFailure = false 
)
void checkforvictory ( GameMap gamemap,
bool  hasTurnControl 
)
void checkUsedASCVersions ( Player currentPlayer)

this checks if one player has been using a new ASC version than the current player. If this is the case, the current player is notified and asked to upgrade

Definition at line 303 of file turncontrol.cpp.

References GameMap::actplayer, Player::ASCversion, Player::exist(), Player::getName(), getNumericVersion(), Player::getParentMap(), and GameMap::player.

Referenced by hookGuiToMap().

GameMap* continueNetworkGame ( bool  mostRecent)
GameMap* continueNetworkGame ( const ASCString filename)
int findNextPlayer ( GameMap actmap,
AbstractPlayerProcessing playerProcessor 
)
void iterateToNextPlayer ( GameMap actmap,
bool  saveNetwork,
int  lastPlayer,
int  lastTurn,
MapDisplayInterface display 
)
void next_turn ( GameMap gameMap,
const NextTurnStrategy nextTurnStrategy,
MapDisplayInterface display,
int  playerView = -2 
)
void runai ( GameMap actmap,
int  playerView,
MapDisplayInterface display 
)
void skipTurn ( GameMap gamemap)

skips the next player. This is for administrative use, for example if a player does not react

Definition at line 292 of file turncontrol.cpp.

References GameMap::actplayer, GameMap::beginTurn(), GameMap::endTurn(), and iterateToNextPlayer().

Referenced by networksupervisor().