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