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 53 54 55
|
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#ifndef __MISSIONCMDBRIEF_H__
#define __MISSIONCMDBRIEF_H__
#define CMD_BRIEF_STAGES_MAX 10
#include "globalincs/globals.h"
#include "globalincs/pstypes.h"
#include "graphics/2d.h"
#include "graphics/generic.h"
struct anim;
struct anim_instance;
struct cmd_brief_stage {
SCP_string text; // text to display
char ani_filename[MAX_FILENAME_LEN]; // associated ani file to play
char wave_filename[MAX_FILENAME_LEN]; // associated wav file to play
int wave; // instance number of above
};
struct cmd_brief {
int num_stages;
cmd_brief_stage stage[CMD_BRIEF_STAGES_MAX];
char background[GR_NUM_RESOLUTIONS][MAX_FILENAME_LEN];
};
extern cmd_brief Cmd_briefs[MAX_TVT_TEAMS];
extern cmd_brief *Cur_cmd_brief; // pointer to one of the Cmd_briefs elements (the active one)
extern int Cmd_brief_overlay_id;
void cmd_brief_init(int stages);
void cmd_brief_close();
void cmd_brief_do_frame(float frametime);
void cmd_brief_hold();
void cmd_brief_unhold();
void cmd_brief_pause();
void cmd_brief_unpause();
int mission_has_cmd_brief();
#endif // __MISSIONCMDBRIEF_H__
|