Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
mainmap.h
1 /*
2  * This file is part of the Colobot: Gold Edition source code
3  * Copyright (C) 2001-2014, Daniel Roux, EPSITEC SA & TerranovaTeam
4  * http://epsiteс.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 // mainmap.h
21 
22 #pragma once
23 
24 #include "common/event.h"
25 
26 #include "graphics/core/color.h"
27 
28 #include "math/point.h"
29 
30 #include "object/object.h"
31 
32 #include "ui/interface.h"
33 
34 
35 namespace Ui {
36 
37 class CMainMap
38 {
39 public:
40  CMainMap();
41  ~CMainMap();
42 
43  void UpdateMap();
44  void CreateMap();
45  void SetFixImage(const char *filename);
46  void FloorColorMap(Gfx::Color floor, Gfx::Color water);
47  void ShowMap(bool bShow);
48  void DimMap();
49  float GetZoomMap();
50  void ZoomMap(float zoom);
51  void ZoomMap();
52  void MapEnable(bool bEnable);
53  bool GetShowMap();
54  bool GetFixImage();
55  CObject* DetectMap(Math::Point pos, bool &bInMap);
56  void SetHighlight(CObject* pObj);
57  void SetToy(bool bToy);
58  void SetFixParam(float zoom, float ox, float oy, float angle, int mode, bool bDebug);
59 
60 protected:
61  void CenterMap();
62 
63 protected:
64  CEventQueue* m_event;
65  Gfx::CEngine* m_engine;
66  CInterface* m_interface;
67 
68  int m_mapMode;
69  bool m_bFixImage;
70 };
71 
72 }
73 
Definition: controller.h:32
Point struct and related functions.
Global event queue.
Definition: event.h:751
Color structs and related functions.
2D point
Definition: point.h:49
CObject - base class for all game objects.
The graphics engine.
Definition: engine.h:684
Event types, structs and event queue.
Definition: mainmap.h:37
RGBA color.
Definition: color.h:38
Definition: interface.h:58
Definition: object.h:357