60 lines
1.3 KiB
C
60 lines
1.3 KiB
C
#ifndef GAME_MOVIE_H
|
|
#define GAME_MOVIE_H
|
|
|
|
#include "db.h"
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
|
|
typedef enum GameMovieFlags {
|
|
GAME_MOVIE_FADE_IN = 0x01,
|
|
GAME_MOVIE_FADE_OUT = 0x02,
|
|
GAME_MOVIE_STOP_MUSIC = 0x04,
|
|
GAME_MOVIE_PAUSE_MUSIC = 0x08,
|
|
} GameMovieFlags;
|
|
|
|
typedef enum GameMovie {
|
|
MOVIE_IPLOGO,
|
|
MOVIE_INTRO,
|
|
MOVIE_ELDER,
|
|
MOVIE_VSUIT,
|
|
MOVIE_AFAILED,
|
|
MOVIE_ADESTROY,
|
|
MOVIE_CAR,
|
|
MOVIE_CARTUCCI,
|
|
MOVIE_TIMEOUT,
|
|
MOVIE_TANKER,
|
|
MOVIE_ENCLAVE,
|
|
MOVIE_DERRICK,
|
|
MOVIE_ARTIMER1,
|
|
MOVIE_ARTIMER2,
|
|
MOVIE_ARTIMER3,
|
|
MOVIE_ARTIMER4,
|
|
MOVIE_CREDITS,
|
|
MOVIE_COUNT,
|
|
} GameMovie;
|
|
|
|
extern const float flt_50352A;
|
|
|
|
extern const char* gMovieFileNames[MOVIE_COUNT];
|
|
extern char* gMoviePaletteFilePaths[MOVIE_COUNT];
|
|
extern bool gGameMovieIsPlaying;
|
|
extern bool gGameMovieFaded;
|
|
|
|
extern char gGameMovieSubtitlesFilePath[MAX_PATH];
|
|
extern unsigned char gGameMoviesSeen[MOVIE_COUNT];
|
|
|
|
int gameMoviesInit();
|
|
void gameMoviesReset();
|
|
int gameMoviesLoad(File* stream);
|
|
int gameMoviesSave(File* stream);
|
|
int gameMoviePlay(int movie, int flags);
|
|
void gameMovieFadeOut();
|
|
bool gameMovieIsSeen(int movie);
|
|
bool gameMovieIsPlaying();
|
|
char* gameMovieBuildSubtitlesFilePath(char* movieFilePath);
|
|
|
|
#endif /* GAME_MOVIE_H */
|