Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
ui
displayinfo.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/engine/camera.h
"
23
24
#include <string>
25
26
class
CRobotMain
;
27
class
CObject
;
28
class
CEventQueue
;
29
class
CPauseManager
;
30
struct
ActivePause
;
31
struct
Event
;
32
33
namespace
Gfx
34
{
35
class
CEngine;
36
class
CParticle;
37
class
CLightManager;
38
}
// namespace Gfx
39
40
namespace
Ui
41
{
42
43
class
CInterface;
44
45
class
CDisplayInfo
46
{
47
public
:
48
CDisplayInfo
();
49
~
CDisplayInfo
();
50
51
bool
EventProcess(
const
Event
&event);
52
53
void
StartDisplayInfo(std::string filename,
int
index,
bool
bSoluce);
54
void
StopDisplayInfo();
55
56
void
SetPosition(
int
pos);
57
int
GetPosition();
58
59
protected
:
60
bool
EventFrame(
const
Event
&event);
61
void
HyperUpdate();
62
void
AdjustDisplayInfo(
Math::Point
wpos,
Math::Point
wdim);
63
void
ChangeIndexButton(
int
index);
64
void
UpdateIndexButton();
65
void
UpdateCopyButton();
66
void
ViewDisplayInfo();
67
CObject
* SearchToto();
68
69
protected
:
70
Gfx::CEngine
* m_engine;
71
CEventQueue
* m_event;
72
CRobotMain
* m_main;
73
Gfx::CCamera
* m_camera;
74
CInterface
* m_interface;
75
Gfx::CParticle
* m_particle;
76
Gfx::CLightManager
* m_light;
77
CPauseManager
* m_pause;
78
79
bool
m_bInfoMaximized;
80
bool
m_bInfoMinimized;
81
82
int
m_index;
83
Gfx::CameraType
m_infoCamera;
84
Math::Point
m_infoNormalPos;
85
Math::Point
m_infoNormalDim;
86
Math::Point
m_infoActualPos;
87
Math::Point
m_infoActualDim;
88
Math::Point
m_infoFinalPos;
89
Math::Point
m_infoFinalDim;
90
int
m_lightSuppl;
91
bool
m_bEditLock;
92
ActivePause
* m_satcomPause =
nullptr
;
93
bool
m_bSoluce;
94
CObject
* m_toto;
95
};
96
97
98
}
// namespace Ui
Gfx::CameraType
CameraType
Type of camera.
Definition:
camera.h:44
ActivePause
Definition:
pausemanager.cpp:30
Ui
Definition:
robotmain.h:108
camera.h
Camera handling - CCamera class.
CEventQueue
Global event queue.
Definition:
event.h:830
Gfx::CLightManager
Manager for dynamic lights in 3D scene.
Definition:
lightman.h:146
CRobotMain
Definition:
robotmain.h:152
Gfx::CParticle
Particle engine.
Definition:
particle.h:223
Math::Point
2D point
Definition:
point.h:50
Gfx::CCamera
Camera moving in 3D scene.
Definition:
camera.h:130
Gfx
Namespace for (new) graphics code.
Definition:
app.h:49
Gfx::CEngine
The graphics engine.
Definition:
engine.h:619
Ui::CDisplayInfo
Definition:
displayinfo.h:45
Event
Event sent by system, interface or game.
Definition:
event.h:699
CPauseManager
Definition:
pausemanager.h:70
Ui::CInterface
Definition:
interface.h:59
CObject
Base class for all 3D in-game objects.
Definition:
object.h:63
Generated by
1.8.11