Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
mainmap.h
1 // * This file is part of the COLOBOT source code
2 // * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
3 // * Copyright (C) 2012 Polish Portal of Colobot (PPC)
4 // *
5 // * This program is free software: you can redistribute it and/or modify
6 // * it under the terms of the GNU General Public License as published by
7 // * the Free Software Foundation, either version 3 of the License, or
8 // * (at your option) any later version.
9 // *
10 // * This program is distributed in the hope that it will be useful,
11 // * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // * GNU General Public License for more details.
14 // *
15 // * You should have received a copy of the GNU General Public License
16 // * along with this program. If not, see http://www.gnu.org/licenses/.
17 
18 // mainmap.h
19 
20 #pragma once
21 
22 #include "common/event.h"
23 
24 #include "graphics/core/color.h"
25 
26 #include "math/point.h"
27 
28 #include "object/object.h"
29 
30 #include "ui/interface.h"
31 
32 
33 namespace Ui {
34 
35 class CMainMap
36 {
37 public:
38  CMainMap();
39  ~CMainMap();
40 
41  void UpdateMap();
42  void CreateMap();
43  void SetFixImage(const char *filename);
44  void FloorColorMap(Gfx::Color floor, Gfx::Color water);
45  void ShowMap(bool bShow);
46  void DimMap();
47  float GetZoomMap();
48  void ZoomMap(float zoom);
49  void ZoomMap();
50  void MapEnable(bool bEnable);
51  bool GetShowMap();
52  bool GetFixImage();
53  CObject* DetectMap(Math::Point pos, bool &bInMap);
54  void SetHighlight(CObject* pObj);
55  void SetToy(bool bToy);
56  void SetFixParam(float zoom, float ox, float oy, float angle, int mode, bool bDebug);
57 
58 protected:
59  void CenterMap();
60 
61 protected:
62  CEventQueue* m_event;
63  Gfx::CEngine* m_engine;
64  CInterface* m_interface;
65 
66  int m_mapMode;
67  bool m_bFixImage;
68 };
69 
70 }
71 
Point struct and related functions.
Global event queue.
Definition: event.h:764
Color structs and related functions.
2D point
Definition: point.h:46
CObject - base class for all game objects.
The graphics engine.
Definition: engine.h:682
Event types, structs and event queue.
Definition: mainmap.h:35
RGBA color.
Definition: color.h:35
Definition: interface.h:56
Definition: object.h:352