Advanced Strategic Command
Public Member Functions | List of all members
ReplayMapDisplay Class Reference

#include <replaymapdisplay.h>

Inheritance diagram for ReplayMapDisplay:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from MapDisplayInterface
void displayPosition (const MapCoordinate &pos)
 
virtual void displayActionCursor (const MapCoordinate &pos1, const MapCoordinate &pos2)
 
virtual ~MapDisplayInterface ()
 

Additional Inherited Members

- Public Types inherited from MapDisplayInterface
typedef Loki::Functor< void,
LOKI_TYPELIST_1(int) > 
SoundStartCallback
 

Detailed Description

Definition at line 31 of file replaymapdisplay.h.

Constructor & Destructor Documentation

ReplayMapDisplay::ReplayMapDisplay ( MapDisplayInterface md)
inline

Definition at line 36 of file replaymapdisplay.h.

Member Function Documentation

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::cursor_goto ( const MapCoordinate pos)
inlinevirtual

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 
)
void ReplayMapDisplay::displayActionCursor ( int  x1,
int  y1 
)
inline

Definition at line 46 of file replaymapdisplay.h.

References displayActionCursor().

Referenced by displayActionCursor().

void ReplayMapDisplay::displayActionCursor ( int  x1,
int  y1,
int  x2,
int  y2 
)
inlinevirtual

Implements MapDisplayInterface.

Definition at line 47 of file replaymapdisplay.h.

References displayActionCursor().

Referenced by displayActionCursor().

void ReplayMapDisplay::displayMap ( Vehicle additionalVehicle)
inlinevirtual

Implements MapDisplayInterface.

Definition at line 39 of file replaymapdisplay.h.

References MapDisplayInterface::displayMap().

void ReplayMapDisplay::displayMap ( void  )
inlinevirtual

Implements MapDisplayInterface.

Definition at line 40 of file replaymapdisplay.h.

References MapDisplayInterface::displayMap().

Referenced by displayMovingUnit().

int ReplayMapDisplay::displayMovingUnit ( const MapCoordinate3D start,
const MapCoordinate3D dest,
Vehicle vehicle,
int  fieldnum,
int  totalmove,
SoundStartCallback  startSound,
int  duration 
)
virtual
void ReplayMapDisplay::displayPosition ( int  x,
int  y 
)
virtual
int ReplayMapDisplay::getUnitMovementDuration ( ) const
virtual

Implements MapDisplayInterface.

Definition at line 160 of file replaymapdisplay.cpp.

References CGameOptions::Instance(), max(), and CGameOptions::movespeed.

void ReplayMapDisplay::playPositionalSound ( const MapCoordinate pos,
Sound snd 
)
virtual
void ReplayMapDisplay::removeActionCursor ( void  )
virtual
void ReplayMapDisplay::repaintDisplay ( )
inlinevirtual

Implements MapDisplayInterface.

Definition at line 52 of file replaymapdisplay.h.

References MapDisplayInterface::repaintDisplay().

void ReplayMapDisplay::resetMovement ( void  )
inlinevirtual

Implements MapDisplayInterface.

Definition at line 41 of file replaymapdisplay.h.

References MapDisplayInterface::resetMovement().

void ReplayMapDisplay::setCursorDelay ( int  time)
inline

Definition at line 50 of file replaymapdisplay.h.

Referenced by trunreplay::displayActionCursor().

void ReplayMapDisplay::setTempView ( bool  view)
inlinevirtual

Implements MapDisplayInterface.

Definition at line 53 of file replaymapdisplay.h.

References MapDisplayInterface::setTempView().

void ReplayMapDisplay::showBattle ( tfight battle)
inlinevirtual

Implements MapDisplayInterface.

Definition at line 54 of file replaymapdisplay.h.

References MapDisplayInterface::showBattle().

Referenced by trunreplay::execnextreplaymove().

void ReplayMapDisplay::startAction ( void  )
inlinevirtual

Implements MapDisplayInterface.

Definition at line 42 of file replaymapdisplay.h.

References MapDisplayInterface::startAction().

void ReplayMapDisplay::stopAction ( void  )
inlinevirtual

Implements MapDisplayInterface.

Definition at line 43 of file replaymapdisplay.h.

References MapDisplayInterface::stopAction().

void ReplayMapDisplay::updateDashboard ( void  )
inlinevirtual

Implements MapDisplayInterface.

Definition at line 51 of file replaymapdisplay.h.

References MapDisplayInterface::updateDashboard().


The documentation for this class was generated from the following files: