Colobot
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-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 
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 {
38 class CCamera;
39 class CEngine;
40 }
41 
42 enum MainMovieType
43 {
44  MM_NONE,
45  MM_SATCOMopen,
46  MM_SATCOMclose,
47 };
48 
49 
50 
52 {
53 public:
54  CMainMovie();
55  ~CMainMovie();
56 
57  void Flush();
58  bool Start(MainMovieType type, float time);
59  bool Stop();
60  bool IsExist();
61  bool EventProcess(const Event &event);
62  MainMovieType GetType();
63  MainMovieType GetStopType();
64 
65 protected:
66  Gfx::CEngine* m_engine;
67  CRobotMain* m_main;
68  Gfx::CCamera* m_camera;
69  CSoundInterface* m_sound;
70 
71  MainMovieType m_type;
72  MainMovieType m_stopType;
73  float m_speed;
74  float m_progress;
75  Math::Vector m_initialEye;
76  Math::Vector m_initialLookat;
77  Math::Vector m_finalEye[2];
78  Math::Vector m_finalLookat[2];
79 };
80 
Definition: mainmovie.h:51
Definition: robotmain.h:151
Camera moving in 3D scene.
Definition: camera.h:134
Namespace for (new) graphics code.
Definition: app.h:49
Vector struct and related functions.
The graphics engine.
Definition: engine.h:620
Event types, structs and event queue.
3D (3x1) vector
Definition: vector.h:53
Event sent by system, interface or game.
Definition: event.h:709
Sound plugin interface.
Definition: sound.h:57