Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
ui
mainshort.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/engine/engine.h
"
25
26
#include "
math/point.h
"
27
28
#include "
object/object_type.h
"
29
30
#include "ui/controls/interface.h"
31
32
namespace
Ui
33
{
34
35
36
class
CMainShort
37
{
38
public
:
39
CMainShort
();
40
~
CMainShort
();
41
42
void
SetMode(
bool
bBuilding);
43
bool
CreateShortcuts();
44
bool
UpdateShortcuts();
45
void
SelectShortcut(
EventType
event);
46
void
SelectNext();
47
CObject
* DetectShort(
Math::Point
pos);
48
void
SetHighlight(
CObject
* pObj);
49
50
protected
:
51
int
GetShortcutIcon(
ObjectType
type);
52
53
protected
:
54
CEventQueue
* m_event;
55
Gfx::CEngine
* m_engine;
56
CInterface
* m_interface;
57
CRobotMain
* m_main;
58
59
std::vector<CObject*> m_shortcuts;
60
bool
m_bBuilding;
61
};
62
63
}
engine.h
Main graphics engine - CEngine class.
Ui
Definition:
robotmain.h:107
point.h
Point struct and related functions.
CEventQueue
Global event queue.
Definition:
event.h:840
object_type.h
ObjectType enum.
CRobotMain
Definition:
robotmain.h:151
Ui::CMainShort
Definition:
mainshort.h:36
Math::Point
2D point
Definition:
point.h:50
Gfx::CEngine
The graphics engine.
Definition:
engine.h:620
event.h
Event types, structs and event queue.
ObjectType
ObjectType
Type of game object.
Definition:
object_type.h:33
EventType
EventType
Type of event message.
Definition:
event.h:41
Ui::CInterface
Definition:
interface.h:58
CObject
Base class for all 3D in-game objects.
Definition:
object.h:59
Generated by
1.8.9.1