Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
ui
screen
screen.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
CApplication
;
28
class
CEventQueue
;
29
class
CSoundInterface
;
30
struct
Event
;
31
32
namespace
Gfx
33
{
34
class
CEngine;
35
}
36
37
namespace
Ui
38
{
39
40
class
CInterface;
41
42
class
CScreen
43
{
44
public
:
45
CScreen
();
46
virtual
~
CScreen
();
47
48
virtual
void
CreateInterface() = 0;
49
virtual
bool
EventProcess(
const
Event
&event) = 0;
50
51
protected
:
52
void
CreateVersionDisplay();
53
void
SetBackground(
const
std::string& filename,
bool
scaled =
false
);
54
55
protected
:
56
CRobotMain
* m_main;
57
CInterface
* m_interface;
58
CApplication
* m_app;
59
CEventQueue
* m_eventQueue;
60
Gfx::CEngine
* m_engine;
61
CSoundInterface
* m_sound;
62
63
const
Math::Point
dim =
Math::Point
(32.0f/640.0f, 32.0f/480.0f);
64
const
float
ox = 3.0f/640.0f, oy = 3.0f/480.0f;
65
const
float
sx = (32.0f+2.0f)/640.0f, sy = (32.0f+2.0f)/480.0f;
66
};
67
68
}
// namespace Ui
Ui
Definition:
robotmain.h:108
point.h
Point struct and related functions.
CEventQueue
Global event queue.
Definition:
event.h:866
CRobotMain
Definition:
robotmain.h:159
Math::Point
2D point
Definition:
point.h:50
CApplication
Main application.
Definition:
app.h:180
Ui::CScreen
Definition:
screen.h:42
Gfx
Namespace for (new) graphics code.
Definition:
app.h:49
Gfx::CEngine
The graphics engine.
Definition:
engine.h:585
Event
Event sent by system, interface or game.
Definition:
event.h:735
Ui::CInterface
Definition:
interface.h:59
CSoundInterface
Sound plugin interface.
Definition:
sound.h:60
Generated by
1.8.11