00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #if defined(karteneditor)
00022 #error the mapeditor should not need to use controls.h !
00023 #endif
00024
00025
00026 #ifndef replaymapdisplayH
00027 #define replaymapdisplayH
00028 #include "typen.h"
00029 #include "mapdisplayinterface.h"
00030
00031 class ReplayMapDisplay : public MapDisplayInterface {
00032 MapDisplayInterface* mapDisplay;
00033 int cursorDelay;
00034 void wait ( int minTime = 0 );
00035 public:
00036 ReplayMapDisplay ( MapDisplayInterface* md ) { mapDisplay = md; cursorDelay = 20; };
00037 int displayMovingUnit ( const MapCoordinate3D& start, const MapCoordinate3D& dest, Vehicle* vehicle, int fieldnum, int totalmove, SoundStartCallback startSound );
00038 void displayPosition ( int x, int y );
00039 void displayMap ( Vehicle* additionalVehicle ) { mapDisplay->displayMap( additionalVehicle ); };
00040 void displayMap ( void ) { mapDisplay->displayMap(); };
00041 void resetMovement ( void ) { mapDisplay->resetMovement(); };
00042 void startAction ( void ) { mapDisplay->startAction(); };
00043 void stopAction ( void ) { mapDisplay->stopAction(); };
00044 void cursor_goto( const MapCoordinate& pos ) { mapDisplay->cursor_goto(pos);};
00045 void displayActionCursor ( int x1, int y1, int x2 , int y2 , int secondWait );
00046 void displayActionCursor ( int x1, int y1 ) { displayActionCursor ( x1, y1, -1, -1, 0 ); };
00047 void displayActionCursor ( int x1, int y1, int x2 , int y2 ) { displayActionCursor ( x1, y1, x2, y2, 0 ); };
00048 void removeActionCursor ( void );
00049 int checkMapPosition ( int x, int y );
00050 void setCursorDelay ( int time ) { cursorDelay = time; };
00051 void updateDashboard() { mapDisplay->updateDashboard(); };
00052 void repaintDisplay () { mapDisplay->repaintDisplay(); };
00053 void setTempView( bool view ) { mapDisplay->setTempView( view ); };
00054 void showBattle( tfight& battle ) { mapDisplay->showBattle( battle ); };
00055 void playPositionalSound( const MapCoordinate& pos, Sound* snd );
00056
00057 };
00058
00059 #endif