fallout2-ce/src/game_movie.h

56 lines
1.3 KiB
C
Raw Normal View History

2022-05-19 01:51:26 -07:00
#ifndef GAME_MOVIE_H
#define GAME_MOVIE_H
#include "db.h"
2022-05-28 02:34:49 -07:00
#include "platform_compat.h"
2022-05-19 01:51:26 -07:00
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 const char* gMoviePaletteFilePaths[MOVIE_COUNT];
2022-05-19 01:51:26 -07:00
extern bool gGameMovieIsPlaying;
extern bool gGameMovieFaded;
2022-05-28 02:34:49 -07:00
extern char gGameMovieSubtitlesFilePath[COMPAT_MAX_PATH];
2022-05-19 01:51:26 -07:00
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 */