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

trunreplay Class Reference

#include <replay.h>

List of all members.

Public Member Functions

treactionfire_replayinfogetnextreplayinfo (void)
 trunreplay (void)
void firstinit (void)
int run (int player, int viewingplayer, bool performEndTurnOperations)

Public Attributes

int status

Protected Member Functions

void execnextreplaymove (void)
void wait (int t=ticker)
void wait (MapCoordinate pos, int t=ticker)
void wait (MapCoordinate pos1, MapCoordinate pos2, int t=ticker)
void error (const char *message,...)
void error (const MapCoordinate &pos, const char *message,...)
void error (const ASCString &message)
void error (const MapCoordinate &pos, const ASCString &message)
void readnextaction (void)
void displayActionCursor (int x1, int y1, int x2=-1, int y2=-1, int secondWait=0)
void removeActionCursor (void)

Protected Attributes

int movenum
GameMaporgmap
tmemorystreamstream
int actplayer
char nextaction


Constructor & Destructor Documentation

trunreplay::trunreplay void   ) 
 

Definition at line 1269 of file replay.cpp.

References movenum, and status.


Member Function Documentation

void trunreplay::displayActionCursor int  x1,
int  y1,
int  x2 = -1,
int  y2 = -1,
int  secondWait = 0
[protected]
 

Definition at line 1367 of file replay.cpp.

References ReplayMapDisplay::displayActionCursor(), getDefaultMapDisplay(), CGameOptions::Instance(), and ReplayMapDisplay::setCursorDelay().

Referenced by execnextreplaymove().

void trunreplay::error const MapCoordinate pos,
const ASCString message
[protected]
 

Definition at line 1275 of file replay.cpp.

References error().

void trunreplay::error const ASCString message  )  [protected]
 

Definition at line 1312 of file replay.cpp.

References displaymessage(), and CGameOptions::Instance().

void trunreplay::error const MapCoordinate pos,
const char *  message,
  ...
[protected]
 

Definition at line 1281 of file replay.cpp.

References assert, and error().

void trunreplay::error const char *  message,
  ...
[protected]
 

Definition at line 1293 of file replay.cpp.

References displaymessage().

Referenced by error(), execnextreplaymove(), and run().

void trunreplay::execnextreplaymove void   )  [protected]
 

Definition at line 1381 of file replay.cpp.

References actmap, GameMap::actplayer, Building::actstorage, Research::addanytechnology(), tfield::addobject(), ContainerBase::addToCargo(), RecalculateAreaView::addView(), Vehicle::addview(), tfight::av, SelfDestruct::available(), JumpDrive::available(), TechAdapterDependency::available(), ObjectType::basicjamming_abs, ObjectType::basicjamming_plus, ObjectType::buildcost, tfield::building, buildingTypeRepository, ContainerControls::buildProductionLine(), tfight::calc(), Research::cancel(), cgp_building_fuel_factor, cgp_building_material_factor, cnet_stopenergyinput, computeview(), Building::convert(), Vehicle::convert(), cwminen, tfight::tavalues::damage, Vehicletype::description, SelfDestruct::destruct(), ContainerControls::destructUnit(), Player::diplomacy, displayActionCursor(), displayLogMessage(), displaymap(), displaymessage(), displaymessage2(), tfight::dv, Resources::energy, error(), VehicleAction::execute(), VehicleMovement::execute(), fieldvisiblenow(), Resources::fuel, ContainerControls::getammunition(), Building::getCompletion(), GameMap::getContainer(), tfield::getContainer(), getDefaultMapDisplay(), getDestructionCost(), GameMap::getField(), getfield(), GameMap::getgameparameter(), getmessage(), ContainerBase::getOwner(), GameMap::getPlayer(), GameMap::getPlayerView(), ContainerBase::getProductionCost(), Building::getResource(), VehicleAction::getStatus(), BaseVehicleMovement::getStatus(), Vehicle::getTank(), GameMap::getUnit(), getUnitResourceCargo(), GameMap::getvehicletype_byid(), Vehicle::height, CGameOptions::Instance(), ReplayRecorder::isRunning(), JumpDrive::jump(), Resources::material, maxmalq, maxViewRange, movenum, ContainerControls::moveUnitUp(), Building::netcontrol, Vehicle::networkid, nextaction, VehicleMovement::NoInterrupt, objectTypeRepository, GameMap::player, ContainerControls::produceAmmo(), ContainerBaseType::productionCost, Research::progress, putbuilding2(), Building::putResource(), tnstream::readInt(), readnextaction(), removeActionCursor(), ObjectType::removecost, tfield::removeobject(), ContainerControls::removeProductionLine(), RecalculateAreaView::removeView(), ContainerBase::repairItem(), Player::research, Resources::resource(), rpl_alliancechange2, rpl_attack, rpl_bldrefuel, rpl_buildobj, rpl_buildobj2, rpl_buildProdLine, rpl_buildtnk, rpl_buildtnk2, rpl_buildtnk3, rpl_buildtnk4, rpl_cancelResearch, rpl_changeheight, rpl_changeheight2, rpl_convert, rpl_convert2, rpl_cutFromGame, rpl_finished, rpl_jump, rpl_move, rpl_move2, rpl_move3, rpl_move4, rpl_move5, rpl_moveUnitUp, rpl_moveUnitUpDown, rpl_netcontrol, rpl_produceAmmo, rpl_produceunit, rpl_putbuilding, rpl_putbuilding2, rpl_putmine, rpl_putmine2, rpl_reactionFireOff, rpl_reactionFireOn, rpl_recycleUnit, rpl_refuel, rpl_refuel2, rpl_refuel3, rpl_remobj, rpl_remobj2, rpl_removebuilding, rpl_removebuilding2, rpl_removebuilding3, rpl_removemine, rpl_removeProdLine, rpl_removeunit, rpl_repairBuilding, rpl_repairUnit, rpl_repairUnit2, rpl_repairUnit3, rpl_selfdestruct, rpl_setGeneratorStatus, rpl_setResearch, rpl_setResourceProcessingAmount, rpl_techResearched, rpl_trainunit, rpl_transferTribute, Building::setCompletion(), tunitattacksobject::setresult(), tunitattacksbuilding::setresult(), tunitattacksunit::setresult(), DiplomaticStateVector::setState(), ReplayMapDisplay::showBattle(), status, stream, ContainerBaseType::techDependency, technologyRepository, ticker, ContainerControls::trainUnit(), transfer_all_outstanding_tribute(), Vehicle::typ, ContainerControls::unitTrainingAvailable(), updateFieldInfo, tfield::vehicle, vehicleTypeRepository, ObjectType::viewbonus_abs, ObjectType::viewbonus_plus, wait(), Vehicle::xpos, and Vehicle::ypos.

Referenced by run().

void trunreplay::firstinit void   ) 
 

Definition at line 2697 of file replay.cpp.

References status.

Referenced by run().

treactionfire_replayinfo * trunreplay::getnextreplayinfo void   ) 
 

Definition at line 2534 of file replay.cpp.

References treactionfire_replayinfo::ad1, treactionfire_replayinfo::ad2, treactionfire_replayinfo::dd1, treactionfire_replayinfo::dd2, nextaction, tnstream::readInt(), readnextaction(), rpl_reactionfire, stream, treactionfire_replayinfo::wpnum, treactionfire_replayinfo::x1, treactionfire_replayinfo::x2, treactionfire_replayinfo::y1, and treactionfire_replayinfo::y2.

Referenced by treactionfirereplay::init().

void trunreplay::readnextaction void   )  [protected]
 

Definition at line 2525 of file replay.cpp.

References tmemorystream::dataavail(), nextaction, tnstream::readChar(), rpl_finished, and stream.

Referenced by execnextreplaymove(), and getnextreplayinfo().

void trunreplay::removeActionCursor void   )  [protected]
 

Definition at line 1374 of file replay.cpp.

References getDefaultMapDisplay(), and ReplayMapDisplay::removeActionCursor().

Referenced by execnextreplaymove().

int trunreplay::run int  player,
int  viewingplayer,
bool  performEndTurnOperations
 

Definition at line 2560 of file replay.cpp.

References actmap, GameMap::actplayer, actplayer, checktimedevents(), compareMapResources(), computeview(), tmemorystream::dataavail(), displaymap(), displaymessage(), displaymessage2(), error(), execnextreplaymove(), findNextPlayer(), firstinit(), PG_Application::GetApp(), GameMap::getCursor(), getDefaultMapDisplay(), OverviewMapHolder::getOverviewMap(), getPGApplication(), CGameOptions::Instance(), ReplayRecorder::isRunning(), loadreplay(), mainScreenWidget, MainScreenWidget::LockOptions::Menu, movenum, nextaction, orgmap, GameMap::overviewMapHolder, tnstream::readChar(), tnstream::reading, releasetimeslice(), GameMap::Replay, GameMap::replayinfo, rpl_finished, ASC_PG_Dialog::RunModal(), GameMap::setPlayerView(), PG_Widget::Show(), GameMap::state, status, stream, and updateFieldInfo.

Referenced by runSpecificReplay().

void trunreplay::wait MapCoordinate  pos1,
MapCoordinate  pos2,
int  t = ticker
[protected]
 

Definition at line 1347 of file replay.cpp.

References actmap, fieldvisiblenow(), GameMap::getField(), GameMap::getPlayerView(), and wait().

void trunreplay::wait MapCoordinate  pos,
int  t = ticker
[protected]
 

Definition at line 1341 of file replay.cpp.

References actmap, fieldvisiblenow(), GameMap::getField(), GameMap::getPlayerView(), and wait().

void trunreplay::wait int  t = ticker  )  [protected]
 

Definition at line 1326 of file replay.cpp.

References keypress(), and releasetimeslice().

Referenced by execnextreplaymove(), and wait().


Member Data Documentation

int trunreplay::actplayer [protected]
 

Definition at line 107 of file replay.h.

Referenced by run().

int trunreplay::movenum [protected]
 

Definition at line 100 of file replay.h.

Referenced by execnextreplaymove(), run(), and trunreplay().

char trunreplay::nextaction [protected]
 

Definition at line 114 of file replay.h.

Referenced by execnextreplaymove(), getnextreplayinfo(), readnextaction(), and run().

GameMap* trunreplay::orgmap [protected]
 

Definition at line 102 of file replay.h.

Referenced by run().

int trunreplay::status
 

Definition at line 125 of file replay.h.

Referenced by ReplayGuiFunctions::ReplayRecordExit::available(), ReplayGuiFunctions::ReplayRecord::available(), ReplayGuiFunctions::ReplayExit::available(), ReplayGuiFunctions::ReplayRewind::available(), ReplayGuiFunctions::ReplaySlower::available(), ReplayGuiFunctions::ReplayFaster::available(), ReplayGuiFunctions::ReplayPause::available(), ReplayGuiFunctions::ReplayPlay::available(), execnextreplaymove(), ReplayGuiFunctions::ReplayRecordExit::execute(), ReplayGuiFunctions::ReplayRecord::execute(), ReplayGuiFunctions::ReplayExit::execute(), ReplayGuiFunctions::ReplayRewind::execute(), ReplayGuiFunctions::ReplayPause::execute(), ReplayGuiFunctions::ReplayPlay::execute(), firstinit(), treactionfirereplay::init(), run(), and trunreplay().

tmemorystream* trunreplay::stream [protected]
 

Definition at line 103 of file replay.h.

Referenced by execnextreplaymove(), getnextreplayinfo(), readnextaction(), and run().


The documentation for this class was generated from the following files:
Generated on Tue Jun 24 02:21:52 2008 for Advanced Strategic Command by  doxygen 1.4.2