-
Notifications
You must be signed in to change notification settings - Fork 1
/
CinematicInput.h
52 lines (38 loc) · 1.31 KB
/
CinematicInput.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2010.
-------------------------------------------------------------------------
$Id$
$DateTime$
Description: Controls script variables coming from track view to add some
control/feedback during cutscenes
-------------------------------------------------------------------------
History:
- 28:04:2010 Created by Benito Gangoso Rodriguez
*************************************************************************/
#pragma once
#ifndef _CINEMATIC_INPUT_H_
#define _CINEMATIC_INPUT_H_
class CCinematicInput
{
public:
CCinematicInput();
~CCinematicInput();
void OnBeginCutScene(int cutSceneFlags);
void OnEndCutScene(int cutSceneFlags);
void Update(float frameTime);
ILINE bool IsAnyCutSceneRunning() const
{
return (m_cutsceneRunningCount > 0);
}
private:
void UpdateForceFeedback(IScriptSystem* pScriptSystem, float frameTime);
void UpdateAdditiveCameraInput(IScriptSystem* pScriptSystem, float frameTime);
void ClearCutSceneScriptVariables();
void DisablePlayerForCutscenes();
void ReEnablePlayerAfterCutscenes();
Ang3 m_currentRawInputAngles;
int m_cutsceneRunningCount;
int m_cutscenesNoPlayerRunningCount;
};
#endif