Colobot
mainmap.h
1 /*
2  * This file is part of the Colobot: Gold Edition source code
3  * Copyright (C) 2001-2015, Daniel Roux, EPSITEC SA & TerranovaTeam
4  * http://epsitec.ch; http://colobot.info; http://github.com/colobot
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see http://gnu.org/licenses
18  */
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 "ui/controls/interface.h"
29 
30 
31 namespace Ui
32 {
33 
34 class CMainMap
35 {
36 public:
37  CMainMap();
38  ~CMainMap();
39 
40  void UpdateMap();
41  void CreateMap();
42  void SetFixImage(const char *filename);
43  void FloorColorMap(Gfx::Color floor, Gfx::Color water);
44  void ShowMap(bool bShow);
45  void DimMap();
46  float GetZoomMap();
47  void ZoomMap(float zoom);
48  void ZoomMap();
49  void MapEnable(bool bEnable);
50  bool GetFixImage();
51  CObject* DetectMap(Math::Point pos, bool &bInMap);
52  void SetHighlight(CObject* pObj);
53  void SetToy(bool bToy);
54  void SetFixParam(float zoom, float ox, float oy, float angle, int mode, bool bDebug);
55 
56 protected:
57  void CenterMap();
58 
59 protected:
60  CEventQueue* m_event;
61  Gfx::CEngine* m_engine;
62  CInterface* m_interface;
63 
64  bool m_bFixImage;
65 };
66 
67 }
Definition: robotmain.h:107
Point struct and related functions.
Global event queue.
Definition: event.h:840
Color structs and related functions.
2D point
Definition: point.h:50
The graphics engine.
Definition: engine.h:620
Event types, structs and event queue.
Definition: mainmap.h:34
RGBA color.
Definition: color.h:39
Definition: interface.h:58
Base class for all 3D in-game objects.
Definition: object.h:59