Colobot
mainmap.h
1 /*
2  * This file is part of the Colobot: Gold Edition source code
3  * Copyright (C) 2001-2016, 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 "graphics/core/color.h"
23 
24 #include "math/point.h"
25 
26 class CObject;
27 class CEventQueue;
28 
29 namespace Gfx
30 {
31 class CEngine;
32 } // namespace Gfx
33 
34 namespace Ui
35 {
36 
37 class CInterface;
38 
39 class CMainMap
40 {
41 public:
42  CMainMap();
43  ~CMainMap();
44 
45  void UpdateMap();
46  void CreateMap();
47  void SetFixImage(const char *filename);
48  void FloorColorMap(Gfx::Color floor, Gfx::Color water);
49  void ShowMap(bool bShow);
50  void DimMap();
51  float GetZoomMap();
52  void ZoomMap(float zoom);
53  void ZoomMap();
54  void MapEnable(bool bEnable);
55  bool GetFixImage();
56  CObject* DetectMap(Math::Point pos, bool &bInMap);
57  void SetHighlight(CObject* pObj);
58  void SetToy(bool bToy);
59  void SetFixParam(float zoom, float ox, float oy, float angle, int mode, bool bDebug);
60 
61 protected:
62  CEventQueue* m_event;
63  Gfx::CEngine* m_engine;
64  CInterface* m_interface;
65 
66  bool m_bFixImage;
67 };
68 
69 } // namespace Ui
Definition: robotmain.h:108
Point struct and related functions.
Global event queue.
Definition: event.h:866
Color structs and related functions.
2D point
Definition: point.h:50
Namespace for (new) graphics code.
Definition: app.h:49
The graphics engine.
Definition: engine.h:585
Definition: mainmap.h:39
RGBA color.
Definition: color.h:39
Definition: interface.h:59
Base class for all 3D in-game objects.
Definition: object.h:63