replay.c File Reference

#include "gamedata.h"
#include "Buzz_inc.h"
#include "externs.h"
#include <assert.h>
#include "mmfile.h"
#include "av.h"
#include "logging.h"

Go to the source code of this file.

Functions

void AbzFrame (char plr, int num, int dx, int dy, int width, int height, char *Type, char mode)
void DispBaby (int x, int y, int loc, char neww)
static int find_replay (REPLAY *rep, struct oGROUP *grp, char player, int num, const char *type)
 find and fill REPLAY structure and return 0, or -1 if failed.
 LOG_DEFAULT_CATEGORY (LOG_ROOT_CAT)
void Replay (char plr, int num, int dx, int dy, int width, int height, char *Type)
 
Returns:
nothing if find_replay() fails


Function Documentation

void AbzFrame ( char  plr,
int  num,
int  dx,
int  dy,
int  width,
int  height,
char *  Type,
char  mode 
)

Definition at line 351 of file replay.c.

References find_replay(), FT_VIDEO, INFO2, mm_close(), mm_decode_video(), mm_open_fp(), mm_video_info(), Rep, seq_filename(), sOpen(), video_overlay, and video_rect.

void DispBaby ( int  x,
int  y,
int  loc,
char  neww 
)

Definition at line 306 of file replay.c.

References DV(), fin, GV(), gxPutImage(), gxSET, gxSetDisplayPalette(), pal, sOpen(), and GXHEADER::vptr.

static int find_replay ( REPLAY rep,
struct oGROUP grp,
char  player,
int  num,
const char *  type 
) [static]

find and fill REPLAY structure and return 0, or -1 if failed.

if grp != NULL and oGROUP at offset rep->off[0] is found, then fill grp too

Returns:
-1 on bad sequence

0 in all other cases

Note:
uses SEQ.DAT
Todo:
Uses fread() here - should be fread_REPLAY(&Rep, 1, f);

Definition at line 113 of file replay.c.

References fread_oGROUP(), oGROUP::ID, REPLAY::Off, REPLAY::Qty, sizeof_oGROUP, and sOpen().

Referenced by AbzFrame(), and Replay().

LOG_DEFAULT_CATEGORY ( LOG_ROOT_CAT   ) 

void Replay ( char  plr,
int  num,
int  dx,
int  dy,
int  width,
int  height,
char *  Type 
)

Returns:
nothing if find_replay() fails

Returns:
nothing if it can't open the [f]seq.dat file

Note:
uses SEQ.DAT

uses FSEQ.DAT

Todo:
assumption on file extension

Todo:
do not ignore width/height

Todo:
track decoding time and adjust delays

Todo:
idle_loop is too inaccurate for this

Definition at line 174 of file replay.c.

References oLIST::aIdx, bioskey(), DEBUG2, DEBUG3, find_replay(), Table::fname, Table::foffset, fread_oFGROUP(), fread_oGROUP(), fread_Table(), FT_VIDEO, get_time(), grGetMouseButtons(), oFGROUP::ID, oGROUP::ID, idle_loop_secs(), INFO2, max, mm_close(), mm_decode_video(), mm_open_fp(), mm_video_info(), mode, oGROUP::oLIST, oFGROUP::oLIST, Rep, screen_dirty, seq_filename(), sizeof_oFGROUP, sizeof_oGROUP, sizeof_Table, sOpen(), video_overlay, video_rect, and WaitForMouseUp().


Generated on Fri Sep 28 00:35:29 2007 for raceintospace by  doxygen 1.5.3