summaryrefslogblamecommitdiffstats
path: root/src/core/CutsceneMgr.h
blob: 69ce58a6f2c4d7e4e886b8391fef93c57c5718da (plain) (tree)
1
2
3
4
5
6
7
8
9
            
                           
 
                 

                           
 

                  
                                
                                           
                                                                           
        








                                                             
       
                                            
                                             
 
                                                          
                                                                                
                                                                                             
                                                                                             













                                                                             
  
#pragma once
#include "CutsceneObject.h"

class CDirectory;
class CAnimBlendAssocGroup;
class CCutsceneHead;

class CCutsceneMgr
{
	static bool &ms_running;
	static bool &ms_cutsceneProcessing;
	static CCutsceneObject *(&ms_pCutsceneObjects)[NUMCUTSCENEOBJECTS];
	
	static int32 &ms_numCutsceneObjs;
	static bool &ms_loaded;
	static bool &ms_animLoaded;
	static bool &ms_useLodMultiplier;

	static char(&ms_cutsceneName)[8];
	static CAnimBlendAssocGroup &ms_cutsceneAssociations;
	static CVector &ms_cutsceneOffset;
	static float &ms_cutsceneTimer;
public:
	static CDirectory *&ms_pCutsceneDir;
	static uint32 &ms_cutsceneLoadStatus;

	static bool IsRunning(void) { return ms_running; }
	static bool IsCutsceneProcessing(void) { return ms_cutsceneProcessing; }
	static CCutsceneObject* GetCutsceneObject(int id) { return ms_pCutsceneObjects[id]; }
	static int GetCutsceneTimeInMilleseconds(void) { return 1000.0f * ms_cutsceneTimer; }
	static char *GetCutsceneName(void) { return ms_cutsceneName; }
	static bool HasCutsceneFinished(void);

	static void Initialise(void);
	static void Shutdown(void);
	static void LoadCutsceneData(const char *szCutsceneName);
	static void FinishCutscene(void);
	static void SetHeadAnim(const char *animName, CObject *pObject);
	static void SetupCutsceneToStart(void);
	static void SetCutsceneAnim(const char *animName, CObject *pObject);
	static CCutsceneHead *AddCutsceneHead(CObject *pObject, int modelId);
	static CCutsceneObject *CreateCutsceneObject(int modelId);
	static void DeleteCutsceneData(void);
	static void Update(void);
};