#include <replaymapdisplay.h>
Inheritance diagram for ReplayMapDisplay:

Public Member Functions | |
| ReplayMapDisplay (MapDisplayInterface *md) | |
| int | displayMovingUnit (const MapCoordinate3D &start, const MapCoordinate3D &dest, Vehicle *vehicle, int fieldnum, int totalmove, SoundStartCallback startSound, int duration) |
| void | displayPosition (int x, int y) |
| void | displayMap (Vehicle *additionalVehicle) |
| void | displayMap (void) |
| void | resetMovement (void) |
| void | startAction (void) |
| void | stopAction (void) |
| void | cursor_goto (const MapCoordinate &pos) |
| void | displayActionCursor (int x1, int y1, int x2, int y2, int secondWait) |
| void | displayActionCursor (int x1, int y1) |
| void | displayActionCursor (int x1, int y1, int x2, int y2) |
| void | removeActionCursor (void) |
| int | checkMapPosition (int x, int y) |
| void | setCursorDelay (int time) |
| void | updateDashboard () |
| void | repaintDisplay () |
| void | setTempView (bool view) |
| void | showBattle (tfight &battle) |
| void | playPositionalSound (const MapCoordinate &pos, Sound *snd) |
| int | getUnitMovementDuration () const |
Definition at line 31 of file replaymapdisplay.h.
| ReplayMapDisplay::ReplayMapDisplay | ( | MapDisplayInterface * | md | ) | [inline] |
Definition at line 36 of file replaymapdisplay.h.
| int ReplayMapDisplay::displayMovingUnit | ( | const MapCoordinate3D & | start, | |
| const MapCoordinate3D & | dest, | |||
| Vehicle * | vehicle, | |||
| int | fieldnum, | |||
| int | totalmove, | |||
| SoundStartCallback | startSound, | |||
| int | duration | |||
| ) |
Definition at line 65 of file replaymapdisplay.cpp.
References actmap, calcvisibilityfield(), cgp_initialMapVisibility, checkMapPosition(), Player::diplomacy, MapDisplayInterface::displayMap(), displayMap(), MapDisplayInterface::displayMovingUnit(), fieldVisibility(), fieldvisiblenow(), GameMap::getField(), getfield(), GameMap::getgameparameter(), ContainerBase::getOwner(), GameMap::getPlayerView(), ContainerBaseType::jamming, GameMap::player, MapDisplayInterface::resetMovement(), DiplomaticStateVector::sharesView(), Vehicle::typ, visible_now, MapCoordinate::x, and MapCoordinate::y.
| void ReplayMapDisplay::displayPosition | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Implements MapDisplayInterface.
Definition at line 107 of file replaymapdisplay.cpp.
References actmap, checkMapPosition(), MapDisplayInterface::displayPosition(), fieldvisiblenow(), getfield(), and GameMap::getPlayerView().
| void ReplayMapDisplay::displayMap | ( | Vehicle * | additionalVehicle | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 39 of file replaymapdisplay.h.
References MapDisplayInterface::displayMap().
| void ReplayMapDisplay::displayMap | ( | void | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 40 of file replaymapdisplay.h.
References MapDisplayInterface::displayMap().
Referenced by displayMovingUnit().
| void ReplayMapDisplay::resetMovement | ( | void | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 41 of file replaymapdisplay.h.
References MapDisplayInterface::resetMovement().
| void ReplayMapDisplay::startAction | ( | void | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 42 of file replaymapdisplay.h.
References MapDisplayInterface::startAction().
| void ReplayMapDisplay::stopAction | ( | void | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 43 of file replaymapdisplay.h.
References MapDisplayInterface::stopAction().
| void ReplayMapDisplay::cursor_goto | ( | const MapCoordinate & | pos | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 44 of file replaymapdisplay.h.
References MapDisplayInterface::cursor_goto().
Referenced by displayActionCursor().
| void ReplayMapDisplay::displayActionCursor | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2, | |||
| int | secondWait | |||
| ) |
Definition at line 121 of file replaymapdisplay.cpp.
References actmap, cursor_goto(), fieldvisiblenow(), getfield(), and GameMap::getPlayerView().
Referenced by displayActionCursor(), and trunreplay::displayActionCursor().
| void ReplayMapDisplay::displayActionCursor | ( | int | x1, | |
| int | y1 | |||
| ) | [inline] |
| void ReplayMapDisplay::displayActionCursor | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2 | |||
| ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 47 of file replaymapdisplay.h.
References displayActionCursor().
| void ReplayMapDisplay::removeActionCursor | ( | void | ) | [virtual] |
Implements MapDisplayInterface.
Definition at line 115 of file replaymapdisplay.cpp.
References MapDisplayInterface::removeActionCursor().
Referenced by trunreplay::removeActionCursor().
| int ReplayMapDisplay::checkMapPosition | ( | int | x, | |
| int | y | |||
| ) |
Definition at line 18 of file replaymapdisplay.cpp.
References MapDisplayInterface::displayPosition().
Referenced by displayMovingUnit(), and displayPosition().
| void ReplayMapDisplay::setCursorDelay | ( | int | time | ) | [inline] |
| void ReplayMapDisplay::updateDashboard | ( | void | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 51 of file replaymapdisplay.h.
References MapDisplayInterface::updateDashboard().
| void ReplayMapDisplay::repaintDisplay | ( | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 52 of file replaymapdisplay.h.
References MapDisplayInterface::repaintDisplay().
| void ReplayMapDisplay::setTempView | ( | bool | view | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 53 of file replaymapdisplay.h.
References MapDisplayInterface::setTempView().
| void ReplayMapDisplay::showBattle | ( | tfight & | battle | ) | [inline, virtual] |
Implements MapDisplayInterface.
Definition at line 54 of file replaymapdisplay.h.
References MapDisplayInterface::showBattle().
Referenced by trunreplay::execnextreplaymove().
| void ReplayMapDisplay::playPositionalSound | ( | const MapCoordinate & | pos, | |
| Sound * | snd | |||
| ) | [virtual] |
Implements MapDisplayInterface.
Definition at line 152 of file replaymapdisplay.cpp.
References actmap, fieldvisiblenow(), GameMap::getField(), GameMap::getPlayerView(), and MapDisplayInterface::playPositionalSound().
| int ReplayMapDisplay::getUnitMovementDuration | ( | ) | const [virtual] |
Implements MapDisplayInterface.
Definition at line 160 of file replaymapdisplay.cpp.
References CGameOptions::Instance(), max(), and CGameOptions::movespeed.
1.5.1