mis_c.c File Reference

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

Go to the source code of this file.

Data Structures

struct  Infin
struct  NTable
struct  OF

Defines

#define ANIM_PARTS   297
#define CLIF_TABLE   240
#define FRM_Delay   22
#define NORM_TABLE   397
#define SCND_TABLE   486

Functions

void Clock (char plr, char clck, char mode, char tm)
int CloseAnim (FILE *fin)
void DoPack (char plr, FILE *ffin, char mode, char *cde, char *fName)
char FailureMode (char plr, int prelim, char *text)
void GuyDisp (int xa, int ya, struct Astros *Guy)
void InRFBox (int a, int b, int c, int d, int col)
 LOG_DEFAULT_CATEGORY (mission)
FILE * OpenAnim (char *fname)
void PlaySequence (char plr, int step, char *Seq, char mode)
 
Parameters:
mode Female or other (2 = female)

int StepAnim (int x, int y, FILE *fin)
void Tick (char plr)

Variables

struct AnimType AHead
char AI [2]
long aLoc
struct BlockHead BHead
char BIG
 1 for fullscreen mission playback, 0 otherwise
int cFrame
GXHEADER dply
char EVA [2]
char fEarly
 kind of a boolean indicating early missions
char LM [2]
char loc [4]
struct MisAst MA [2][4]
char MANNED [2]
struct MisEval Mev [60]
struct InfinMob
struct OFMob2
char pal2 [768]
char SHTS [4]
char STEP
char STEPnum
int tFrames


Define Documentation

#define ANIM_PARTS   297

Definition at line 41 of file mis_c.c.

#define CLIF_TABLE   240

Definition at line 40 of file mis_c.c.

Referenced by DoPack(), and PlaySequence().

#define FRM_Delay   22

Definition at line 37 of file mis_c.c.

Referenced by PlaySequence().

#define NORM_TABLE   397

Definition at line 39 of file mis_c.c.

Referenced by DoPack(), and PlaySequence().

#define SCND_TABLE   486

Definition at line 42 of file mis_c.c.

Referenced by DoPack(), and PlaySequence().


Function Documentation

void Clock ( char  plr,
char  clck,
char  mode,
char  tm 
)

Definition at line 576 of file mis_c.c.

References av_need_update_xy(), and grPutPixel().

Referenced by Tick().

int CloseAnim ( FILE *  fin  ) 

Definition at line 994 of file mis_c.c.

Referenced by FailureMode().

void DoPack ( char  plr,
FILE *  ffin,
char  mode,
char *  cde,
char *  fName 
)

Definition at line 610 of file mis_c.c.

Referenced by PlaySequence().

char FailureMode ( char  plr,
int  prelim,
char *  text 
)

Definition at line 772 of file mis_c.c.

Referenced by FailEval().

void GuyDisp ( int  xa,
int  ya,
struct Astros Guy 
)

Definition at line 757 of file mis_c.c.

Referenced by FailureMode().

void InRFBox ( int  a,
int  b,
int  c,
int  d,
int  col 
)

Definition at line 751 of file mis_c.c.

Referenced by FailureMode().

LOG_DEFAULT_CATEGORY ( mission   ) 

FILE* OpenAnim ( char *  fname  ) 

Definition at line 959 of file mis_c.c.

Referenced by FailureMode().

void PlaySequence ( char  plr,
int  step,
char *  Seq,
char  mode 
)

Parameters:
mode Female or other (2 = female)

Parameters:
Seq Sequence-Code for the movies (?)

Todo:
assumption about seq_filename len

Todo:
do not ignore width/height

Todo:
track decoding time and adjust delays

Todo:
idle_loop is too inaccurate for this

Definition at line 136 of file mis_c.c.

Referenced by MisCheck().

int StepAnim ( int  x,
int  y,
FILE *  fin 
)

Definition at line 1003 of file mis_c.c.

Referenced by FailureMode().

void Tick ( char  plr  ) 

Definition at line 534 of file mis_c.c.

References Clock(), and get_time().

Referenced by MisCheck(), and PlaySequence().


Variable Documentation

struct AnimType AHead

Definition at line 66 of file mis_c.c.

Referenced by OpenAnim(), and StepAnim().

char AI[2]

Definition at line 106 of file main.c.

long aLoc

Definition at line 64 of file mis_c.c.

Referenced by CloseAnim(), OpenAnim(), and StepAnim().

struct BlockHead BHead

Definition at line 67 of file mis_c.c.

Referenced by StepAnim().

char BIG

1 for fullscreen mission playback, 0 otherwise

Definition at line 61 of file main.c.

int cFrame

Definition at line 62 of file mis_c.c.

Referenced by CloseAnim(), OpenAnim(), and StepAnim().

GXHEADER dply

Definition at line 65 of file mis_c.c.

char EVA[2]

Definition at line 41 of file mc.c.

char fEarly

kind of a boolean indicating early missions

Definition at line 42 of file mc.c.

char LM[2]

Definition at line 41 of file mc.c.

char loc[4]

Definition at line 69 of file mis_c.c.

Referenced by Check_Dock(), Check_EVA(), Check_Lab(), Check_Photo(), DoPack(), FailEval(), FailureMode(), Future(), MainLoop(), MisCheck(), MissionParse(), MissionPast(), MissionSteps(), News(), PortRestore(), SatDraw(), Set_Dock(), Set_LM(), and Was_Goal().

struct MisAst MA[2][4]

Definition at line 31 of file mc.c.

char MANNED[2]

Definition at line 41 of file mc.c.

struct MisEval Mev[60]

Definition at line 32 of file mc.c.

struct Infin* Mob

Definition at line 60 of file mis_c.c.

struct OF* Mob2

Definition at line 61 of file mis_c.c.

char pal2[768]

Definition at line 41 of file mc.c.

char SHTS[4]

Definition at line 63 of file mis_c.c.

Referenced by DoPack(), and PlaySequence().

char STEP

Definition at line 41 of file mc.c.

char STEPnum

Definition at line 69 of file mis_c.c.

int tFrames

Definition at line 62 of file mis_c.c.

Referenced by CloseAnim(), OpenAnim(), and StepAnim().


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