Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
mainshort.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 // mainshort.h
21 
22 #pragma once
23 
24 #include "common/event.h"
25 
26 #include "math/point.h"
27 
28 #include "object/object.h"
29 
30 #include "graphics/engine/engine.h"
31 
32 #include "ui/interface.h"
33 
34 namespace Ui {
35 
36 
38 {
39 public:
40  CMainShort();
41  ~CMainShort();
42 
43  void SetMode(bool bBuilding);
44  void FlushShortcuts();
45  bool CreateShortcuts();
46  bool UpdateShortcuts();
47  void SelectShortcut(EventType event);
48  void SelectNext();
49  CObject* DetectShort(Math::Point pos);
50  void SetHighlight(CObject* pObj);
51 
52 protected:
53 
54 protected:
55  CEventQueue* m_event;
56  Gfx::CEngine* m_engine;
57  CInterface* m_interface;
58  CRobotMain* m_main;
59 
60  CObject* m_shortcuts[20];
61  bool m_bBuilding;
62 };
63 
64 }
65 
Main graphics engine - CEngine class.
Definition: controller.h:32
Point struct and related functions.
Global event queue.
Definition: event.h:751
Definition: robotmain.h:172
Definition: mainshort.h:37
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.
EventType
Type of event message.
Definition: event.h:38
Definition: interface.h:58
Definition: object.h:357