statistics.cpp File Reference

#include <cmath>
#include "util/messaginghub.h"
#include "statistics.h"
#include "vehicle.h"
#include "viewcalculation.h"
#include "attack.h"
#include "spfst.h"
#include "widgets/textrenderer.h"

Include dependency graph for statistics.cpp:

Go to the source code of this file.

Functions

ASCString getVisibilityStatistics (GameMap *actmap)
ASCString getPlayerStrength (GameMap *gamemap)
void pbpplayerstatistics (GameMap *gamemap)


Function Documentation

ASCString getPlayerStrength ( GameMap gamemap  ) 

Definition at line 142 of file statistics.cpp.

References Player::buildingList, ASCString::format(), Player::getName(), GameMap::getPlayerCount(), Resources::material, GameMap::player, Resources::resource(), StatisticsCalculator::resource(), resourceNames, StatisticsCalculator::strength(), ASCString::toString(), and Player::vehicleList.

Referenced by pbpplayerstatistics().

ASCString getVisibilityStatistics ( GameMap actmap  ) 

Definition at line 90 of file statistics.cpp.

References actmap, computeview(), Player::exist(), fieldVisibility(), GameMap::getField(), Player::getName(), GameMap::getPlayer(), GameMap::getPlayerCount(), GameMap::player, Player::stat, Player::supervisor, ASCString::toString(), visible_ago, visible_all, visible_not, visible_now, GameMap::xsize, and GameMap::ysize.

Referenced by pbpplayerstatistics().

void pbpplayerstatistics ( GameMap gamemap  ) 

Definition at line 179 of file statistics.cpp.

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

Referenced by execaction(), and execaction_pg().


Generated on Mon May 21 01:43:22 2012 for Advanced Strategic Command by  doxygen 1.5.1