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 "
math/point.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
CCamera;
36
class
CEngine;
37
class
CParticle;
38
class
CLightManager;
39
}
// namespace Gfx
40
41
namespace
Ui
42
{
43
44
class
CInterface;
45
46
class
CDisplayInfo
47
{
48
public
:
49
CDisplayInfo
();
50
~
CDisplayInfo
();
51
52
bool
EventProcess(
const
Event
&event);
53
54
void
StartDisplayInfo(std::string filename,
int
index,
bool
bSoluce);
55
void
StopDisplayInfo();
56
57
void
SetPosition(
int
pos);
58
int
GetPosition();
59
60
protected
:
61
bool
EventFrame(
const
Event
&event);
62
void
HyperUpdate();
63
void
AdjustDisplayInfo(
Math::Point
wpos,
Math::Point
wdim);
64
void
ChangeIndexButton(
int
index);
65
void
UpdateIndexButton();
66
void
UpdateCopyButton();
67
void
ViewDisplayInfo();
68
CObject
* SearchToto();
69
70
protected
:
71
Gfx::CEngine
* m_engine;
72
CEventQueue
* m_event;
73
CRobotMain
* m_main;
74
Gfx::CCamera
* m_camera;
75
CInterface
* m_interface;
76
Gfx::CParticle
* m_particle;
77
Gfx::CLightManager
* m_light;
78
CPauseManager
* m_pause;
79
80
bool
m_bInfoMaximized;
81
bool
m_bInfoMinimized;
82
83
int
m_index;
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
ActivePause
Definition:
pausemanager.cpp:31
Ui
Definition:
robotmain.h:108
point.h
Point struct and related functions.
CEventQueue
Global event queue.
Definition:
event.h:866
Gfx::CLightManager
Manager for dynamic lights in 3D scene.
Definition:
lightman.h:146
CRobotMain
Definition:
robotmain.h:159
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:128
Gfx
Namespace for (new) graphics code.
Definition:
app.h:49
Gfx::CEngine
The graphics engine.
Definition:
engine.h:585
Ui::CDisplayInfo
Definition:
displayinfo.h:46
Event
Event sent by system, interface or game.
Definition:
event.h:735
CPauseManager
Definition:
pausemanager.h:71
Ui::CInterface
Definition:
interface.h:59
CObject
Base class for all 3D in-game objects.
Definition:
object.h:63
Generated by
1.8.11