Colobot
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
object
mainmovie.h
Go to the documentation of this file.
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
25
#pragma once
26
27
28
#include "
common/event.h
"
29
30
#include "
math/vector.h
"
31
32
33
class
CRobotMain
;
34
class
CSoundInterface
;
35
36
namespace
Gfx
{
37
class
CCamera;
38
class
CEngine;
39
}
40
41
enum
MainMovieType
42
{
43
MM_NONE,
44
MM_SATCOMopen,
45
MM_SATCOMclose,
46
};
47
48
49
50
class
CMainMovie
51
{
52
public
:
53
CMainMovie
();
54
~
CMainMovie
();
55
56
void
Flush();
57
bool
Start(MainMovieType type,
float
time);
58
bool
Stop();
59
bool
IsExist();
60
bool
EventProcess(
const
Event
&event);
61
MainMovieType GetType();
62
MainMovieType GetStopType();
63
64
protected
:
65
Gfx::CEngine
* m_engine;
66
CRobotMain
* m_main;
67
Gfx::CCamera
* m_camera;
68
CSoundInterface
* m_sound;
69
70
MainMovieType m_type;
71
MainMovieType m_stopType;
72
float
m_speed;
73
float
m_progress;
74
Math::Vector
m_initialEye;
75
Math::Vector
m_initialLookat;
76
Math::Vector
m_finalEye[2];
77
Math::Vector
m_finalLookat[2];
78
};
79
CMainMovie
Definition:
mainmovie.h:50
CRobotMain
Definition:
robotmain.h:172
Gfx::CCamera
Camera moving in 3D scene.
Definition:
camera.h:133
Gfx
Namespace for (new) graphics code.
Definition:
app.h:49
vector.h
Vector struct and related functions.
Gfx::CEngine
The graphics engine.
Definition:
engine.h:684
event.h
Event types, structs and event queue.
Math::Vector
3D (3x1) vector
Definition:
vector.h:52
Event
Event sent by system, interface or game.
Definition:
event.h:678
CSoundInterface
Sound plugin interface.
Definition:
sound.h:151
Generated by
1.8.9.1