resourcenet.cpp File Reference

Handling the connection of buildings by pipelines, powerlines etc. More...

#include "typen.h"
#include "vehicletype.h"
#include "buildingtype.h"
#include "spfst.h"
#include "resourcenet.h"
#include "mapalgorithms.h"
#include "dlg_box.h"
#include "dialog.h"
#include "cannedmessages.h"

Include dependency graph for resourcenet.cpp:

Go to the source code of this file.

Functions

void transfer_all_outstanding_tribute (Player &player)
bool compareMapResources (GameMap *currentMap, GameMap *replaymap, int player, ASCString *log)

Variables

SigC::Signal0< void > tributeTransferred


Detailed Description

Handling the connection of buildings by pipelines, powerlines etc.

Definition in file resourcenet.cpp.


Function Documentation

bool compareMapResources ( GameMap currentMap,
GameMap replaymap,
int  player,
ASCString log 
)

Definition at line 670 of file resourcenet.cpp.

References GameMap::bi_resource, Player::buildingList, ContainerBase::damage, Research::developedTechnologies, ASCString::format(), GameMap::getContainer(), VehicleType::getName(), Vehicle::getPosition(), ContainerBase::getProduction(), ContainerBase::getResource(), Vehicle::getResource(), GameMap::getUnit(), GameMap::isResourceGlobal(), log(), maxint, GameMap::player, Research::progress, Player::research, Resources::resource(), resourceNames, Vehicle::typ, Player::vehicleList, MapCoordinate::x, and MapCoordinate::y.

Referenced by trunreplay::run().

void transfer_all_outstanding_tribute ( Player player  ) 

Definition at line 512 of file resourcenet.cpp.

References actmap, GameMap::ResourceTribute::avail, GameMap::bi_resource, Player::buildingList, Player::exist(), ASCString::format(), getmessage(), Player::getName(), Player::getParentMap(), Player::getPosition(), GameMap::isResourceGlobal(), GameMap::ResourceTribute::paid, GameMap::ResourceTribute::payStatusLastTurn, GameMap::player, Resources::resource(), Resources::toString(), GameMap::tribute, and tributeTransferred.

Referenced by deployMapPlayingHooks(), and trunreplay::execnextreplaymove().


Variable Documentation

SigC::Signal0<void> tributeTransferred

Definition at line 32 of file resourcenet.cpp.

Referenced by ResourceTribute::arm(), GetResource::checkbuilding(), and transfer_all_outstanding_tribute().


Generated on Mon May 21 01:42:08 2012 for Advanced Strategic Command by  doxygen 1.5.1