replaymapdisplay.h

Go to the documentation of this file.
00001 /*
00002     This file is part of Advanced Strategic Command; http://www.asc-hq.de
00003     Copyright (C) 1994-2010  Martin Bickel  and  Marc Schellenberger
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; see the file COPYING. If not, write to the 
00017     Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
00018     Boston, MA  02111-1307  USA
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, int duration );
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            int getUnitMovementDuration() const;
00057     };
00058 
00059 #endif

Generated on Mon May 21 01:26:36 2012 for Advanced Strategic Command by  doxygen 1.5.1