File: mapdisplayinterface.h

package info (click to toggle)
asc 2.6.1.0-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 81,740 kB
  • sloc: cpp: 158,704; sh: 11,544; ansic: 6,736; makefile: 604; perl: 138
file content (51 lines) | stat: -rw-r--r-- 2,400 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef mapdisplayinterfaceH
 #define mapdisplayinterfaceH


 #include "loki/Functor.h"

class Sound;
 
#include "typen.h"
#include "vehicle.h"
#include "attack.h"


class MapDisplayInterface {
         public:
           typedef Loki::Functor<void, LOKI_TYPELIST_1(int) > SoundStartCallback; 
           virtual int displayMovingUnit ( const MapCoordinate3D& start, const MapCoordinate3D& dest, Vehicle* vehicle, int fieldnum, int totalmove, SoundStartCallback startSound, int duration ) = 0;
           virtual void displayMap ( void ) = 0;
           virtual void displayMap ( Vehicle* additionalVehicle ) = 0;
           virtual void displayPosition ( int x, int y ) = 0;
           void displayPosition ( const MapCoordinate& pos ) { displayPosition(pos.x,pos.y ); };
           virtual void resetMovement ( void ) = 0;
           virtual void startAction ( void ) = 0;
           virtual void stopAction ( void ) = 0;
           virtual void cursor_goto ( const MapCoordinate& pos ) = 0;
           virtual void displayActionCursor ( int x1, int y1, int x2, int y2 ) = 0;
           virtual void displayActionCursor ( const MapCoordinate& pos1, const MapCoordinate& pos2 ) { displayActionCursor(pos1.x,pos1.y, pos2.x,pos2.y); };
           virtual void removeActionCursor ( void ) = 0;
           virtual void updateDashboard () = 0;
           virtual void repaintDisplay () = 0;
           virtual void setTempView( bool view ) = 0;
           virtual void showBattle( tfight& battle ) = 0;
           virtual void playPositionalSound( const MapCoordinate& pos, Sound* snd ) = 0;
           virtual int getUnitMovementDuration() const = 0;
           virtual ~MapDisplayInterface () {};
       };

       extern MapDisplayInterface& getDefaultMapDisplay();

       
#endif