~flosoft/s25rttr/trunk

« back to all changes in this revision

Viewing changes to src/ctrlIngameMinimap.h

  • Committer: FloSoft
  • Date: 2014-04-25 15:35:50 UTC
  • Revision ID: flosoft@siedler25.org-20140425153550-9muu4vodhlqu58m0
committing subversion revision 9357 by FloSoft
astyle

modified:
s25client/trunk/
s25client/trunk/contrib/lua/lin32/include/
s25client/trunk/contrib/lua/lin64/include/
s25client/trunk/contrib/lua/mac/include/
s25client/trunk/contrib/lua/win32/include/
s25client/trunk/contrib/lua/win64/include/
s25client/trunk/driver/audio/SDL/src/
s25client/trunk/driver/src/
s25client/trunk/driver/video/GLFW/src/
s25client/trunk/driver/video/SDL/src/
s25client/trunk/driver/video/WinAPI/src/
s25client/trunk/src/
s25client/trunk/win32/
s25client/trunk/win32/prebuild-mutex/src/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: ctrlIngameMinimap.h 7521 2011-09-08 20:45:55Z FloSoft $
 
1
// $Id: ctrlIngameMinimap.h 9357 2014-04-25 15:35:25Z FloSoft $
2
2
//
3
3
// Copyright (c) 2005 - 2011 Settlers Freaks (sf-team at siedler25.org)
4
4
//
27
27
/// Minimap-Control f�r Ingame
28
28
class ctrlIngameMinimap : public ctrlMinimap
29
29
{
30
 
        /// Zeiger auf Minimap (die im Spiel dauerhaft!! gespeichert werden muss)
31
 
        IngameMinimap * minimap;
32
 
        /// Referenz auf GameWorldViewer, f�r das Gescrolle
33
 
        GameWorldViewer& gwv;
34
 
 
35
 
public:
36
 
 
37
 
        ctrlIngameMinimap( Window *parent, 
38
 
                                 const unsigned int id, 
39
 
                                 const unsigned short x, 
40
 
                                 const unsigned short y, 
41
 
                                 const unsigned short width, 
42
 
                                 const unsigned short height,
43
 
                                 const unsigned short padding_x,
44
 
                                 const unsigned short padding_y,
45
 
                                 IngameMinimap * minimap,
46
 
                                 GameWorldViewer& gwv);
47
 
 
48
 
        /// Zeichnet die MapPreview
49
 
        bool Draw_();
50
 
 
51
 
        bool Msg_LeftDown(const MouseCoords& mc);
52
 
        bool Msg_MouseMove(const MouseCoords& mc);
53
 
 
54
 
        /// Setzt Breite und H�he des Controls
55
 
        void SetDisplaySize(const unsigned short width, const unsigned short height);
56
 
 
57
 
        /// Die einzelnen Dinge umschalten
58
 
        void ToggleTerritory();
59
 
        void ToggleHouses();
60
 
        void ToggleRoads();
 
30
        /// Zeiger auf Minimap (die im Spiel dauerhaft!! gespeichert werden muss)
 
31
        IngameMinimap* minimap;
 
32
        /// Referenz auf GameWorldViewer, f�r das Gescrolle
 
33
        GameWorldViewer& gwv;
 
34
 
 
35
    public:
 
36
 
 
37
        ctrlIngameMinimap( Window* parent,
 
38
                           const unsigned int id,
 
39
                           const unsigned short x,
 
40
                           const unsigned short y,
 
41
                           const unsigned short width,
 
42
                           const unsigned short height,
 
43
                           const unsigned short padding_x,
 
44
                           const unsigned short padding_y,
 
45
                           IngameMinimap* minimap,
 
46
                           GameWorldViewer& gwv);
 
47
 
 
48
        /// Zeichnet die MapPreview
 
49
        bool Draw_();
 
50
 
 
51
        bool Msg_LeftDown(const MouseCoords& mc);
 
52
        bool Msg_MouseMove(const MouseCoords& mc);
 
53
 
 
54
        /// Setzt Breite und H�he des Controls
 
55
        void SetDisplaySize(const unsigned short width, const unsigned short height);
 
56
 
 
57
        /// Die einzelnen Dinge umschalten
 
58
        void ToggleTerritory();
 
59
        void ToggleHouses();
 
60
        void ToggleRoads();
61
61
};
62
62
 
63
63