proto.h File Reference

#include "mmfile.h"
#include "data.h"

Go to the source code of this file.

Defines

#define BUFFER_SIZE   20*1024
 Allocated Buffer in Beginning.
#define BYTE   unsigned char
#define CAP1   13
#define CAP2   14
#define CAP3   15
#define CAP4   17
#define CAPMS   16
#define CHEAT   (xMODE&xMODE_CHEAT)
#define DN_ARROW   0x5000
#define DOANIM   (xMODE&xMODE_DOANIM)
#define DOCK   24
#define DUR_A   -1
#define DUR_B   12
#define DUR_C   11
#define DUR_D   10
#define DUR_E   9
#define DUR_F   8
#define EORBIT   18
#define EWALK   26
#define HIST   (xMODE&xMODE_HIST)
#define isMile(a, b)   Data->Mile[a][b]
#define JU_FB   5
#define K_END   0x4F00
#define K_ENTER   0x000D
#define K_ESCAPE   0x001B
#define K_HOME   0x4700
#define K_QUIT   0x000F
#define K_SPACE   0x0020
#define LLAND   22
#define LORBIT   20
#define LPASS   19
#define LR   grLineRel
#define LRESCUE   21
#define LT   grLineTo
#define LT_ARROW   0x4B00
#define LUNFLY   1
#define LWALK   40
#define MA_FB   4
#define MANSPACE   27
#define MAX_X   320
#define MAX_Y   200
#define MAXBUB   30
 Maximum Bubbles.
#define maxx(a, b)   (((a) > (b)) ? (a) : (b))
#define ME_FB   2
#define MILE_EORBIT   2
#define MILE_LFLY   3
#define MILE_LLAND   7
#define MILE_LORBIT   6
#define MILE_LPASS   5
#define MILE_LPL   4
#define MILE_MAN   1
#define MILE_OSAT   0
#define minn(a, b)   (((a) < (b)) ? (a) : (b))
#define MINSAFETY   50
 Minimum Safety.
#define MisStep(a, b, c)   PrintAt((a),(b),S_Name[(c)])
#define MR   grMoveRel
#define MT   grMoveTo
#define NOCOPRO   (xMODE&xMODE_NOCOPRO)
#define NOFAIL   (xMODE&xMODE_NOFAIL)
#define OLAB   23
#define ORBSAT   0
#define other(a)   abs( (a)-1 )
#define pline(a, b, c, d)   {grMoveTo(a,b) ; grLineTo(c,d);}
#define PP   grPutPixel
#define PROBELAND   7
#define PUSSY   (xMODE&xMODE_PUSSY)
#define READYFACTOR   48
 Ready Safetyfactor.
#define RT_ARROW   0x4D00
#define SA_FB   6
#define SC   grSetColor
#define TOM   (xMODE&xMODE_TOM)
#define UP_ARROW   0x4800
#define VBlank()   do{}while(0)
#define VE_FB   3
#define WOMAN   25
#define WORD   unsigned short
#define xMODE_CHEAT   0x0002
#define xMODE_CLOUDS   0x1000
#define xMODE_DOANIM   0x0080
#define xMODE_HIST   0x0001
#define xMODE_NOCOPRO   0x00800
#define xMODE_NOFAIL   0x0020
#define xMODE_PUSSY   0x0400
#define xMODE_SPOT_ANIM   0x2000
#define xMODE_TOM   0x0040

Functions

void AAset (void)
unsigned int ABXframe (char *scratch, char *dest, int frameno, FILE *fhand)
void AbzFrame (char plr, int num, int dx, int dy, int width, int height, char *Type, char mode)
void Admin (char plr)
void AI_Begin (char plr)
void AI_Done (void)
void AIAstroPur (char plr)
 AI Wants to purchase Astronauts.
void AIEvent (char plr)
void AIFuture (char plr, char mis, char pad, char *prog)
void AILaunch (char plr)
void AIMaster (char plr)
void AIPur (char plr)
int AIQUnit (short hwx, short unx, char plr)
void AIVabCheck (char plr, char mis, char prog)
int AllotPrest (char plr, char mis)
int ALSpec (int att)
void AltHistory (char plr)
char AnimSoundCheck (void)
 Check if animation sound playback is in progress.
int AquireDrive (void)
int AsnCrew (char plr, char pad, char part)
int astcomp (const void *no1, const void *no2)
void AstFaces (char plr, int x, int y, char face)
void AstLevel (char plr, char prog, char crew, char ast)
void AstNames (int man, char *name, char att)
void AstroTurn (void)
void AstSel (char plr)
void AstStats (char plr, char man, char num)
 Draws Astronaut attributes.
void Back1rec (char *pos, char *pos2)
void BackIntel (char p, char year)
void BackOne (char plr, char *pos, char *pos2)
void Bad (char plr, char pt)
void BadFileType (void)
void BarSkill (char plr, int lc, int nw, int *ary)
void BButs (char old, char nw)
void BCDraw (int y)
int BChoice (char plr, char qty, char *Name, char *Imx)
void Bd (int x, int y)
 draws the bubble on the screen, starts with upper left coor
char Best (void)
void BigHardMe (char plr, int x, int y, char hw, char unit, char sh, unsigned char coff)
void BinT (int x, int y, char st)
int board_ID (drvr_desc *desc)
char BoostCheck (char plr)
void Box (int x1, int y1, int x2, int y2)
void Bre (char plr)
void Breakgrp (char plr)
void Budget (char player)
void BudPict (char poff)
void BuildVAB (char plr, char mis, char ty, char pa, char pr)
char Burst (char win)
void BuyUnit (char hw2, char un2, char plr)
int BuyVabRkt (char plr, int rk, int *q, char mode)
void Buzz_SoundDestroy (void)
void CalcPresRev (void)
void CalcSaf (char plr, char vs)
int CalcScore (char plr, char lvA, char lvB)
int carrier (void)
int CDAccess (int drive, int track, char mode)
void ChangeStat (char mum, char Cur, char Cnt)
int Check_Dock (int limit)
int Check_Photo (void)
void CheckAdv (char plr)
char CheckCarrier (void)
char CheckCrewOK (char plr, char pad)
 
Returns:
true (1) if need to scrub mission because of crews

void CheckFirst (char)
int CheckIfMissionGo (char plr, char launchIdx)
 utility fn for AI to see if it should scrub the mission
int CheckLimit (char plr, char m)
int CheckMax (char plr, int m)
int CheckProgram (char plr, char prog)
 need to check programs to see if there is adequate astronauts there check any assigned groups yes then return check how many astronauts assigned to current prog
int CheckSafety (char plr, char m)
char CheckSucess (int i, int j)
void CheckVoting (char plr)
int ChkDelVab (char plr, char f)
int ChkVabRkt (char plr, int rk, int *q)
void Clear (void)
void ClearDisplay (void)
void ClearIt (void)
 clears the screen
void ClearRecord (char *pos2)
void ClearRX (int s)
void CLevels (char side, char wh)
void close_port (void)
int CloseAnim (FILE *fin)
void CloseEmUp (unsigned char error, unsigned int value)
void CloseNewsAnim (void)
void ClrFut (char plr, char pad)
void ClrMiss (char plr, char pad)
 pad is +3 for compatability with News so that it will go ahead and scrub the mission automatically
void Credits (void)
void CrewProb (char plr, char prog)
int DamMod (int p, int prog, int dam, int cost)
void DamProb (char plr, char prog, int chk)
void DeAlloc (BYTE Page)
void DebugSetFailure (char *Text)
void Del_RD_BUT (void)
void DestroyPad (char plr, char pad, int cost, char mode)
 Destroy Pad and Reset any Crews affected.
void DFrame (int x1, int y1, int x2, int y2)
char dial (void)
void DialAt (int x, int y, char *s)
char Did_Fail (void)
 Only sets negative for highest failed goal step.
void DispBaby (int x, int y, int loc, char neww)
void DispBig (int x, int y, char *txt, char mode, char te)
void DispChr (char chr)
void DispEight (char now, char loc)
void DispEight2 (int nw, int lc, int cnt)
void DispHelp (char top, char bot, char *txt)
void DispIt (int x1, int y1, int x2, int y2, int s, int t)
void DisplAst (char plr, char *where, char *where2)
void DisplAstData (char plr, char *where, char *where2)
void DispLeft (char plr, int lc, int cnt, int nw, int *ary)
void DispLoc (char plr, char *where)
void DispMB (int x, int y, int val)
void DispNews (char plr, char *src, char *dest)
void DispNum (int xx, int yy, int num)
void DispRck (char plr, char wh)
void DispVA (char plr, char f)
void DispVAB (char plr, char pad)
void DispWts (int two, int one)
void DNArrow (int x1, int y1)
void Dnload (void)
void DockingKludge (void)
void DoCycle (void)
char DoModem (int sel)
void DoPack (char plr, FILE *ffin, char mode, char *cde, char *fName)
void DownAstroData (char plr, char *where, char *where2)
int DownSearchRout (int num, char plr)
void DPrest (char plr, char *pos, char *pos2)
void Draw_GH (char a, char b)
void Draw_HighS (char x, char y, char z)
void Draw_IJ (char w)
void Draw_IJV (char w)
void Draw_LowS (char a, char b, char c, char x, char y, char z)
void Draw_Mis_Stats (char plr, char index, int *where, char mode)
void Draw_NewEnd (char win)
void draw_Pie (int s)
 draw a piechart
void Draw_PQR (void)
void Draw_PST (void)
void DrawAstCheck (char plr)
void DrawAstSel (char plr)
 Draw selection screen for Astronaut recruitment.
void DrawBre (char plr)
void drawBspline (int segments, char color,...)
void DrawBudget (char player, char *pStatus)
void DrawCenter ()
void DrawControl (char plr)
void DrawFiles (char now, char loc, char tFiles)
void DrawFuture (char plr, int mis, char pad)
void DrawHard (char mode, char pad, char mis, char plr)
void DrawHardef (char plr)
void DrawHPurc (char plr)
void DrawIStat (char plr)
void DrawLED (int x, int y, char st)
void DrawLefMoon (char x, char y)
void DrawLimbo (char plr)
void DrawLocks (void)
void DrawLunPas (char x, char y, char z, char w)
void DrawMisHist (char plr, int *where)
void DrawMoon (char x, char y, char z, char w, char j, char k, char l)
void DrawNews (char plr)
void DrawNText (char plr, char got)
void DrawPastExp (char player, char *pStatus)
void DrawPosition (char prog, int pos)
void DrawPrefs (int where, char a1, char a2)
void DrawProgs (char plr, char prog)
void DrawRank (char plr)
void DrawRD (char plr)
void DrawReview (char plr)
void DrawRevText (char plr, int val)
void DrawRush (char plr)
void DrawSpaceport (char plr)
void DrawStatistics (char Win)
void DrawStats (char mum, char chce)
void DrawSTUV (char x, char y, char z, char w)
void DrawTrain (char plr, char lvl)
void DrawViewing (char plr)
void DrawVText (char got)
void DrawZ (void)
void Drec (char *pos, char *pos2, char mde)
void DumpAstro (char plr, int inx)
void DurPri (int x)
 Print the duration of a mission.
void DV (GXHEADER *obj)
int e_handler (int c, long p, char *s)
void EditAst (void)
void EndGame (char win, char pad)
void EndOfTurnSave (char *inData, int dataLen)
void EndPict (int x, int y, char poff, unsigned char coff)
void exit_program (void)
void F_IRCrew (char mode, struct Astros *Guy)
void F_KillCrew (char mode, struct Astros *Victim)
void FadeIn (char wh, char *palx, int steps, int val, char mode)
void FadeMusicIn (int maxvolume, unsigned rate)
void FadeMusicOut (unsigned rate)
void FadeOut (char wh, char *palx, int steps, int val, char mode)
void FadeVoiceIn (int maxvolume, unsigned rate)
void FadeVoiceOut (unsigned rate)
int FailEval (char plr, int type, char *text, int val, int xtra)
char FailureMode (char plr, int prelim, char *text)
void FakeHistory (char plr, char Fyear)
void FakeWin (char win)
void FastOne (char plr, int *where)
void FileAccess (char mode)
void FileText (char *name)
int FillVab (char plr, char f, char mode)
int Find_MaxGoal (void)
int FindNext (int x)
void First (char now, char loc)
void FixPrograms (char plr)
void Flag (int x, int y, char plr)
void FlagSm (char plr, int xm, int ym)
void Flts (char old, char nw)
void FltsTxt (char nw, char col)
void Fly_By (void)
void For1rec (char *pos, char *pos2)
void ForOne (char plr, char *pos, char *pos2)
void FreePadMen (char plr, struct MissionType *XMis)
void FullFast (char plr, int *where)
void FullRewind (char plr, int *where)
void FutAstList (char plr, char men, int M1, int M2, int M3, int M4)
char FutBad (void)
 Draws stuff about choosing a program and having < 2 groups available.
void FutFltsTxt (char nw, char col)
void FutSt (char plr, int pr, int p, int b)
void FutSt2 (int num, int type)
void Future (char plr)
int FutureCheck (char plr, char type)
int GenerateTables (SaveGameType saveType)
int GenPur (char plr, int hwx, int unx)
long get_baud (void)
int get_bits (void)
void get_dial (char *old)
char * get_modem_string (char *s, char *d)
int get_parity (void)
int get_stopbits (void)
char GetBlockName (char *Nam)
int GetBuzzEnv (drvr_desc *desc, char *envs)
void GetFailStat (struct XFails *Now, char *FName, int rnum)
void GetHard (char plr)
int GetMinus (char plr)
void GetMisData (char which)
void GetMisType (char mcode)
 Opens "MISSION.DAT" to find mission data.
void GetMouse (void)
void GetMse (char plr, char fon)
void GetMusic (FILE *fin, long size)
void GetVoice (char val)
void Gl (int x1, int x2, int y, char t)
void GoNews (char plr)
void GradRect (int x1, int y1, int x2, int y2, char plr)
void GradRect2 (int x1, int y1, int x2, int y2, char plr)
void GuyDisp (int xa, int ya, struct Astros *Guy)
void GV (GXHEADER *obj, int w, int h)
void hangup (void)
int HardCrewAssign (char plr, char Pad, int MisType, char NewType)
int HardRequest (char plr, char mode, char mis, char pad)
void HarIntel (char p, char acc)
void HDispIt (int x1, int y1, int x2, int y2, int s, int t)
int Help (char *FName)
void HInfo (char plr, char loc, char w)
void HistFile (char *buf, unsigned char bud)
void HModel (char mode, char tx)
void Hospital (char plr, int sel)
char HPurc (char plr)
int ICost (char plr, char h, char i)
void IInfo (char plr, char loc, char w)
void ImpHard (char plr, char hd, char dx)
int in_ready (void)
void InBox (int x1, int y1, int x2, int y2)
void InitData (void)
void InRFBox (int a, int b, int c, int d, int col)
void Intel (char plr)
void IntelPhase (char plr, char pt)
void Introd (void)
void IOBox (int x1, int y1, int x2, int y2)
int IsChannelMute (int channel)
void IStat (char plr)
void KeepRD (char plr, int m)
void KillMusic (void)
void KillVoice (void)
int Launch (char plr, char mis)
void LefEarth (char a, char b)
void LefGap (char x)
void LefOrb (char a, char b, char c, char d)
void Levels (char plr, char which, char x)
void Limbo (char plr)
void LimboText (char plr, int astro)
void LMAdd (char plr, char prog, char kic, char part)
void LMBld (char plr)
void LMDraw (char plr)
void LMPict (char poff)
void Load_CIA_BUT (void)
void Load_FUT_BUT (void)
voidload_global_timbre (FILE *GTL, unsigned bank, unsigned patch)
void Load_LenFlag (char win)
void Load_RD_BUT (char plr)
mm_fileLoadNewsAnim (int plr, int bw, int type, int Mode, mm_file *fp)
void LoserPict (char poff, unsigned char coff)
void LTArrow (int x1, int y1)
int main (int argc, char *argv[])
void MainLoop (void)
void MakeRecords (void)
void ManSel (int mm)
int MapKey (char plr, int key, int old)
 Map a keypress to a spaceport building selection.
void Master (char plr)
char MaxChk (char hwx, char unx, char plr)
int MaxFail (void)
int MaxFailPad (char which)
int MCGraph (char plr, int lc, int safety, int val, char prob)
int MChoice (char qty, char *Name)
void MesCenter (void)
void Message (int msg, int tr)
void MevDebug (FILE *fout, char i)
void MisAnn (char plr, char pad)
void MisCheck (char plr, char mpad)
void MisDur (char plr, char dur)
void MisIntel (char plr, char acc)
void MisOrd (char num)
void MisPrt (void)
int MisRandom (void)
char MisReq (char plr)
void MisRev (char plr, int pres)
void MisRush (char ms)
void Mission_Data_Buttons (char plr, int *where)
void MissionCodes (char plr, char val, char pad)
void MissionName (int val, int xx, int yy, int len)
void MissionParse (char plr, char *MCode, char *LCode, char pad)
void MissionPast (char plr, char pad, int prest)
void Missions (char plr, int X, int Y, int val, char bub)
 Missions() will draw the future missions among other things.
void MissionSetDown (char plr, char mis)
void MissionSetup (char plr, char mis)
void MissionSteps (char plr, int mcode, int Mgoto, int step, int pad)
void MisSkip (char plr, char ms)
void MMainLoop (void)
void Modem_Config (void)
void modem_control_string (char *s)
void Moon (char plr)
void MoonProgram (char plr, char m)
void MoonVoting (char plr)
void Move2 (char plr, char *pos, char *pos2, char val)
void Move2rec (char *pos, char *pos2, char val)
char MPrefs (char mode)
void Museum (char plr)
void MuteChannel (int channel, int mute)
char NegGoal (char *PVal)
void NewAI (char plr, char frog)
void NewAstList (char plr, char prog, int M1, int M2, int M3, int M4)
void NewEnd (char win, char loc)
void News (char plr)
void NextTurn (char plr)
void NFrame (int x1, int y1, int x2, int y2)
void NGetVoice (char plr, char val)
int NMod (int p, int prog, int type, int per)
 ???
char NoFail (char plr)
void NUpdateVoice (void)
void oclose (int fil)
void OnHand (char qty)
void open_port (int port, int inlen)
FILE * OpenAnim (char *fname)
void OpenEmUp (void)
void OpenNews (char plr, char *buf, int bud)
void OrbIn (char a, char b, char c)
void OrbMid (char a, char b, char c, char d)
void OrbOut (char a, char b, char c)
char OrderMissions (void)
void OutBox (int x1, int y1, int x2, int y2)
void PadBub (int x, int y, int col)
void PadDraw (char plr, char pad)
void PadPict (char poff)
char Panic_Level (char plr, int *m_1, int *m_2)
void PatchMe (char plr, int x, int y, char prog, char poff, unsigned char coff)
void PauseMouse (void)
int PCX_D (void *src, void *dest, unsigned src_size)
void PianoKey (int X)
void PickModule (char plr)
void PInfo (char plr, char loc)
void PlaceEquip (char plr, char prog)
void PlaceRX (int s)
void PlanText (char plr, char plan)
void PlayAudio (char *name, char mode)
void PlayFirst (char plr, char first)
void PlayMusic (char mode)
int PlayNewsAnim (mm_file *)
void PlaySequence (char plr, int step, char *Seq, char mode)
 
Parameters:
mode Female or other (2 = female)

void PlayVoice (void)
void PLevels (char side, char wh)
void Port (char plr)
int port_exist (int port)
void PortOutLine (unsigned int Count, uint16_t *buf, char mode)
void PortPal (char plr)
void PortPlace (FILE *fin, long table)
void PortRestore (unsigned int Count)
char PortSel (char plr, char loc)
 This is the code that controls the jump off point from the Space Ports to the various areas.
void PortText (int x, int y, char *txt, char col)
char PosGoal (char *PVal)
char PosGoal_Check (char *PVal)
void Prefs (int where)
FILE * PreLoadAnim (char plr, char mode)
void PreLoadMusic (char val)
void PresPict (char poff)
int PrestCheck (char plr)
 Returns the amount of prestige added.
char PrestMin (char plr)
int PrestNeg (char plr, int i)
void PrintAt (int x, int y, char *s)
void PrintAtKey (int x, int y, char *s, char val)
void PrintHist (char *buf)
void PrintOne (char *buf, char tken)
void Programs (char plr, char prog)
void ProgramVoting (char plr)
void Progress (char mode)
void purge_in (void)
void Q_Patch (void)
char QUnit (char hwx, char unx, char plr)
void RankMe (char plr)
char RD (char plr)
void RDafford (char plr, int Class, int index)
void RDButTxt (int v1, int val, char plr)
int RDMods (int p, int prog, int type, int val)
void RDPrograms (char plr)
char RDUnit (char rhard, char runit, char r, char plr)
void Read_Config (void)
void Read_CRC (void)
void ReadMsg (void)
void ReButs (char old, char nw)
void Records (char plr)
void RectFill (int x1, int y1, int x2, int y2, char col)
int recv_file (int(*error_handler)(int c, long p, char *s), char *path)
void RecvFirst (void)
void RecvSide (char side)
void RemoveUnhappy (char plr)
 Remove unhappy astro's.
void Replace_Snaut (char plr)
void Replay (char plr, int num, int dx, int dy, int width, int height, char *Type)
 
Returns:
nothing if find_replay() fails

char Request (char plr, char *s, char md)
char RequestX (char *s, char md)
void ResetRush (int mode, int val)
char ResolveEvent (char plr)
void RestoreDir (void)
int RetFile (char plr, int card)
char REvent (char plr)
void Review (char plr)
void RewindOne (char plr, int *where)
void RghtMoon (char x, char y)
long RLEC (char *src, char *dest, unsigned int src_size)
int RLED (void *src, void *dest, unsigned int src_size)
void RLEE (void *dest, void *src, unsigned int src_size)
void RLEF (void *dest, void *src, unsigned int src_size)
void Rout_Debug (int line, char *file)
void RTArrow (int x1, int y1)
void Rush (char plr)
void S_Patch (char x)
void SafetyRecords (char plr, int temp)
void SatBld (char plr)
void SatDraw (char plr)
void SatText (char plr)
void save_game (char *filename)
void SaveFirst (char)
void SaveIntel (char p, char prg, char ind)
void SaveMail (void)
int SaveMods (char p, char prog)
void SaveSide (char side)
void Scheduler (char plr)
char Search (char plr, char m)
void Second (int nw, int lc)
int SecondHard (char plr, char mode, char mis, char pad)
void Seek_pOff (int where)
void Seek_sOff (int where)
void SelectBest (char plr, int pos)
 Select the best crew for the mission.
void SendFirst (void)
void set_baud (long baud)
void set_data_format (int bits, int parity, int stopbit)
void Set_Dock (char plr, char total)
void set_dtr (int n)
char Set_Goal (char plr, char which, char control)
 Sets Goal Values and Sums into Data Structure control should be always called with a value of 0 Successful Steps Only Requires MEV to be packed.
void Set_LM (char plr, char total)
void set_port (long baud, int bits, int parity, int stopbit)
void SetEvents (void)
void SetParameters (void)
void SetRush (int mode, int val)
void SetVoiceVolume (int percent)
void SetW (char ch)
char SF (char plr, char m)
void SFrame (int x1, int y1, int x2, int y2)
void SFWin (int x1, int y1, int x2, int y2, char *txt)
void ShBox (int x1, int y1, int x2, int y2)
void ShowAstroBack (char plr, char *where, char *where2)
void ShowAstroDown (char plr, char *where, char *where2)
void ShowAstroFor (char plr, char *where, char *where2)
void ShowAstrosHist (char plr)
void ShowAstroUp (char plr, char *where, char *where2)
void ShowEvt (char plr, char crd)
void ShowHard (char plr)
void ShowPad (char plr, char pad)
void ShowPrest (char plr)
void ShowRkt (char *Name, int sf, int qty, char mode)
void ShowSpHist (char plr)
void ShowUnit (char hw, char un, char plr)
void ShowVA (char f)
char Skill (char plr, char type)
void SmHardMe (char plr, int x, int y, char prog, char planet, unsigned char coff)
char SN (char plr, char m)
void Special (char p, int ind)
void SpecialEnd (void)
void SpotCrap (char loc, char mode)
void SRPrintAt (int x, int y, char *text, char fgd, char bck)
void Stat (char Win)
int Steal (int p, int prog, int type)
 ???
int StepAnim (int x, int y, FILE *fin)
void StopAudio (char mode)
void StopMusic (void)
void StopVoice (void)
char SupGoal (char *PVal)
void SwapRec (int Rc, int pl1, int pl2)
void TestFMis (int j, int i)
void TogBox (int x, int y, int st)
void Toggle (int wh, int i)
 set the toggles???
void Toggle_Cfg (int opt, int old)
void toGrey (int start)
void TopSecret (char plr, char poff)
void TrackPict (char mode)
void Train (char plr, int level)
void TrainText (char plr, int astro, int cnt)
void TransAstro (char plr, int inx)
int U_AllotPrest (char plr, char mis)
void U_GetVoice (char val)
void U_UpdateVoice (void)
void UPArrow (int x1, int y1)
void UpAstroData (char plr, char *where, char *where2)
void UpdAll (char side)
void Update (void)
void UpdateAudio (void)
void UpdateFirst (void)
void UpdateHardTurn (char plr)
 Update equipment.
void UpdateMusic (void)
void UpdatePortOverlays (void)
void UpdateRecords (char Ty)
void UpDateTable (char plr)
void UpdateVoice (void)
void UpdPrestige ()
void Upload (void)
int UpSearchRout (int num, char plr)
void VAB (char plr)
void VenMarMerc (char x)
void VerifyCrews (char plr)
void VerifyData (void)
void VerifySF (char plr)
void Viewing (char plr)
void VVals (char plr, char tx, Equipment *EQ, char v4, char v5)
void WaitForKeyOrMouseDown (void)
void WaitForMouseUp (void)
char Was_Goal (char total, char which)
 ???
void WaveFlagDel (void)
void WaveFlagSetup (void)
char WhichPart (char plr, int which)
void Write_Config (void)
void WriteMsg (void)
void WriteRecord (int i, int j, int k, int temp)
int xmit_file (int(*error_handler)(int c, long p, char *s), char *files[])
void XSpec (char plr, char mis, char year)


Define Documentation

#define BUFFER_SIZE   20*1024

Allocated Buffer in Beginning.

Definition at line 31 of file proto.h.

Referenced by AltHistory(), DrawViewing(), EditAst(), FakeHistory(), FileAccess(), Launch(), main(), PlaySequence(), Prefs(), RetFile(), and SpecialEnd().

#define BYTE   unsigned char

Definition at line 46 of file proto.h.

#define CAP1   13

Definition at line 115 of file proto.h.

Referenced by Set_Goal().

#define CAP2   14

Definition at line 116 of file proto.h.

Referenced by Set_Goal().

#define CAP3   15

Definition at line 117 of file proto.h.

Referenced by Set_Goal().

#define CAP4   17

Definition at line 119 of file proto.h.

Referenced by Set_Goal().

#define CAPMS   16

Definition at line 118 of file proto.h.

Referenced by Set_Goal().

#define CHEAT   (xMODE&xMODE_CHEAT)

Definition at line 63 of file proto.h.

#define DN_ARROW   0x5000

Definition at line 73 of file proto.h.

Referenced by AstSel(), Bre(), EditAst(), FileAccess(), Future(), Hospital(), Limbo(), MapKey(), Programs(), Train(), and Viewing().

#define DOANIM   (xMODE&xMODE_DOANIM)

Definition at line 66 of file proto.h.

#define DOCK   24

Definition at line 122 of file proto.h.

Referenced by Set_Goal(), and Was_Goal().

#define DUR_A   -1

Definition at line 113 of file proto.h.

Referenced by Set_Goal().

#define DUR_B   12

Definition at line 112 of file proto.h.

Referenced by Set_Goal().

#define DUR_C   11

Definition at line 111 of file proto.h.

Referenced by Set_Goal().

#define DUR_D   10

Definition at line 110 of file proto.h.

Referenced by Set_Goal().

#define DUR_E   9

Definition at line 109 of file proto.h.

Referenced by Set_Goal().

#define DUR_F   8

Definition at line 108 of file proto.h.

Referenced by Set_Goal().

#define EORBIT   18

Definition at line 99 of file proto.h.

Referenced by AllotPrest(), HeroCheck(), PrestMap(), Set_Goal(), and Was_Goal().

#define EWALK   26

Definition at line 124 of file proto.h.

Referenced by HeroCheck(), Set_Goal(), and Was_Goal().

#define HIST   (xMODE&xMODE_HIST)

Definition at line 62 of file proto.h.

Referenced by main().

#define isMile ( a,
 )     Data->Mile[a][b]

Definition at line 43 of file proto.h.

Referenced by PrestMin(), and Set_Goal().

#define JU_FB   5

Definition at line 86 of file proto.h.

Referenced by Set_Goal(), and Was_Goal().

#define K_END   0x4F00

Definition at line 77 of file proto.h.

#define K_ENTER   0x000D

Definition at line 78 of file proto.h.

Referenced by AsnCrew(), AstSel(), Bre(), Budget(), Burst(), ChangeStat(), CrewProb(), Draw_Mis_Stats(), EditAst(), EndGame(), FailureMode(), FakeWin(), Future(), FutureCheck(), GetBlockName(), HardRequest(), Help(), Hospital(), HPurc(), IStat(), Limbo(), LMBld(), MisAnn(), Moon(), NewEnd(), News(), Port(), Prefs(), Programs(), RankMe(), RD(), Records(), Review(), Rush(), SatBld(), SecondHard(), ShowAstrosHist(), ShowHard(), ShowPad(), ShowPrest(), ShowSpHist(), SpecialEnd(), Stat(), Train(), VAB(), and Viewing().

#define K_ESCAPE   0x001B

Definition at line 80 of file proto.h.

Referenced by AsnCrew(), AstSel(), ChangeStat(), CrewProb(), Future(), FutureCheck(), GetBlockName(), HardRequest(), Port(), VAB(), and Viewing().

#define K_HOME   0x4700

Definition at line 76 of file proto.h.

#define K_QUIT   0x000F

Definition at line 79 of file proto.h.

#define K_SPACE   0x0020

Definition at line 81 of file proto.h.

Referenced by EditAst(), Future(), and Prefs().

#define LLAND   22

Definition at line 103 of file proto.h.

Referenced by AllotPrest(), HeroCheck(), PrestMap(), Set_Goal(), and Was_Goal().

#define LORBIT   20

Definition at line 101 of file proto.h.

Referenced by AllotPrest(), PrestMap(), Set_Goal(), and Was_Goal().

#define LPASS   19

Definition at line 100 of file proto.h.

Referenced by AllotPrest(), HeroCheck(), PrestMap(), Set_Goal(), and Was_Goal().

#define LR   grLineRel

Definition at line 26 of file proto.h.

Referenced by DispChr().

#define LRESCUE   21

Definition at line 102 of file proto.h.

#define LT   grLineTo

Definition at line 28 of file proto.h.

#define LT_ARROW   0x4B00

Definition at line 75 of file proto.h.

Referenced by AstSel(), HPurc(), Limbo(), RD(), SatBld(), and Viewing().

#define LUNFLY   1

Definition at line 105 of file proto.h.

Referenced by PrestMap(), Set_Goal(), and Was_Goal().

#define LWALK   40

Definition at line 125 of file proto.h.

Referenced by HeroCheck(), and Was_Goal().

#define MA_FB   4

Definition at line 85 of file proto.h.

Referenced by Set_Goal(), and Was_Goal().

#define MANSPACE   27

Definition at line 98 of file proto.h.

Referenced by AllotPrest(), HeroCheck(), PrestMap(), Set_Goal(), and Was_Goal().

#define MAX_X   320

Definition at line 127 of file proto.h.

Referenced by AI_Begin(), av_need_update(), av_set_fading(), av_setup(), av_sync(), DrawControl(), DrawFuture(), DrawPrefs(), DrawRush(), DrawSpaceport(), FutureCheck(), get_dirty_rect_list(), grClearArea(), grGetPixel(), grPutPixel(), gxClearDisplay(), gxDisplayVirtual(), gxGetImage(), gxPutImage(), gxVirtualDisplay(), Introd(), Load_CIA_BUT(), Load_FUT_BUT(), Master(), NextTurn(), PlaySequence(), Port(), PortOutLine(), PortRestore(), ShowEvt(), and SpotCrap().

#define MAX_Y   200

Definition at line 128 of file proto.h.

Referenced by AI_Begin(), av_need_update(), av_set_fading(), av_setup(), av_sync(), DrawControl(), DrawFuture(), DrawPrefs(), DrawRush(), DrawSpaceport(), FutureCheck(), get_dirty_rect_list(), grClearArea(), grGetPixel(), gxClearDisplay(), gxDisplayVirtual(), gxGetImage(), gxPutImage(), gxVirtualDisplay(), Introd(), Load_CIA_BUT(), Load_FUT_BUT(), Master(), NextTurn(), PlaySequence(), Port(), PortOutLine(), PortRestore(), and SpotCrap().

#define MAXBUB   30

Maximum Bubbles.

Definition at line 34 of file proto.h.

#define maxx ( a,
 )     (((a) > (b)) ? (a) : (b))

Definition at line 37 of file proto.h.

Referenced by AIFuture(), AILaunch(), AllotPrest(), BuyUnit(), BuyVabRkt(), CalcPresRev(), DockingKludge(), DoPack(), DPrest(), FillVab(), MaxFail(), MaxFailPad(), MisCheck(), MissionPast(), MisSkip(), PInfo(), PrestMin(), ShowUnit(), and UpdatePortOverlays().

#define ME_FB   2

Definition at line 83 of file proto.h.

Referenced by Set_Goal(), and Was_Goal().

#define MILE_EORBIT   2

Definition at line 91 of file proto.h.

Referenced by PrestMap(), PrestMin(), and Set_Goal().

#define MILE_LFLY   3

Definition at line 92 of file proto.h.

Referenced by PrestMap(), PrestMin(), and Set_Goal().

#define MILE_LLAND   7

Definition at line 96 of file proto.h.

Referenced by PrestMap(), PrestMin(), and Set_Goal().

#define MILE_LORBIT   6

Definition at line 95 of file proto.h.

Referenced by PrestMap(), PrestMin(), and Set_Goal().

#define MILE_LPASS   5

Definition at line 94 of file proto.h.

Referenced by PrestMap(), PrestMin(), and Set_Goal().

#define MILE_LPL   4

Definition at line 93 of file proto.h.

Referenced by PrestMap(), PrestMin(), and Set_Goal().

#define MILE_MAN   1

Definition at line 90 of file proto.h.

Referenced by PrestMap(), PrestMin(), and Set_Goal().

#define MILE_OSAT   0

Definition at line 89 of file proto.h.

Referenced by PrestMap(), PrestMin(), and Set_Goal().

#define minn ( a,
 )     (((a) < (b)) ? (a) : (b))

Definition at line 38 of file proto.h.

Referenced by AIFuture(), AllotPrest(), CalcPresRev(), gxPutImage(), gxVirtualDisplay(), Launch(), MisCheck(), SpotCrap(), U_AllotPrest(), and Was_Goal().

#define MINSAFETY   50

Minimum Safety.

Definition at line 32 of file proto.h.

#define MisStep ( a,
b,
c   )     PrintAt((a),(b),S_Name[(c)])

Definition at line 39 of file proto.h.

Referenced by FailureMode(), Future(), and MisCheck().

#define MR   grMoveRel

Definition at line 25 of file proto.h.

Referenced by DispChr().

#define MT   grMoveTo

Definition at line 29 of file proto.h.

#define NOCOPRO   (xMODE&xMODE_NOCOPRO)

Definition at line 67 of file proto.h.

Referenced by MainLoop().

#define NOFAIL   (xMODE&xMODE_NOFAIL)

Definition at line 64 of file proto.h.

Referenced by Launch().

#define OLAB   23

Definition at line 121 of file proto.h.

Referenced by Set_Goal(), and Was_Goal().

#define ORBSAT   0

Definition at line 104 of file proto.h.

Referenced by PrestMap(), Set_Goal(), and Was_Goal().

#define other (  )     abs( (a)-1 )

Definition at line 36 of file proto.h.

Referenced by AIMaster(), AllotPrest(), DrawStatistics(), FailEval(), FailureMode(), get_packet(), MainLoop(), MisCheck(), Moon(), NewAI(), PrestCheck(), Stat(), Steal(), U_AllotPrest(), and UpDateTable().

#define pline ( a,
b,
c,
 )     {grMoveTo(a,b) ; grLineTo(c,d);}

Definition at line 35 of file proto.h.

Referenced by DisplAstData(), DPrest(), DrawMisHist(), and DrawReview().

#define PP   grPutPixel

Definition at line 27 of file proto.h.

Referenced by Flag().

#define PROBELAND   7

Definition at line 106 of file proto.h.

Referenced by PrestMap(), Set_Goal(), and Was_Goal().

#define PUSSY   (xMODE&xMODE_PUSSY)

Definition at line 68 of file proto.h.

Referenced by Launch(), and MainLoop().

#define READYFACTOR   48

Ready Safetyfactor.

Definition at line 33 of file proto.h.

#define RT_ARROW   0x4D00

Definition at line 74 of file proto.h.

Referenced by AstSel(), HPurc(), Limbo(), RD(), SatBld(), and Viewing().

#define SA_FB   6

Definition at line 87 of file proto.h.

Referenced by Set_Goal(), and Was_Goal().

#define SC   grSetColor

Definition at line 30 of file proto.h.

#define TOM   (xMODE&xMODE_TOM)

Definition at line 65 of file proto.h.

#define UP_ARROW   0x4800

Definition at line 72 of file proto.h.

Referenced by AstSel(), Bre(), EditAst(), FileAccess(), Future(), Hospital(), Limbo(), MapKey(), Programs(), Train(), and Viewing().

 
#define VBlank (  )     do{}while(0)

Definition at line 41 of file proto.h.

Referenced by DoPack(), and News().

#define VE_FB   3

Definition at line 84 of file proto.h.

Referenced by Set_Goal(), and Was_Goal().

#define WOMAN   25

Definition at line 123 of file proto.h.

Referenced by Set_Goal().

#define WORD   unsigned short

Definition at line 49 of file proto.h.

#define xMODE_CHEAT   0x0002

Definition at line 53 of file proto.h.

#define xMODE_CLOUDS   0x1000

Definition at line 59 of file proto.h.

Referenced by DrawSpaceport(), MainLoop(), Master(), and REvent().

#define xMODE_DOANIM   0x0080

Definition at line 56 of file proto.h.

#define xMODE_HIST   0x0001

Definition at line 52 of file proto.h.

#define xMODE_NOCOPRO   0x00800

Definition at line 57 of file proto.h.

Referenced by main(), and MainLoop().

#define xMODE_NOFAIL   0x0020

Definition at line 54 of file proto.h.

#define xMODE_PUSSY   0x0400

Definition at line 58 of file proto.h.

Referenced by Launch().

#define xMODE_SPOT_ANIM   0x2000

Definition at line 60 of file proto.h.

Referenced by Master(), and REvent().

#define xMODE_TOM   0x0040

Definition at line 55 of file proto.h.


Function Documentation

void AAset ( void   ) 

unsigned int ABXframe ( char *  scratch,
char *  dest,
int  frameno,
FILE *  fhand 
)

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.

Referenced by Draw_Mis_Stats().

void Admin ( char  plr  ) 

Definition at line 53 of file admin.c.

References BuzzData::AstroDelay, AstSel(), BChoice(), Budget(), BuzzData::Cash, Data, DispMB(), DispNum(), DrawSpaceport(), FadeIn(), FadeOut(), FileAccess(), Future(), grSetColor(), HPurc(), IDT, IKEY, key, LOAD, M_DRUMSM, M_GOOD, M_MISSPLAN, music_start, music_stop(), Players::P, pal, PortPal(), Prefs(), PrintAt(), QUIT, RectFill(), Players::Season, WaitForMouseUp(), and Players::Year.

void AI_Begin ( char  plr  ) 

Definition at line 328 of file newmis.c.

References colss, Data, DispBig(), DispNum(), FadeIn(), fin, grMoveTo(), grSetColor(), gxClearDisplay(), gxSetDisplayPalette(), gxVirtualDisplay(), GXHEADER::h, M_SOVTYP, MAX_X, MAX_Y, music_start, pal, PrintAt(), RLED_img(), screen, Players::Season, ShBox(), sOpen(), vhptr, GXHEADER::vptr, GXHEADER::w, and Players::Year.

void AI_Done ( void   ) 

Definition at line 362 of file newmis.c.

References FadeOut(), music_stop(), pal, and screen.

void AIAstroPur ( char  plr  ) 

AI Wants to purchase Astronauts.

Definition at line 226 of file aipur.c.

References ASTRO_POOL_LVL1, ASTRO_POOL_LVL2, ASTRO_POOL_LVL3, ASTRO_POOL_LVL4, ASTRO_POOL_LVL5, BuzzData::AstroLevel, BuzzData::Cash, Data, Players::P, and SelectBest().

void AIEvent ( char  plr  ) 

Definition at line 824 of file news.c.

References ResolveEvent().

void AIFuture ( char  plr,
char  mis,
char  pad,
char *  prog 
)

Definition at line 611 of file aimis.c.

References bc, MissionType::BCrew, BuzzData::Crew, Data, mStr::Days, DumpAstro(), mStr::Dur, MissionType::Duration, BuzzData::DurLevel, BuzzData::Future, GetMisType(), MissionType::Joint, mStr::Jt, mStr::Lun, max, maxx, MissionType::Men, minn, Mis, BuzzData::Mission, MissionType::MissionCode, MissionType::Month, Players::P, MissionType::part, pc, MissionType::PCrew, BuzzData::Pool, Astros::Prime, MissionType::Prog, and TransAstro().

void AILaunch ( char  plr  ) 

Definition at line 804 of file aimis.c.

References AIVabCheck(), BuildVAB(), ClrMiss(), Data, VInfo::dex, BuzzData::DMod, MissionType::Hard, MissionType::Joint, BuzzData::Manned, Equipment::MaxPay, Equipment::MaxRD, maxx, BuzzData::Misc, BuzzData::Mission, Mission_Capsule, Mission_Kicker, Mission_LM, Mission_PrimaryBooster, Mission_Probe_DM, MissionType::MissionCode, MissionType::Month, Equipment::Num, Players::P, MissionType::part, MissionType::Prog, rck, BuzzData::Rocket, MissionType::Rushing, Equipment::Safety, Players::Season, VAS, and whe.

void AIMaster ( char  plr  ) 

Definition at line 48 of file aimast.c.

References Ahead, AIAstroPur(), AIFuture(), AILaunch(), BuzzData::AILunar, BuzzData::AIPrim, AIPur(), BuzzData::AISec, BuzzData::AIStat, BuzzData::AstroDelay, Behind, BuzzData::Buy, BuzzData::Cash, CheckSafety(), CheckVoting(), Cur_Status, Data, Players::Def, Equal, BuzzData::Future, GenPur(), BuzzData::History, Equipment::InitCost, KeepRD(), BuzzData::LaunchFacility, Defl::Lev1, Defl::Lev2, Level_Check, BuzzData::Manned, Equipment::MaxRD, BuzzData::Misc, MissionType::MissionCode, MoonProgram(), PrestType::mPlace, NewAI(), NoFail(), Equipment::Num, other, Players::P, BuzzData::PastMis, PickModule(), PrestType::Place, PreChe, Players::Prestige, PastInfo::Prestige, BuzzData::Probe, ProgramVoting(), random, RDafford(), RDPrograms(), BuzzData::Rocket, Equipment::Safety, Players::Season, BuzzData::Track, and Players::Year.

void AIPur ( char  plr  ) 

Definition at line 635 of file aipur.c.

References BuzzData::AIStat, Data, GenPur(), Equipment::Num, Players::P, BuzzData::Probe, RDafford(), BuzzData::Rocket, and BuzzData::Track.

int AIQUnit ( short  hwx,
short  unx,
char  plr 
)

Definition at line 546 of file aipur.c.

References Data, BuzzData::Manned, BuzzData::Misc, Equipment::Num, Players::P, BuzzData::Probe, and BuzzData::Rocket.

void AIVabCheck ( char  plr,
char  mis,
char  prog 
)

Definition at line 41 of file aimis.c.

References Best(), BuildVAB(), CalcSaf(), mStr::Doc, GetMisType(), mStr::Jt, mStr::LM, mStr::mEq, Mew, Mis, VASqty, and whe.

int AllotPrest ( char  plr,
char  mis 
)

Definition at line 577 of file prest.c.

References MisAst::A, bIDX, Check_Dock(), Check_Lab(), Data, death, DNE, mStr::Doc, mStr::Dur, MissionType::Duration, BuzzData::DurLevel, EORBIT, mStr::EVA, GetMisType(), MissionType::Hard, hero, mStr::Index, LLAND, LORBIT, LPASS, MA, MANNED, MANSPACE, MaxFail(), Equipment::MaxSafety, maxx, Mev, minn, BuzzData::Misc, BuzzData::Mission, Mission_Capsule, MissionType::MissionCode, MissionType::Month, NegGoal(), other, Players::P, MissionType::part, MisEval::PComp, PosGoal(), MisEval::Prest, PrestNeg(), MissionType::Prog, Equipment::Safety, Set_Goal(), Set_LM(), Astros::Sex, STEPnum, STSn, STSp, SupGoal(), tIDX, tMo, tYr, and Players::Year.

int ALSpec ( int  att  ) 

Definition at line 32 of file ast4.c.

void AltHistory ( char  plr  ) 

Definition at line 686 of file endgame.c.

References buffer, BUFFER_SIZE, Data, HistFile(), PrintHist(), and Players::Year.

char AnimSoundCheck ( void   ) 

Check if animation sound playback is in progress.

Currently AV_SOUND_CHANNEL is used only for animation sounds.

Returns:
0 means busy playing audio; 1 means idle

Definition at line 147 of file sdl.c.

int AquireDrive ( void   ) 

Definition at line 35 of file pace.c.

int AsnCrew ( char  plr,
char  pad,
char  part 
)

Definition at line 134 of file crew.c.

References ASTRONAUT_CREW_MAX, MissionType::BCrew, ClrFut(), BuzzData::Crew, Data, delay(), EMPTY_BODY, FutAstList(), FutFltsTxt(), FutSt(), BuzzData::Future, GetMouse(), grSetColor(), Help(), IKEY, InBox(), IOBox(), K_ENTER, K_ESCAPE, key, MissionType::Men, mousebuttons, Astros::Moved, OutBox(), Players::P, MissionType::PCrew, BuzzData::Pool, Astros::Prime, PrintAt(), MissionType::Prog, RectFill(), ShBox(), WaitForMouseUp(), x, and y.

int astcomp ( const void no1,
const void no2 
)

Definition at line 1047 of file museum.c.

References Name.

void AstFaces ( char  plr,
int  x,
int  y,
char  face 
)

Definition at line 234 of file place.c.

References DV(), fin, GV(), gxGetImage(), gxPutImage(), gxSET, gxVirtualVirtual(), GXHEADER::h, local2, pal, sOpen(), Swap32bit, GXHEADER::vptr, and GXHEADER::w.

void AstLevel ( char  plr,
char  prog,
char  crew,
char  ast 
)

Definition at line 43 of file ast4.c.

References Defl::Ast1, Defl::Ast2, Astros::CL, Astros::Compat, Astros::CR, Data, Players::Def, DispNum(), DV(), BuzzData::Gcnt, GetMouse(), grSetColor(), Guy, GV(), gxGetImage(), gxPutImage(), gxSET, InBox(), key, Astros::Mood, mousebuttons, Astros::Name, Name, Players::P, BuzzData::Pool, PrintAt(), RectFill(), ShBox(), and WaitForMouseUp().

void AstNames ( int  man,
char *  name,
char  att 
)

Definition at line 940 of file ast4.c.

References grSetColor(), PrintAt(), and RectFill().

void AstroTurn ( void   ) 

Todo:
: This code must be split... it's cluttered beyond hope

Todo:
: This is probably a bug! Should be Cap == 0 ??

Definition at line 104 of file start.c.

Referenced by UpdAll(), and Update().

void AstSel ( char  plr  ) 

Definition at line 232 of file ast1.c.

References ASTRO_POOL_LVL1, ASTRO_POOL_LVL2, ASTRO_POOL_LVL3, ASTRO_POOL_LVL4, ASTRO_POOL_LVL5, BuzzData::AstroCount, BuzzData::AstroDelay, BuzzData::AstroLevel, buffer, ManPool::Cap, Astros::Cap, BuzzData::Cash, Astros::CL, Astros::Compat, Astros::CR, Astros::Crew, Data, delay(), DispEight(), DispEight2(), DN_ARROW, ManPool::Docking, Astros::Docking, DrawAstCheck(), DrawAstSel(), ManPool::Endurance, Astros::Endurance, ManPool::EVA, Astros::EVA, Astros::Face, FadeIn(), BuzzData::Female, fin, GetMouse(), Astros::Group, Help(), InBox(), K_ENTER, K_ESCAPE, key, ManPool::LM, Astros::LM, LT_ARROW, M_DRUMSM, max, MaxSel, MCol, min, Astros::Mood, mousebuttons, music_start, music_stop(), ManPool::Name, Astros::Name, OutBox(), Players::P, pal, Astros::Pool, BuzzData::Pool, random, RectFill(), RT_ARROW, sel, Astros::Sex, ManPool::Sex, ShBox(), sOpen(), BuzzData::Spend, Astros::Status, Astros::Task, Astros::TrainingLevel, Astros::Una, UP_ARROW, WaitForMouseUp(), x, and y.

void AstStats ( char  plr,
char  man,
char  num 
)

Draws Astronaut attributes.

Definition at line 927 of file ast4.c.

References Astros::Cap, Data, DispNum(), Astros::Docking, Astros::Endurance, Astros::EVA, grSetColor(), Astros::LM, Players::P, BuzzData::Pool, PrintAt(), and y.

void Back1rec ( char *  pos,
char *  pos2 
)

Definition at line 168 of file records.c.

Referenced by Records().

void BackIntel ( char  p,
char  year 
)

Definition at line 222 of file intel.c.

References BuzzData::Intelligence::cdex, BuzzData::Intelligence::code, code, Data, DispChr(), DispNum(), Equipment::Duration, fin, grSetColor(), BuzzData::Intelligence::index, BuzzData::Manned, BuzzData::Misc, Name, BuzzData::Intelligence::num, Players::P, BuzzData::PastIntel, PrintAt(), BuzzData::Probe, BuzzData::Intelligence::prog, BuzzData::Rocket, Players::Season, BuzzData::Intelligence::sf, sOpen(), Special(), TopSecret(), and XSpec().

void BackOne ( char  plr,
char *  pos,
char *  pos2 
)

Definition at line 262 of file museum.c.

References DPrest().

void Bad ( char  plr,
char  pt 
)

Definition at line 489 of file intel.c.

References Data, grSetColor(), InBox(), Players::P, BuzzData::PastIntel, PrintAt(), BuzzData::Intelligence::prog, ShBox(), and Players::Year.

void BadFileType ( void   ) 

Definition at line 993 of file admin.c.

References delay(), DV(), grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, InBox(), PauseMouse(), PrintAt(), RectFill(), and ShBox().

void BarSkill ( char  plr,
int  lc,
int  nw,
int *  ary 
)

Definition at line 109 of file ast0.c.

References Astros::Cap, Data, DispNum(), Astros::Docking, Astros::Endurance, Astros::EVA, grMoveTo(), grSetColor(), Astros::LM, Players::P, BuzzData::Pool, and PrintAt().

void BButs ( char  old,
char  nw 
)

Definition at line 144 of file rdplex.c.

Referenced by HPurc(), and RD().

void BCDraw ( int  y  ) 

Definition at line 29 of file place.c.

References ShBox().

int BChoice ( char  plr,
char  qty,
char *  Name,
char *  Imx 
)

Definition at line 126 of file place.c.

References av_block(), av_need_update_xy(), BCDraw(), delay(), DispBig(), DV(), fin, GetMse(), GV(), gxPutImage(), gxSET, InBox(), key, mousebuttons, sOpen(), GXHEADER::vptr, WaitForMouseUp(), x, and y.

void Bd ( int  x,
int  y 
)

draws the bubble on the screen, starts with upper left coor

Parameters:
x x-coord of the upper left corner of the bubble
y y-coord of the upper left corner of the bubble

Note:
references Bub_Count to determine the number of the character to draw in the bubble

Definition at line 996 of file future.c.

References Bub_Count, DispChr(), grMoveTo(), grSetColor(), RectFill(), StepBub, StepInfo::x_cor, and StepInfo::y_cor.

char Best ( void   ) 

Definition at line 91 of file aimis.c.

References name, VInfo::sf, VAS, and VASqty.

void BigHardMe ( char  plr,
int  x,
int  y,
char  hw,
char  unit,
char  sh,
unsigned char  coff 
)

Definition at line 332 of file place.c.

References DV(), FADE, fin, fread_SimpleHdr(), GV(), gxPutImage(), gxSET, gxSetDisplayPalette(), gxVGA_13, gxVirtualDisplay(), gxVirtualSize(), GXHEADER::h, TM::ID, local2, Name, SimpleHdr::offset, TM::offset, pal, RLED_img(), SimpleHdr::size, sizeof_SimpleHdr, sOpen(), Swap16bit, Swap32bit, table, vhptr, GXHEADER::vptr, and GXHEADER::w.

void BinT ( int  x,
int  y,
char  st 
)

Definition at line 166 of file prefs.c.

References grLineTo(), grMoveTo(), and grSetColor().

int board_ID ( drvr_desc desc  ) 

char BoostCheck ( char  plr  ) 

Definition at line 747 of file aimis.c.

References Data, GenPur(), Equipment::Num, Players::P, RDafford(), BuzzData::Rocket, and Equipment::Safety.

void Box ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 850 of file main.c.

References grDrawRect(), and grOUTLINE.

void Bre ( char  plr  ) 

Definition at line 595 of file intel.c.

References BackIntel(), BuzzData::Intelligence::cur, Data, delay(), DN_ARROW, DrawBre(), FadeIn(), GetMouse(), InBox(), K_ENTER, key, mousebuttons, OutBox(), Players::P, pal, BuzzData::PastIntel, RectFill(), TopSecret(), UP_ARROW, WaitForMouseUp(), x, and y.

void Breakgrp ( char  plr  ) 

Definition at line 860 of file news.c.

References Astros::Assign, Astros::Crew, BuzzData::Crew, Data, BuzzData::Gcnt, Astros::Moved, Astros::oldAssign, Players::P, BuzzData::Pool, Astros::Prime, Astros::Special, Astros::Status, and Astros::Task.

void Budget ( char  player  ) 

Definition at line 305 of file budget.c.

References delay(), DrawBudget(), DrawPastExp(), GetMouse(), IDT, IKEY, InBox(), K_ENTER, key, mousebuttons, OutBox(), WaitForMouseUp(), x, and y.

void BudPict ( char  poff  ) 

Definition at line 220 of file budget.c.

References DV(), GV(), gxPutImage(), gxSET, sOpen(), SwapPatchHdrSmall, GXHEADER::vptr, GXHEADER::w, x, and y.

void BuildVAB ( char  plr,
char  mis,
char  ty,
char  pa,
char  pr 
)

Definition at line 861 of file vab.c.

Referenced by AILaunch(), AIVabCheck(), and VAB().

char Burst ( char  win  ) 

Definition at line 51 of file endgame.c.

References av_need_update_xy(), av_sync(), draw_projectiles, FLY_TIME, FRICTION, GetMouse(), GetMouse_fast(), GRAVITY, gxGetImage(), gxPutImage(), gxSET, IDT, IKEY, K_ENTER, key, MAXINITSPEED, mousebuttons, NUM_LIGHTS, PI, PutPixel, random, vhptr, GXHEADER::vptr, x, and y.

void BuyUnit ( char  hw2,
char  un2,
char  plr 
)

Definition at line 811 of file rdplex.c.

Referenced by HPurc().

int BuyVabRkt ( char  plr,
int  rk,
int *  q,
char  mode 
)

Definition at line 291 of file vab.c.

Referenced by VAB().

void Buzz_SoundDestroy ( void   ) 

void CalcPresRev ( void   ) 

Definition at line 213 of file review.c.

Referenced by MainLoop().

void CalcSaf ( char  plr,
char  vs 
)

Definition at line 147 of file aimis.c.

References cStr::cost, cStr::i, ICost(), Mew, name, cStr::sf, VInfo::sf, and VAS.

int CalcScore ( char  plr,
char  lvA,
char  lvB 
)

Definition at line 1514 of file hardef.c.

References Data, BuzzData::History, Players::P, BuzzData::PastMis, PrestType::Place, Players::Prestige, PastInfo::Prestige, and Players::Year.

int carrier ( void   ) 

int CDAccess ( int  drive,
int  track,
char  mode 
)

void ChangeStat ( char  mum,
char  Cur,
char  Cnt 
)

Definition at line 1055 of file prefs.c.

References ManPool::Cap, delay(), DispNum(), ManPool::Docking, DrawStats(), ManPool::Endurance, ManPool::EVA, getch(), GetMouse(), gr_maybe_sync(), grMoveTo(), grSetColor(), InBox(), IOBox(), K_ENTER, K_ESCAPE, key, ManPool::LM, M_Sv, M_Us, max, mousebuttons, ManPool::Name, Name, OutBox(), PrintAt(), RectFill(), WaitForMouseUp(), x, and y.

int Check_Dock ( int  limit  ) 

Definition at line 75 of file prest.c.

References loc, Mev, and STEPnum.

int Check_Photo ( void   ) 

Definition at line 55 of file prest.c.

References loc, Mev, and STEPnum.

void CheckAdv ( char  plr  ) 

Definition at line 483 of file aipur.c.

References Astros::Assign, BuzzData::AstroCount, BuzzData::Cash, Data, Astros::Focus, Players::P, BuzzData::Pool, random, and Astros::Status.

char CheckCarrier ( void   ) 

char CheckCrewOK ( char  plr,
char  pad 
)

Returns:
true (1) if need to scrub mission because of crews

Definition at line 29 of file news_suq.c.

References AI, MissionType::BCrew, Data, BuzzData::Gcnt, Help(), MissionType::Men, BuzzData::Mission, MissionType::MissionCode, Players::P, MissionType::PCrew, and MissionType::Prog.

void CheckFirst ( char   ) 

int CheckIfMissionGo ( char  plr,
char  launchIdx 
)

utility fn for AI to see if it should scrub the mission

Rules are:

Parameters:
plr Playerdata
launchIdx ID of the launch

Todo:
introduce mission attribute "manned vs. unmanned"

Definition at line 275 of file main.c.

References MissionType::Hard, BuzzData::Manned, Equipment::MaxRD, BuzzData::Misc, Equipment::MisSaf, BuzzData::Mission, Mission_Capsule, Mission_Kicker, Mission_LM, Mission_PrimaryBooster, Mission_Probe_DM, MissionType::MissionCode, Players::P, and Equipment::Safety.

int CheckLimit ( char  plr,
char  m 
)

Definition at line 532 of file aimast.c.

References Data, BuzzData::Manned, Equipment::Num, and Players::P.

int CheckMax ( char  plr,
int  m 
)

Definition at line 587 of file aipur.c.

References Data, BuzzData::Manned, Equipment::Num, Players::P, BuzzData::Probe, and Equipment::Safety.

int CheckProgram ( char  plr,
char  prog 
)

need to check programs to see if there is adequate astronauts there check any assigned groups yes then return check how many astronauts assigned to current prog

Definition at line 253 of file ast4.c.

References Astros::Assign, BuzzData::AstroCount, Astros::Crew, Data, Players::P, and BuzzData::Pool.

int CheckSafety ( char  plr,
char  m 
)

Definition at line 546 of file aimast.c.

References Data, BuzzData::Manned, Players::P, and Equipment::Safety.

char CheckSucess ( int  i,
int  j 
)

Definition at line 376 of file records.c.

Referenced by UpdateRecords().

void CheckVoting ( char  plr  ) 

Definition at line 353 of file aimast.c.

References BuzzData::AILunar, Data, GenPur(), MoonVoting(), Players::P, and RDafford().

int ChkDelVab ( char  plr,
char  f 
)

Definition at line 264 of file vab.c.

Referenced by VAB().

int ChkVabRkt ( char  plr,
int  rk,
int *  q 
)

Definition at line 315 of file vab.c.

Referenced by VAB().

void Clear ( void   ) 

Definition at line 404 of file ast2.c.

References RectFill().

void ClearDisplay ( void   ) 

Definition at line 187 of file future.c.

References grSetColor(), gxVirtualDisplay(), and vhptr.

void ClearIt ( void   ) 

clears the screen

Definition at line 882 of file ast4.c.

References RectFill().

void ClearRecord ( char *  pos2  ) 

Definition at line 136 of file records.c.

Referenced by Records().

void ClearRX ( int  s  ) 

Definition at line 351 of file future.c.

References RectFill().

void CLevels ( char  side,
char  wh 
)

Definition at line 195 of file prefs.c.

References gxVirtualDisplay(), and vhptr.

void close_port ( void   ) 

int CloseAnim ( FILE *  fin  ) 

Definition at line 994 of file mis_c.c.

References aLoc, cFrame, DV(), and tFrames.

void CloseEmUp ( unsigned char  error,
unsigned int  value 
)

Referenced by GetMouse_fast(), and main().

void CloseNewsAnim ( void   ) 

void ClrFut ( char  plr,
char  pad 
)

Definition at line 86 of file crew.c.

References MissionType::BCrew, BuzzData::Crew, Data, MissionType::Duration, BuzzData::Future, MissionType::Joint, MissionType::Men, MissionType::MissionCode, Players::P, MissionType::part, MissionType::PCrew, BuzzData::Pool, Astros::Prime, and MissionType::Prog.

void ClrMiss ( char  plr,
char  pad 
)

pad is +3 for compatability with News so that it will go ahead and scrub the mission automatically

Definition at line 148 of file radar.c.

Referenced by AILaunch(), Launch(), MainLoop(), MisAnn(), REvent(), ShowPad(), and VAB().

void Credits ( void   ) 

Definition at line 116 of file intro.c.

References FadeIn(), FadeOut(), fin, GetMouse(), grSetColor(), IKEY, key, mousebuttons, nCREDIT, pal, PCX_D(), PrintAt(), screen, sOpen(), Swap32bit, vhptr, GXHEADER::vptr, x, and y.

void CrewProb ( char  plr,
char  prog 
)

Definition at line 398 of file ast4.c.

References delay(), DispBig(), EMPTY_BODY, GetMouse(), grSetColor(), InBox(), IOBox(), K_ENTER, K_ESCAPE, key, mousebuttons, PrintAt(), RectFill(), ShBox(), WaitForMouseUp(), x, and y.

int DamMod ( int  p,
int  prog,
int  dam,
int  cost 
)

Definition at line 146 of file news_sup.c.

References Equipment::Base, Equipment::Damage, Data, Equipment::DCost, Name, Equipment::Num, Players::P, BuzzData::Probe, and Equipment::Safety.

void DamProb ( char  plr,
char  prog,
int  chk 
)

Definition at line 300 of file ast4.c.

References BuzzData::Cash, Equipment::Damage, Data, Equipment::DCost, delay(), DispBig(), FadeIn(), FadeOut(), Flag(), GetMouse(), grSetColor(), gxClearDisplay(), InBox(), IOBox(), key, BuzzData::Manned, BuzzData::Misc, mousebuttons, BuzzData::Name, Equipment::Name, Name, Players::P, pal, Players::plr, PrintAt(), BuzzData::Probe, BuzzData::Rocket, ShBox(), WaitForMouseUp(), x, and y.

void DeAlloc ( BYTE  Page  ) 

void DebugSetFailure ( char *  Text  ) 

Referenced by MisCheck().

void Del_RD_BUT ( void   ) 

Definition at line 71 of file rdplex.c.

Referenced by HPurc(), IStat(), RD(), and ShowHard().

void DestroyPad ( char  plr,
char  pad,
int  cost,
char  mode 
)

Destroy Pad and Reset any Crews affected.

Parameters:
cost amount of MB to pay for repairs
pad number of the launch facility destroyed
plr Player data
mode 0 if future mission, 1 is current mission

Definition at line 568 of file main.c.

References FreePadMen(), BuzzData::Future, BuzzData::LaunchFacility, MissionType::Men, BuzzData::Mission, and Players::P.

void DFrame ( int  x1,
int  y1,
int  x2,
int  y2 
)

char dial ( void   ) 

void DialAt ( int  x,
int  y,
char *  s 
)

char Did_Fail ( void   ) 

Only sets negative for highest failed goal step.

checks if entire mission was a failure

Definition at line 481 of file prest.c.

References Mev, and MisEval::trace.

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

Definition at line 306 of file replay.c.

Referenced by Drec().

void DispBig ( int  x,
int  y,
char *  txt,
char  mode,
char  te 
)

Definition at line 704 of file main.c.

References av_need_update_xy(), c, EMPTY_BODY, grPutPixel(), and letter_dat.

void DispChr ( char  chr  ) 

Definition at line 937 of file main.c.

References LR, and MR.

void DispEight ( char  now,
char  loc 
)

Definition at line 34 of file ast1.c.

References ManPool::Cap, DispNum(), ManPool::Endurance, grSetColor(), MCol, Name, PrintAt(), RectFill(), and ManPool::Sex.

void DispEight2 ( int  nw,
int  lc,
int  cnt 
)

Definition at line 56 of file ast1.c.

References ManPool::Cap, DispNum(), ManPool::Endurance, grSetColor(), MaxSel, Name, PrintAt(), RectFill(), sel, and ManPool::Sex.

void DispHelp ( char  top,
char  bot,
char *  txt 
)

Definition at line 428 of file place.c.

References grSetColor(), PrintAt(), and RectFill().

void DispIt ( int  x1,
int  y1,
int  x2,
int  y2,
int  s,
int  t 
)

Definition at line 803 of file intel.c.

References dest, DV(), GV(), gxClearVirtual(), gxGetImage(), gxPutImage(), gxSET, gxVirtualVirtual(), local2, vhptr, and GXHEADER::vptr.

void DisplAst ( char  plr,
char *  where,
char *  where2 
)

Definition at line 832 of file museum.c.

References Astros::Active, AstFaces(), BuzzData::AstroCount, Astros::Cap, Data, Astros::Days, DisplAstData(), Display_ARROW(), DispLoc(), DispNum(), Astros::Docking, Astros::Endurance, EVA, Astros::Face, GradRect(), Astros::Group, grSetColor(), Astros::Hero, LM, Missions(), Name, Nums, Players::P, Astros::Prestige, PrintAt(), and RectFill().

void DisplAstData ( char  plr,
char *  where,
char *  where2 
)

Definition at line 949 of file museum.c.

References mStr::Abbr, Data, DispNum(), PastInfo::Duration, GetMisType(), grSetColor(), gxPutImage(), gxSET, PastInfo::Hard, BuzzData::History, Mis, PastInfo::MissionCode, PastInfo::MissionName, Astros::MissionNum, Missions(), Players::P, PastInfo::Patch, PatchMe(), pline, PastInfo::Prestige, PrintAt(), RectFill(), and vhptr2.

void DispLeft ( char  plr,
int  lc,
int  cnt,
int  nw,
int *  ary 
)

Definition at line 93 of file ast0.c.

References Data, grSetColor(), Astros::Name, Players::P, BuzzData::Pool, PrintAt(), and Astros::Sex.

void DispLoc ( char  plr,
char *  where 
)

Definition at line 916 of file museum.c.

References Astros::Assign, Data, Astros::Focus, grSetColor(), BuzzData::Manned, Equipment::Name, Players::P, PrintAt(), and Astros::Status.

void DispMB ( int  x,
int  y,
int  val 
)

Definition at line 767 of file main.c.

References DispNum(), and PrintAt().

void DispNews ( char  plr,
char *  src,
char *  dest 
)

Definition at line 289 of file news.c.

References Data, evflag, BuzzData::Name, Name, Players::P, Players::Season, and Players::Year.

void DispNum ( int  xx,
int  yy,
int  num 
)

Definition at line 735 of file main.c.

References DispChr(), grMoveTo(), and PrintAt().

void DispRck ( char  plr,
char  wh 
)

Definition at line 550 of file vab.c.

Referenced by VAB().

void DispVA ( char  plr,
char  f 
)

< number of pictures

Definition at line 364 of file vab.c.

Referenced by VAB().

void DispVAB ( char  plr,
char  pad 
)

Definition at line 123 of file vab.c.

Referenced by VAB().

void DispWts ( int  two,
int  one 
)

Definition at line 575 of file vab.c.

Referenced by VAB().

void DNArrow ( int  x1,
int  y1 
)

Definition at line 815 of file main.c.

References grDrawLine(), and grSetColor().

void Dnload ( void   ) 

void DockingKludge ( void   ) 

Definition at line 530 of file main.c.

References maxx, BuzzData::Misc, Equipment::MSF, NUM_PLAYERS, Players::P, BuzzData::Probe, and Equipment::Safety.

void DoCycle ( void   ) 

Definition at line 734 of file port.c.

References ARRAY_LENGTH, av_need_update_xy(), gxSetDisplayPalette(), and pal.

char DoModem ( int  sel  ) 

Definition at line 17 of file pace.c.

References NOTICE1.

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

Definition at line 610 of file mis_c.c.

References CLIF_TABLE, DV(), GV(), gxPutImage(), gxSET, gxSetDisplayPalette(), OF::idx, Infin::List, loc, maxx, Name, NORM_TABLE, pal, random, SCND_TABLE, SHTS, VBlank, GXHEADER::vptr, x, xstrncasecmp(), and y.

void DownAstroData ( char  plr,
char *  where,
char *  where2 
)

Definition at line 1029 of file museum.c.

References DisplAstData().

int DownSearchRout ( int  num,
char  plr 
)

Definition at line 413 of file future.c.

References MisEval::E, F1, F2, F3, F4, F5, JupFlag, MarFlag, SatFlag, and V.

void DPrest ( char  plr,
char *  pos,
char *  pos2 
)

Definition at line 287 of file museum.c.

References PrestType::Add, Data, DispNum(), FlagSm(), PrestType::Goal, grSetColor(), maxx, Mon, PrestType::Month, PrestType::Place, pline, PrestType::Points, Players::Prestige, PrintAt(), RectFill(), tame, and PrestType::Year.

void Draw_GH ( char  a,
char  b 
)

Definition at line 94 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void Draw_HighS ( char  x,
char  y,
char  z 
)

Definition at line 289 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void Draw_IJ ( char  w  ) 

Definition at line 85 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void Draw_IJV ( char  w  ) 

Definition at line 106 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void Draw_LowS ( char  a,
char  b,
char  c,
char  x,
char  y,
char  z 
)

Definition at line 266 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void Draw_Mis_Stats ( char  plr,
char  index,
int *  where,
char  mode 
)

Definition at line 611 of file place.c.

References mStr::Abbr, AbzFrame(), AI, Data, delay(), DispNum(), DrawMisHist(), PastInfo::Duration, PastInfo::Event, FadeIn(), FadeOut(), GetMisType(), GetMouse(), grSetColor(), BuzzData::History, InBox(), IOBox(), K_ENTER, key, MAIL, PastInfo::Man, Mis, PastInfo::MissionCode, PastInfo::MissionName, mousebuttons, music_stop(), Astros::Name, Name, Option, OutBox(), Players::P, pal, BuzzData::Pool, PastInfo::Prestige, PrintAt(), RectFill(), remove_savedat(), Replay(), screen, ShBox(), sOpen(), PastInfo::spResult, video_rect, WaitForMouseUp(), x, and y.

void Draw_NewEnd ( char  win  ) 

Definition at line 365 of file endgame.c.

References FadeIn(), FadeOut(), grSetColor(), gxClearDisplay(), GXHEADER::h, InBox(), IOBox(), Load_LenFlag(), M_VICTORY, music_start, pal, PCX_D(), PrintAt(), screen, ShBox(), sOpen(), vhptr, GXHEADER::vptr, and GXHEADER::w.

void draw_Pie ( int  s  ) 

draw a piechart

The piechart is indicating the number of astronauts on this mission.

Parameters:
s something of an offset...

Definition at line 328 of file future.c.

References gxVirtualDisplay().

void Draw_PQR ( void   ) 

Definition at line 238 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void Draw_PST ( void   ) 

Definition at line 252 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void DrawAstCheck ( char  plr  ) 

Definition at line 89 of file ast1.c.

References ASTRO_POOL_LVL1, ASTRO_POOL_LVL2, ASTRO_POOL_LVL3, ASTRO_POOL_LVL4, ASTRO_POOL_LVL5, BuzzData::AstroDelay, BuzzData::AstroLevel, BuzzData::Cash, Data, DispNum(), FadeIn(), FadeOut(), FlagSm(), grSetColor(), gxClearDisplay(), InBox(), IOBox(), Players::P, pal, PrintAt(), RectFill(), Players::Season, ShBox(), and Players::Year.

void DrawAstSel ( char  plr  ) 

Draw selection screen for Astronaut recruitment.

Definition at line 165 of file ast1.c.

References BuzzData::AstroLevel, Data, DispBig(), DispNum(), DNArrow(), FadeOut(), FlagSm(), grSetColor(), gxClearDisplay(), IDT, IKEY, InBox(), IOBox(), Players::P, pal, PrintAt(), RectFill(), Players::Season, ShBox(), UPArrow(), and Players::Year.

void DrawBre ( char  plr  ) 

Definition at line 568 of file intel.c.

References DispBig(), DNArrow(), FadeOut(), FlagSm(), grSetColor(), gxClearDisplay(), InBox(), IOBox(), pal, PrintAt(), RectFill(), ShBox(), and UPArrow().

void drawBspline ( int  segments,
char  color,
  ... 
)

Definition at line 32 of file futbub.c.

References Bub_Num, grGetPixel(), grLineTo(), grMoveTo(), grPutPixel(), grSetColor(), oldx, oldy, x, and y.

void DrawBudget ( char  player,
char *  pStatus 
)

Definition at line 33 of file budget.c.

References Box(), BuzzData::Budget, BuzzData::BudgetHistory, BuzzData::BudgetHistoryF, BudPict(), BuzzData::Cash, Data, DispBig(), DispChr(), DispMB(), DispNum(), DrawPastExp(), FadeIn(), FadeOut(), Flag(), GradRect(), grLineTo(), grMoveTo(), grPutPixel(), grSetColor(), gxClearDisplay(), InBox(), IOBox(), max, name, Players::P, pal, BuzzData::PrestHist, PrintAt(), RectFill(), Players::Season, ShBox(), and Players::Year.

void DrawCenter (  ) 

void DrawControl ( char  plr  ) 

Definition at line 65 of file mc.c.

References av_need_update_xy(), fin, MAX_X, MAX_Y, pal, PCX_D(), screen, sOpen(), Swap32bit, vhptr, and GXHEADER::vptr.

void DrawFiles ( char  now,
char  loc,
char  tFiles 
)

Definition at line 977 of file admin.c.

References grSetColor(), and PrintAt().

void DrawFuture ( char  plr,
int  mis,
char  pad 
)

Definition at line 63 of file future.c.

References ClearRX(), Data, DEBUG3, DispBig(), DNArrow(), draw_Pie(), F1, F2, F3, F4, F5, FadeIn(), FadeOut(), fin, FlagSm(), FMen, BuzzData::Future, GetMinus(), gr_sync(), grSetColor(), gxClearDisplay(), gxSET, gxVirtualDisplay(), gxVirtualVirtual(), GXHEADER::h, IDT, IKEY, InBox(), IOBox(), JointFlag, JupFlag, BuzzData::LaunchFacility, lck, Load_FUT_BUT(), MarFlag, MAX_X, MAX_Y, MissionType::MissionCode, Missions(), OutBox(), Players::P, pal, MissionType::part, PlaceRX(), PrintAt(), RectFill(), RLED_img(), SatFlag, screen, Players::Season, ShBox(), sOpen(), status, TogBox(), Toggle(), UPArrow(), vhptr, GXHEADER::vptr, GXHEADER::w, and Players::Year.

void DrawHard ( char  mode,
char  pad,
char  mis,
char  plr 
)

Definition at line 368 of file crew.c.

References mStr::Abbr, Data, DispNum(), GetMisType(), grSetColor(), IKEY, InBox(), IOBox(), BuzzData::Manned, Mis, Equipment::Name, Players::P, PrintAt(), RectFill(), and ShBox().

void DrawHardef ( char  plr  ) 

Definition at line 35 of file hardef.c.

References DispBig(), DispNum(), FadeIn(), FadeOut(), FlagSm(), GradRect(), grPutPixel(), grSetColor(), gxClearDisplay(), gxVirtualDisplay(), InBox(), IOBox(), Load_CIA_BUT(), Load_RD_BUT(), pal, PrintAt(), RectFill(), and ShBox().

void DrawHPurc ( char  plr  ) 

Definition at line 589 of file rdplex.c.

Referenced by HPurc().

void DrawIStat ( char  plr  ) 

Definition at line 665 of file intel.c.

References but, DispBig(), DispNum(), FadeIn(), FadeOut(), FlagSm(), GradRect(), grPutPixel(), grSetColor(), gxClearDisplay(), gxVirtualDisplay(), InBox(), IOBox(), Load_CIA_BUT(), Load_RD_BUT(), pal, PrintAt(), and ShBox().

void DrawLED ( int  x,
int  y,
char  st 
)

Definition at line 692 of file main.c.

References grPutPixel().

void DrawLefMoon ( char  x,
char  y 
)

Definition at line 335 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void DrawLimbo ( char  plr  ) 

Definition at line 29 of file ast2.c.

References Data, DispBig(), DNArrow(), FadeOut(), FlagSm(), grMoveTo(), grSetColor(), gxClearDisplay(), IDT, IKEY, InBox(), IOBox(), BuzzData::Manned, Equipment::Name, Equipment::Num, OutBox(), Players::P, pal, PrintAt(), RectFill(), ShBox(), and UPArrow().

void DrawLocks ( void   ) 

Definition at line 230 of file future.c.

References ClearRX(), lck, and PlaceRX().

void DrawLunPas ( char  x,
char  y,
char  z,
char  w 
)

Definition at line 318 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void DrawMisHist ( char  plr,
int *  where 
)

Definition at line 546 of file museum.c.

References Data, DispBig(), grSetColor(), PastInfo::Hard, BuzzData::History, PastInfo::Man, PastInfo::MissionCode, PastInfo::MissionName, PastInfo::MissionYear, PastInfo::Month, Month, ORBox, Players::P, BuzzData::PastMis, PastInfo::Patch, PatchMe(), pline, PrintAt(), RectFill(), and SmHardMe().

void DrawMoon ( char  x,
char  y,
char  z,
char  w,
char  j,
char  k,
char  l 
)

Definition at line 347 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void DrawNews ( char  plr  ) 

Definition at line 446 of file news.c.

References Box(), DNArrow(), grSetColor(), gxClearDisplay(), InBox(), IOBox(), OutBox(), pal, PrintAt(), RectFill(), screen, ShBox(), and UPArrow().

void DrawNText ( char  plr,
char  got 
)

Definition at line 476 of file news.c.

References buffer, DispChr(), grMoveTo(), grSetColor(), and RectFill().

void DrawPastExp ( char  player,
char *  pStatus 
)

Definition at line 254 of file budget.c.

References Box(), Data, DispNum(), grLineTo(), grMoveTo(), grSetColor(), InBox(), max, Players::P, PrintAt(), RectFill(), and BuzzData::Spend.

void DrawPosition ( char  prog,
int  pos 
)

Definition at line 430 of file ast4.c.

References grSetColor(), and PrintAt().

void DrawPrefs ( int  where,
char  a1,
char  a2 
)

Definition at line 36 of file prefs.c.

References Defl::Anim, Defl::Ast1, Defl::Ast2, BinT(), CLevels(), Data, Players::Def, DispBig(), FadeIn(), FadeOut(), fin, grSetColor(), gxClearDisplay(), gxVirtualDisplay(), GXHEADER::h, HModel(), IDT, IKEY, InBox(), Defl::Input, IOBox(), Defl::Lev1, Defl::Lev2, Levels(), M_DRUMSM, M_SOVTYP, MAX_X, MAX_Y, mode, Defl::Music, music_start, BuzzData::Name, OutBox(), Players::P, pal, PLevels(), Defl::Plr1, Defl::Plr2, PrintAt(), RectFill(), RLED_img(), screen, ShBox(), sOpen(), Defl::Sound, vhptr, GXHEADER::vptr, and GXHEADER::w.

void DrawProgs ( char  plr,
char  prog 
)

Definition at line 186 of file ast4.c.

References Data, DispBig(), DispNum(), DNArrow(), Equipment::Duration, FadeOut(), FlagSm(), grSetColor(), gxClearDisplay(), InBox(), IOBox(), BuzzData::Manned, Equipment::Name, Name, Players::P, pal, PlaceEquip(), PrintAt(), RectFill(), Equipment::Safety, Equipment::SaveCard, ShBox(), Equipment::UnitWeight, and UPArrow().

void DrawRank ( char  plr  ) 

Definition at line 1333 of file hardef.c.

References CalcScore(), Data, Players::Def, DispNum(), FlagSm(), grLineTo(), grMoveTo(), grSetColor(), BuzzData::History, IDT, IKEY, InBox(), Defl::Lev1, Defl::Lev2, PastInfo::MissionYear, PastInfo::Month, Option, Players::P, BuzzData::PastMis, PastInfo::Prestige, and PrintAt().

void DrawRD ( char  plr  ) 

Definition at line 79 of file rdplex.c.

Referenced by RD().

void DrawReview ( char  plr  ) 

Definition at line 34 of file review.c.

Referenced by Review().

void DrawRevText ( char  plr,
int  val 
)

Definition at line 250 of file review.c.

Referenced by DrawReview().

void DrawRush ( char  plr  ) 

Definition at line 105 of file rush.c.

Referenced by Rush().

void DrawSpaceport ( char  plr  ) 

Definition at line 419 of file port.c.

References Astros::Active, BuzzData::AstroCount, av_need_update_xy(), BuzzData::Cash, Data, DispMB(), DispNum(), DV(), FCtr, fin, grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, gxVirtualVirtual(), HotKeyList, Img, BuzzData::LaunchFacility, local2, MAX_X, MAX_Y, BuzzData::Mission, MissionType::MissionCode, Players::P, pal, PHead, BuzzData::Pool, BuzzData::Port, PORT_LaunchPad_A, PORT_Research, PORT_VAB, PortPlace(), PrintAt(), S_QTY, screen, Players::Season, ShBox(), sOpen(), Swap16bit, Swap32bit, table, UpdatePortOverlays(), Vab_Spot, GXHEADER::vptr, xMODE, xMODE_CLOUDS, and Players::Year.

void DrawStatistics ( char  Win  ) 

Definition at line 35 of file aipur.c.

References AI, Data, Players::Def, DispBig(), DV(), FadeIn(), FadeOut(), fin, Flag(), grSetColor(), GV(), gxClearDisplay(), gxPutImage(), gxSET, IDT, IKEY, InBox(), IOBox(), BuzzData::Name, other, OutBox(), Players::P, pal, Defl::Plr1, Defl::Plr2, PortPal(), PrintAt(), ShBox(), sOpen(), BuzzData::Track, and GXHEADER::vptr.

void DrawStats ( char  mum,
char  chce 
)

Definition at line 1348 of file prefs.c.

References ManPool::Cap, DispNum(), ManPool::Docking, ManPool::Endurance, EVA, grSetColor(), LM, Name, PrintAt(), and RectFill().

void DrawSTUV ( char  x,
char  y,
char  z,
char  w 
)

Definition at line 388 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void DrawTrain ( char  plr,
char  lvl 
)

Definition at line 32 of file ast3.c.

References DispBig(), DNArrow(), FadeOut(), FlagSm(), grMoveTo(), grSetColor(), gxClearDisplay(), IDT, IKEY, InBox(), IOBox(), pal, PrintAt(), RectFill(), ShBox(), and UPArrow().

void DrawViewing ( char  plr  ) 

Definition at line 368 of file budget.c.

References mStr::Abbr, buffer, BUFFER_SIZE, Data, DispBig(), DispNum(), DNArrow(), FadeOut(), FlagSm(), GetMisType(), grSetColor(), gxClearDisplay(), BuzzData::History, InBox(), IOBox(), LTArrow(), Mis, PastInfo::MissionCode, PastInfo::MissionName, PastInfo::MissionYear, PastInfo::Month, Months, Players::P, pal, BuzzData::PastMis, PastInfo::Prestige, PrintAt(), RectFill(), RTArrow(), ShBox(), and UPArrow().

void DrawVText ( char  got  ) 

Definition at line 425 of file budget.c.

References buffer, DispChr(), grMoveTo(), grSetColor(), and RectFill().

void DrawZ ( void   ) 

Definition at line 378 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void Drec ( char *  pos,
char *  pos2,
char  mde 
)

Definition at line 188 of file records.c.

Referenced by Back1rec(), For1rec(), Move2rec(), and Records().

void DumpAstro ( char  plr,
int  inx 
)

Definition at line 344 of file aipur.c.

References Astros::Assign, BuzzData::AstroCount, BuzzData::Crew, Data, BuzzData::Gcnt, Players::P, BuzzData::Pool, Astros::Prime, and Astros::Una.

void DurPri ( int  x  ) 

Print the duration of a mission.

Parameters:
x duration code
Todo:
Link this at whatever place the duration is actually defined

Definition at line 1018 of file future.c.

References grSetColor(), and PrintAt().

void DV ( GXHEADER obj  ) 

Definition at line 597 of file main.c.

References gxDestroyVirtual().

int e_handler ( int  c,
long  p,
char *  s 
)

void EditAst ( void   ) 

Definition at line 559 of file prefs.c.

References buffer, BUFFER_SIZE, ManPool::Cap, ChangeStat(), delay(), DispBig(), DN_ARROW, DNArrow(), ManPool::Docking, DrawStats(), ManPool::Endurance, EVA, FadeIn(), FadeOut(), fin, First(), FlagSm(), GetMouse(), grSetColor(), gxClearDisplay(), Help(), IDT, IKEY, InBox(), IOBox(), K_ENTER, K_SPACE, key, LM, M_Sv, M_Us, mousebuttons, OutBox(), pal, PrintAt(), RectFill(), Second(), ShBox(), sOpen(), UP_ARROW, UPArrow(), WaitForMouseUp(), x, and y.

void EndGame ( char  win,
char  pad 
)

Definition at line 196 of file endgame.c.

References AltHistory(), BuzzData::AstroCount, Data, delay(), DispBig(), DispNum(), EndPict(), FadeIn(), FadeOut(), FlagSm(), GetMouse(), grSetColor(), gxClearDisplay(), PastInfo::Hard, BuzzData::History, IDT, IKEY, InBox(), PrestType::Indec, IOBox(), K_ENTER, key, MAIL, PastInfo::Man, BuzzData::Manned, BuzzData::Mission, PastInfo::MissionCode, MissionType::MissionCode, PastInfo::MissionName, MissionName(), PrestType::Month, MissionType::Month, Month, Astros::Name, Equipment::Name, MissionType::Name, Nums, Option, OutBox(), Players::P, pal, BuzzData::PastMis, PastInfo::Patch, PatchMe(), BuzzData::Pool, Players::Prestige, PrintAt(), random, RectFill(), ShBox(), Equipment::Used, WaitForMouseUp(), x, y, and Players::Year.

void EndOfTurnSave ( char *  inData,
int  dataLen 
)

Definition at line 1365 of file admin.c.

References buffer, random, randomize(), remove_savedat(), RLEC(), and sOpen().

void EndPict ( int  x,
int  y,
char  poff,
unsigned char  coff 
)

Definition at line 743 of file endgame.c.

References DV(), GV(), gxGetImage(), gxPutImage(), gxSET, local2, pal, sOpen(), SwapPatchHdrSmall, GXHEADER::vptr, and GXHEADER::w.

void exit_program ( void   ) 

void F_IRCrew ( char  mode,
struct Astros Guy 
)

Definition at line 624 of file mis_m.c.

References Astros::Assign, Astros::Crew, F_INJ, F_RET, Astros::IDelay, Astros::Moved, Astros::RDelay, Astros::RetReas, Astros::Special, Astros::Status, Astros::Task, and Astros::Una.

void F_KillCrew ( char  mode,
struct Astros Victim 
)

Definition at line 578 of file mis_m.c.

References MisAst::A, Astros::Assign, Equipment::Base, Astros::Crew, Data, death, Players::Def, MisEval::E, F_ALL, F_ONE, Guy, Defl::Lev1, Defl::Lev2, MA, MANNED, Mev, Astros::Moved, Players::P, MisEval::pad, BuzzData::Pool, Astros::RetReas, Equipment::Safety, Astros::Special, Astros::Status, STEP, Astros::Task, tMen, and Astros::Una.

void FadeIn ( char  wh,
char *  palx,
int  steps,
int  val,
char  mode 
)

Referenced by Admin(), AI_Begin(), AstSel(), Bre(), Credits(), DamProb(), Draw_Mis_Stats(), Draw_NewEnd(), DrawAstCheck(), DrawBudget(), DrawFuture(), DrawHardef(), DrawIStat(), DrawPrefs(), DrawReview(), DrawStatistics(), EditAst(), EndGame(), FailureMode(), FakeWin(), FileAccess(), FutureCheck(), Hospital(), HPurc(), Intel(), Introd(), Launch(), Limbo(), LMBld(), LoadNewsAnim(), Master(), MChoice(), MisAnn(), MisOrd(), Moon(), Museum(), NewEnd(), NextTurn(), PadDraw(), PlayFirst(), Port(), Prefs(), Programs(), RankMe(), RD(), Records(), Rush(), SatBld(), ShowAstrosHist(), ShowHard(), ShowPrest(), ShowSpHist(), SpecialEnd(), Train(), VAB(), and Viewing().

void FadeMusicIn ( int  maxvolume,
unsigned  rate 
)

void FadeMusicOut ( unsigned  rate  ) 

void FadeOut ( char  wh,
char *  palx,
int  steps,
int  val,
char  mode 
)

Referenced by Admin(), AI_Done(), Credits(), DamProb(), DispVAB(), Draw_Mis_Stats(), Draw_NewEnd(), DrawAstCheck(), DrawAstSel(), DrawBre(), DrawBudget(), DrawFuture(), DrawHardef(), DrawHPurc(), DrawIStat(), DrawLimbo(), DrawPrefs(), DrawProgs(), DrawRD(), DrawReview(), DrawRush(), DrawStatistics(), DrawTrain(), DrawViewing(), EditAst(), EndGame(), FailureMode(), FakeWin(), FileAccess(), FutureCheck(), Hospital(), Intel(), Introd(), LMDraw(), LoadNewsAnim(), main(), MainLoop(), Master(), MisAnn(), MisOrd(), MisRev(), Moon(), Museum(), NewEnd(), NextTurn(), PadDraw(), PlayFirst(), Port(), Prefs(), RankMe(), Records(), SatDraw(), ShowAstrosHist(), ShowHard(), ShowPrest(), and ShowSpHist().

void FadeVoiceIn ( int  maxvolume,
unsigned  rate 
)

void FadeVoiceOut ( unsigned  rate  ) 

int FailEval ( char  plr,
int  type,
char *  text,
int  val,
int  xtra 
)

Definition at line 642 of file mis_m.c.

References MisAst::A, AI, Equipment::Base, bioskey(), Data, death, DestroyPad(), MisEval::dgoto, MisEval::dice, MisEval::E, EVA, F_ALL, F_INJ, F_IRCrew(), F_KillCrew(), F_ONE, F_RET, FailureMode(), MisEval::fgoto, InSpace, JOINT, key, LM, loc, MisEval::loc, MA, MANNED, mcc, Mev, MFlag, MH, Equipment::MisFail, Equipment::MisSaf, MPad, Name, MisEval::Name, noDock, other, Players::P, MisEval::pad, MisEval::PComp, BuzzData::Pool, random, MisEval::rnum, Equipment::Safety, SCRUBS, Astros::Status, STEP, MisEval::StepInfo, MisEval::trace, Unm, and VerifySF().

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

Definition at line 772 of file mis_c.c.

References bioskey(), CloseAnim(), delay(), DispBig(), DispChr(), DispNum(), MisEval::E, EVA, FadeIn(), FadeOut(), fin, FlagSm(), get_time(), GetMouse(), grDrawLine(), grMoveTo(), grSetColor(), GuyDisp(), gxClearDisplay(), Equipment::ID, InBox(), InRFBox(), IOBox(), K_ENTER, key, LM, loc, MA, MANNED, Mev, MisStep, Name, MisEval::Name, OpenAnim(), other, OutBox(), pal, pal2, PrintAt(), screen, screen_dirty, ShBox(), STEP, StepAnim(), VerifyData(), WaitForMouseUp(), x, and y.

void FakeHistory ( char  plr,
char  Fyear 
)

Definition at line 635 of file endgame.c.

References buffer, BUFFER_SIZE, HistFile(), and PrintHist().

void FakeWin ( char  win  ) 

Definition at line 511 of file endgame.c.

References BuzzData::AstroCount, Data, delay(), DispBig(), DispNum(), EndPict(), FadeIn(), FadeOut(), FakeHistory(), FlagSm(), GetMouse(), grSetColor(), gxClearDisplay(), InBox(), IOBox(), K_ENTER, key, M_INTERLUD, BuzzData::Manned, MissionName(), Month, music_start, music_stop(), Astros::Name, Equipment::Name, Nums, OutBox(), Players::P, pal, PatchMe(), BuzzData::Pool, PrintAt(), random, RectFill(), ShBox(), WaitForMouseUp(), x, y, and Players::Year.

void FastOne ( char  plr,
int *  where 
)

Definition at line 505 of file museum.c.

References Data, DrawMisHist(), BuzzData::History, PastInfo::MissionYear, PastInfo::Month, Players::P, and BuzzData::PastMis.

void FileAccess ( char  mode  ) 

Definition at line 215 of file admin.c.

References _Swap16bit(), _Swap32bit(), AI, BadFileType(), buffer, BUFFER_SIZE, SaveFileHdr::compSize, SaveFileHdr::Country, Data, SaveFileHdr::dataSize, Players::Def, delay(), DN_ARROW, DNArrow(), DoModem(), DrawFiles(), EndOfTurnSave(), FadeIn(), FadeOut(), FileText(), fin, fOFF, GenerateTables(), GetBlockName(), GetMouse(), grSetColor(), gxClearDisplay(), GXHEADER::h, Help(), SaveFileHdr::ID, IDT, IKEY, InBox(), IOBox(), key, LOAD, MAIL, MAX_REPLAY_ITEMS, MODEM_ERROR, mousebuttons, MPrefs(), BuzzData::Name, SaveFileHdr::Name, Name, NOTSAME, ONEWS::offset, on, Option, OutBox(), Players::P, pal, Players::plr, plr, Defl::Plr1, Defl::Plr2, SaveFileHdr::PName, PrintAt(), PrintAtKey(), REPLAY::Qty, QUIT, RaceIntoSpace_Signature, random, randomize(), RectFill(), remove_savedat(), RequestX(), RLED(), SAME_ABORT, SAVEGAME_Modem, SAVEGAME_Normal, SAVEGAME_PlayByMail, Players::Season, SaveFileHdr::Season, ShBox(), ONEWS::size, sOpen(), SwapGameDat(), SFInfo::Title, UP_ARROW, UPArrow(), vhptr, GXHEADER::vptr, GXHEADER::w, WaitForMouseUp(), x, y, Players::Year, SaveFileHdr::Year, and YES.

void FileText ( char *  name  ) 

Definition at line 1008 of file admin.c.

References SaveFileHdr::Country, DispNum(), fin, grMoveTo(), grSetColor(), SaveFileHdr::PName, PrintAt(), RectFill(), SaveFileHdr::Season, sOpen(), and SaveFileHdr::Year.

int FillVab ( char  plr,
char  f,
char  mode 
)

Definition at line 211 of file vab.c.

Referenced by VAB().

int Find_MaxGoal ( void   ) 

Definition at line 794 of file prest.c.

References Mev, MisEval::PComp, PosGoal_Check(), and STEPnum.

int FindNext ( int  x  ) 

Definition at line 489 of file aimast.c.

References G.

void First ( char  now,
char  loc 
)

Definition at line 1375 of file prefs.c.

References DispNum(), grSetColor(), Name, PrintAt(), and ManPool::Sex.

void FixPrograms ( char  plr  ) 

Definition at line 274 of file ast4.c.

References BuzzData::Cash, DamProb(), Data, Equipment::DCost, BuzzData::Manned, BuzzData::Misc, Players::P, BuzzData::Probe, and BuzzData::Rocket.

void Flag ( int  x,
int  y,
char  plr 
)

Definition at line 903 of file main.c.

References PP, and RectFill().

void FlagSm ( char  plr,
int  xm,
int  ym 
)

Definition at line 868 of file main.c.

References grLineTo(), grMoveTo(), grPutPixel(), grSetColor(), and RectFill().

void Flts ( char  old,
char  nw 
)

Definition at line 981 of file ast4.c.

References InBox(), and OutBox().

void FltsTxt ( char  nw,
char  col 
)

Definition at line 1008 of file ast4.c.

References grSetColor(), and PrintAt().

void Fly_By ( void   ) 

Definition at line 198 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void For1rec ( char *  pos,
char *  pos2 
)

Definition at line 177 of file records.c.

Referenced by Records().

void ForOne ( char  plr,
char *  pos,
char *  pos2 
)

Definition at line 273 of file museum.c.

References DPrest().

void FreePadMen ( char  plr,
struct MissionType XMis 
)

Definition at line 542 of file main.c.

References MissionType::BCrew, c, BuzzData::Crew, BuzzData::Gcnt, Players::P, MissionType::PCrew, BuzzData::Pool, Astros::Prime, and MissionType::Prog.

void FullFast ( char  plr,
int *  where 
)

Definition at line 538 of file museum.c.

References Data, DrawMisHist(), BuzzData::History, PastInfo::MissionYear, PastInfo::Month, Players::P, and BuzzData::PastMis.

void FullRewind ( char  plr,
int *  where 
)

Definition at line 521 of file museum.c.

References DrawMisHist().

void FutAstList ( char  plr,
char  men,
int  M1,
int  M2,
int  M3,
int  M4 
)

Definition at line 343 of file crew.c.

References Astros::Cap, Data, DispNum(), Astros::Docking, Astros::Endurance, Astros::EVA, grSetColor(), Astros::LM, Astros::Name, Players::P, BuzzData::Pool, PrintAt(), and RectFill().

char FutBad ( void   ) 

Draws stuff about choosing a program and having < 2 groups available.

Deprecated:
This function appears to be depricated.

Definition at line 1277 of file future.c.

References delay(), GetMouse(), grSetColor(), InBox(), IOBox(), mousebuttons, PrintAt(), ShBox(), WaitForMouseUp(), x, and y.

void FutFltsTxt ( char  nw,
char  col 
)

Definition at line 284 of file crew.c.

References grSetColor(), and PrintAt().

void FutSt ( char  plr,
int  pr,
int  p,
int  b 
)

Definition at line 306 of file crew.c.

References ASTRONAUT_CREW_MAX, BuzzData::Crew, Data, FutSt2(), Astros::Moved, Players::P, BuzzData::Pool, and Astros::Prime.

void FutSt2 ( int  num,
int  type 
)

Definition at line 324 of file crew.c.

References grMoveTo(), grSetColor(), PrintAt(), and RectFill().

void Future ( char  plr  ) 

Todo:
the whole Future()-function is 500 >lines and unreadable

Definition at line 461 of file future.c.

References Bub_Count, ClearRX(), ClrFut(), Data, DEBUG1, delay(), DN_ARROW, DownSearchRout(), draw_Pie(), DrawFuture(), mStr::Dur, MissionType::Duration, DV(), Parameter::E, F1, F2, F3, F4, F5, FMen, BuzzData::Future, FutureCheck(), GetMinus(), GetMouse(), grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, HardCrewAssign(), IDT, InBox(), JointFlag, K_ENTER, K_ESCAPE, K_SPACE, key, lck, loc, local2, Mev, Mis, MissionType::MissionCode, Missions(), MisStep, MisType, mousebuttons, OutBox(), Players::P, Pad, PlaceRX(), SEG, SetParameters(), ShBox(), status, StepBub, TogBox(), Toggle(), UP_ARROW, UpSearchRout(), V, WaitForMouseUp(), Parameter::X, x, and y.

int FutureCheck ( char  plr,
char  type 
)

Definition at line 1064 of file admin.c.

References mStr::Abbr, BuzzData::Cash, Data, delay(), DispChr(), DispNum(), FadeIn(), FadeOut(), fin, BuzzData::Future, GetMisType(), GetMouse(), grSetColor(), gxClearDisplay(), gxVirtualDisplay(), GXHEADER::h, MissionType::Hard, Help(), IDT, IKEY, InBox(), IOBox(), K_ENTER, K_ESCAPE, key, BuzzData::LaunchFacility, MAX_X, MAX_Y, Mis, BuzzData::Mission, MissionType::MissionCode, Missions(), mousebuttons, Players::P, pal, MissionType::part, PortPal(), PrintAt(), RectFill(), RLED_img(), screen, ShBox(), sOpen(), BuzzData::Spend, vhptr, GXHEADER::vptr, GXHEADER::w, WaitForMouseUp(), x, and y.

int GenerateTables ( SaveGameType  saveType  ) 

Note:
old code lacked parans, so pointed FList off into space - pace

Definition at line 139 of file admin.c.

References buffer, SaveFileHdr::Country, SFInfo::date, ffblk::ff_fdate, ffblk::ff_ftime, ffblk::ff_name, fin, first_saved_game(), SaveFileHdr::Name, Name, SFInfo::Name, next_saved_game(), SAVEGAME_Modem, SAVEGAME_Normal, SAVEGAME_PlayByMail, sOpen(), SFInfo::time, and xstrcasecmp().

int GenPur ( char  plr,
int  hwx,
int  unx 
)

Definition at line 656 of file aipur.c.

References Equipment::Base, BuzzData::Buy, BuzzData::Cash, Data, Equipment::InitCost, BuzzData::Manned, Equipment::MaxRD, BuzzData::Misc, Equipment::Num, Players::P, BuzzData::Probe, RDafford(), BuzzData::Rocket, Equipment::Safety, and Equipment::UnitCost.

long get_baud ( void   ) 

int get_bits ( void   ) 

void get_dial ( char *  old  ) 

char* get_modem_string ( char *  s,
char *  d 
)

int get_parity ( void   ) 

int get_stopbits ( void   ) 

char GetBlockName ( char *  Nam  ) 

Definition at line 921 of file admin.c.

References av_block(), av_need_update_xy(), bioskey(), delay(), DV(), gr_maybe_sync(), gr_sync(), grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, InBox(), K_ENTER, K_ESCAPE, key, PrintAt(), RectFill(), and ShBox().

int GetBuzzEnv ( drvr_desc desc,
char *  envs 
)

void GetFailStat ( struct XFails Now,
char *  FName,
int  rnum 
)

Definition at line 56 of file mis_m.c.

References XFails::code, DEBUG1, DEBUG2, XFails::fail, fin, XFails::per, sOpen(), Swap16bit, Swap32bit, XFails::val, xstrncasecmp(), and XFails::xtra.

void GetHard ( char  plr  ) 

Definition at line 729 of file aimis.c.

References BuzzData::WantList::Asp, Data, GenPur(), BuzzData::Manned, Equipment::MaxPay, Players::P, BuzzData::Probe, rck, BuzzData::Rocket, Equipment::UnitWeight, and BuzzData::WList.

int GetMinus ( char  plr  ) 

Definition at line 196 of file future.c.

References DispNum(), grMoveTo(), grSetColor(), gxVirtualDisplay(), PrestMin(), PrintAt(), and RectFill().

void GetMisData ( char  which  ) 

void GetMisType ( char  mcode  ) 

Opens "MISSION.DAT" to find mission data.

Parameters:
mcode Code of the mission - works as index for the file
Todo:
This is highly coupled to game logic and size of internal structures.

Todo:
Missing assert for opening file?

Definition at line 1071 of file main.c.

References fin, Mis, and sOpen().

void GetMouse ( void   ) 

Definition at line 604 of file main.c.

References av_block(), and GetMouse_fast().

void GetMse ( char  plr,
char  fon 
)

Definition at line 690 of file port.c.

References DoCycle(), DV(), FCtr, get_time(), GetMouse_fast(), GV(), gxGetImage(), gxPutImage(), gxSET, gxVirtualVirtual(), local2, SPOT_STEP, SpotCrap(), and GXHEADER::vptr.

void GetMusic ( FILE *  fin,
long  size 
)

void GetVoice ( char  val  ) 

void Gl ( int  x1,
int  x2,
int  y,
char  t 
)

Definition at line 775 of file main.c.

References grPutPixel().

void GoNews ( char  plr  ) 

Definition at line 93 of file news.c.

References buffer, rNews::chrs, Players::Count, Data, DispNews(), BuzzData::eCount, Players::Events, grSetColor(), Name, rNews::offset, OpenNews(), Players::P, and ResolveEvent().

void GradRect ( int  x1,
int  y1,
int  x2,
int  y2,
char  plr 
)

Definition at line 856 of file main.c.

References RectFill().

void GradRect2 ( int  x1,
int  y1,
int  x2,
int  y2,
char  plr 
)

Definition at line 109 of file vab.c.

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

Definition at line 757 of file mis_c.c.

References grSetColor(), Astros::Name, PrintAt(), and Astros::Status.

void GV ( GXHEADER obj,
int  w,
int  h 
)

Definition at line 592 of file main.c.

References gxCMM, gxCreateVirtual(), and gxVGA_13.

void hangup ( void   ) 

int HardCrewAssign ( char  plr,
char  Pad,
int  MisType,
char  NewType 
)

Definition at line 24 of file crew.c.

References AsnCrew(), Data, DV(), BuzzData::Future, GV(), gxGetImage(), gxPutImage(), gxSET, HardRequest(), MissionType::Joint, MissionType::Men, MissionType::MissionCode, Players::P, MissionType::part, and SecondHard().

int HardRequest ( char  plr,
char  mode,
char  mis,
char  pad 
)

Definition at line 391 of file crew.c.

References Data, mStr::Days, delay(), mStr::Doc, DrawHard(), MissionType::Duration, BuzzData::Future, GetMisType(), GetMouse(), InBox(), IOBox(), K_ENTER, K_ESCAPE, key, mStr::Lun, BuzzData::Manned, mStr::mEq, Mis, mousebuttons, Equipment::Num, Players::P, MissionType::Prog, WaitForMouseUp(), x, and y.

void HarIntel ( char  p,
char  acc 
)

Definition at line 319 of file intel.c.

References BuzzData::Intelligence::cur, Data, HarIntel(), BuzzData::Intelligence::index, MisIntel(), Players::P, BuzzData::PastIntel, BuzzData::Intelligence::prog, random, SaveIntel(), and Players::Year.

void HDispIt ( int  x1,
int  y1,
int  x2,
int  y2,
int  s,
int  t 
)

Definition at line 213 of file hardef.c.

References dest, DV(), GV(), gxClearVirtual(), gxGetImage(), gxPutImage(), gxSET, gxVirtualVirtual(), local2, vhptr, and GXHEADER::vptr.

int Help ( char *  FName  ) 

Definition at line 459 of file place.c.

References AL_CALL, av_need_update_xy(), av_sync(), DispBig(), DispHelp(), DNArrow(), DV(), fin, GetMouse(), grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, Help(), InBox(), IOBox(), K_ENTER, key, mode, OutBox(), PrintAt(), RectFill(), ShBox(), sOpen(), Swap16bit, Swap32bit, UPArrow(), WaitForMouseUp(), x, xmalloc(), xstrncasecmp(), and y.

void HInfo ( char  plr,
char  loc,
char  w 
)

Definition at line 659 of file hardef.c.

References Data, DispIt(), DispNum(), Equipment::Failures, GradRect(), grPutPixel(), grSetColor(), HDispIt(), BuzzData::Manned, BuzzData::Misc, Equipment::Num, Players::P, BuzzData::Probe, RectFill(), BuzzData::Rocket, and Equipment::Steps.

void HistFile ( char *  buf,
unsigned char  bud 
)

Definition at line 650 of file endgame.c.

References fin, and sOpen().

void HModel ( char  mode,
char  tx 
)

Definition at line 121 of file prefs.c.

References buffer, DV(), fread_SimpleHdr(), grSetColor(), GV(), gxPutImage(), gxSET, gxSetDisplayPalette(), gxVGA_13, gxVirtualSize(), GXHEADER::h, SimpleHdr::offset, pal, PrintAt(), RectFill(), RLED_img(), SimpleHdr::size, sizeof_SimpleHdr, sOpen(), table, GXHEADER::vptr, and GXHEADER::w.

void Hospital ( char  plr,
int  sel 
)

Definition at line 390 of file ast3.c.

References BuzzData::AstroCount, Data, delay(), DispBig(), DispLeft(), DN_ARROW, DNArrow(), FadeIn(), FadeOut(), fin, FlagSm(), GetMouse(), grSetColor(), gxClearDisplay(), gxVirtualDisplay(), IDT, IKEY, InBox(), IOBox(), K_ENTER, key, M_BADNEWS, M_INTERLUD, M_SVFUN, M_USFUN, mousebuttons, music_start, music_stop(), OutBox(), Players::P, pal, PCX_D(), BuzzData::Pool, PrintAt(), RectFill(), screen, ShBox(), sOpen(), Astros::Status, Swap32bit, UP_ARROW, UPArrow(), vhptr, GXHEADER::vptr, WaitForMouseUp(), x, and y.

char HPurc ( char  plr  ) 

Definition at line 645 of file rdplex.c.

Referenced by Admin(), and RD().

int ICost ( char  plr,
char  h,
char  i 
)

Definition at line 111 of file aimis.c.

References Data, Equipment::InitCost, BuzzData::Manned, Equipment::MaxRD, BuzzData::Misc, Equipment::Num, Players::P, BuzzData::Probe, Equipment::RDCost, Equipment::Safety, and Equipment::UnitCost.

void IInfo ( char  plr,
char  loc,
char  w 
)

Definition at line 826 of file intel.c.

References Data, DispIt(), DispNum(), GradRect(), grPutPixel(), grSetColor(), BuzzData::Manned, BuzzData::Misc, Equipment::Num, Players::P, PrintAt(), BuzzData::Probe, RectFill(), BuzzData::Rocket, Equipment::Safety, and BuzzData::Table.

void ImpHard ( char  plr,
char  hd,
char  dx 
)

Definition at line 504 of file intel.c.

References Data, BuzzData::Manned, Equipment::MaxRD, Equipment::MaxSafety, BuzzData::Misc, Players::P, BuzzData::Probe, random, BuzzData::Rocket, and BuzzData::Table.

int in_ready ( void   ) 

void InBox ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 822 of file main.c.

References av_need_update_xy(), grLineTo(), grMoveTo(), and grSetColor().

void InitData ( void   ) 

Definition at line 324 of file main.c.

References Players::Count, NUM_PLAYERS, Players::P, BuzzData::PresRev, and SetEvents().

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

Definition at line 751 of file mis_c.c.

References InBox(), and RectFill().

void Intel ( char  plr  ) 

Definition at line 35 of file intel.c.

References BChoice(), Bre(), BuzzData::Cash, Data, DispMB(), DispNum(), DrawSpaceport(), FadeIn(), FadeOut(), grSetColor(), IDT, IKEY, IStat(), M_INTEL, M_INTELLEG, music_start, music_stop(), Players::P, pal, PortPal(), PrintAt(), RectFill(), Players::Season, and Players::Year.

void IntelPhase ( char  plr,
char  pt 
)

Definition at line 548 of file intel.c.

References BuzzData::Intelligence::cur, Data, Players::Def, EMPTY_BODY, HarIntel(), Defl::Lev1, Defl::Lev2, MisIntel(), Players::P, BuzzData::PastIntel, random, Players::Season, UpDateTable(), and Players::Year.

void Introd ( void   ) 

Definition at line 237 of file intro.c.

References av_step(), FadeIn(), FadeOut(), get_time(), gr_set_color_map(), grGetMouseButtons(), gxClearDisplay(), INTRO_IMAGE_COUNT, key, M_LIFTOFF, intro_image::map, MAX_X, MAX_Y, music_start, pal, PauseMouse(), intro_image::pixels, read_intro_images(), and screen.

void IOBox ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 836 of file main.c.

References Box(), grSetColor(), InBox(), and OutBox().

int IsChannelMute ( int  channel  ) 

Definition at line 157 of file sdl.c.

Referenced by News(), PlaySequence(), and SpotCrap().

void IStat ( char  plr  ) 

Definition at line 740 of file intel.c.

References Del_RD_BUT(), delay(), DrawIStat(), GetMouse(), IInfo(), InBox(), K_ENTER, key, mousebuttons, OutBox(), place, ReButs(), WaitForMouseUp(), x, and y.

void KeepRD ( char  plr,
int  m 
)

Definition at line 370 of file aimast.c.

References BuzzData::Buy, Data, Players::Def, GenPur(), Defl::Lev1, Defl::Lev2, Level_Check, BuzzData::Manned, Equipment::Num, Players::P, RDafford(), and BuzzData::Rocket.

void KillMusic ( void   ) 

void KillVoice ( void   ) 

Definition at line 504 of file pace.c.

int Launch ( char  plr,
char  mis 
)

Todo:
The "early" missions should be defined in a file

Definition at line 94 of file mc.c.

References AI, AllotPrest(), MissionType::BCrew, BIG, buffer, BUFFER_SIZE, CAP, CheckCrewOK(), ClrMiss(), BuzzData::Crew, MissionType::Crew, Data, mStr::Days, Players::Def, DOC, DrawControl(), MissionType::Duration, EVA, FadeIn(), fEarly, FINAL, Find_MaxGoal(), gxClearDisplay(), MissionType::Hard, MissionType::Joint, JOINT, JT1_MAN, JT1_UNMAN, JT2_MAN, Defl::Lev1, Defl::Lev2, LM, MA, MANNED, mcc, MissionType::Men, Mev, minn, Mis, MisAnn(), MisCheck(), MisDur(), MisPrt(), MisRush(), BuzzData::Mission, Mission_Capsule, MissionType::MissionCode, MissionCodes(), MissionPast(), MissionSetDown(), MissionSetup(), MisSkip(), MisStat, NOFAIL, BuzzData::Other, Players::P, pal, MissionType::part, pAry, PastBANG, pCnt, MissionType::PCrew, pNeg, BuzzData::Pool, BuzzData::Prestige, MissionType::Prog, PUSSY, remove_savedat(), MissionType::Rushing, S_MAN, SafetyRecords(), SetW(), STEP, STEPnum, tMen, U_AllotPrest(), xMODE, and xMODE_PUSSY.

void LefEarth ( char  a,
char  b 
)

Definition at line 168 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void LefGap ( char  x  ) 

Definition at line 407 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void LefOrb ( char  a,
char  b,
char  c,
char  d 
)

Definition at line 182 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void Levels ( char  plr,
char  which,
char  x 
)

Definition at line 157 of file prefs.c.

References gxVirtualDisplay(), and vhptr.

void Limbo ( char  plr  ) 

Definition at line 112 of file ast2.c.

References Astros::Assign, BuzzData::AstroCount, BuzzData::Cash, Clear(), Data, delay(), DispLeft(), DN_ARROW, DrawLimbo(), FadeIn(), Astros::Focus, GetMouse(), grSetColor(), Help(), InBox(), K_ENTER, key, LimboText(), LT_ARROW, M_ASSEMBLY, M_ASTTRNG, BuzzData::Manned, mousebuttons, Astros::Moved, music_start, music_stop(), Equipment::Num, OutBox(), Players::P, pal, BuzzData::Pool, PrintAt(), Programs(), RectFill(), RT_ARROW, ShBox(), Astros::Status, Train(), Astros::TrainingLevel, Astros::Una, UP_ARROW, WaitForMouseUp(), x, and y.

void LimboText ( char  plr,
int  astro 
)

Definition at line 413 of file ast2.c.

References Astros::Active, AstFaces(), Astros::Cap, Data, DispNum(), Astros::Docking, Astros::Endurance, Astros::EVA, Astros::Face, Astros::Group, grSetColor(), Astros::LM, Astros::Mood, Astros::Name, Players::P, BuzzData::Pool, PrintAt(), and RectFill().

void LMAdd ( char  plr,
char  prog,
char  kic,
char  part 
)

Definition at line 1009 of file vab.c.

Referenced by BuildVAB().

void LMBld ( char  plr  ) 

Definition at line 393 of file ast0.c.

References Data, delay(), DispBig(), DispNum(), FadeIn(), Equipment::Failures, GetMouse(), grSetColor(), InBox(), K_ENTER, key, LMDraw(), BuzzData::LMpts, M_HISTORY, BuzzData::Manned, music_start, music_stop(), Equipment::Name, Name, Equipment::Num, Players::P, pal, PrintAt(), Equipment::Safety, ShBox(), Equipment::Steps, WaitForMouseUp(), x, and y.

void LMDraw ( char  plr  ) 

Definition at line 185 of file ast0.c.

References Data, DispBig(), FadeOut(), FlagSm(), grSetColor(), gxClearDisplay(), InBox(), IOBox(), LMPict(), BuzzData::Manned, Equipment::Num, Players::P, pal, PrintAt(), RectFill(), and ShBox().

void LMPict ( char  poff  ) 

Definition at line 365 of file ast0.c.

References buffer, DV(), fread_SimpleHdr(), GV(), gxPutImage(), gxSET, GXHEADER::h, local2, SimpleHdr::offset, pal, RLED_img(), SimpleHdr::size, sizeof_SimpleHdr, sOpen(), table, GXHEADER::vptr, and GXHEADER::w.

void Load_CIA_BUT ( void   ) 

Definition at line 652 of file intel.c.

References fin, MAX_X, MAX_Y, pal, PCX_D(), screen, sOpen(), vhptr, and GXHEADER::vptr.

void Load_FUT_BUT ( void   ) 

Definition at line 52 of file future.c.

References fin, GXHEADER::h, MAX_X, MAX_Y, RLED_img(), screen, sOpen(), GXHEADER::vptr, and GXHEADER::w.

void* load_global_timbre ( FILE *  GTL,
unsigned  bank,
unsigned  patch 
)

void Load_LenFlag ( char  win  ) 

Definition at line 332 of file endgame.c.

References DV(), GV(), gxClearVirtual(), gxGetImage(), gxPutImage(), gxSET, local2, pal, sOpen(), SwapPatchHdr, GXHEADER::vptr, and GXHEADER::w.

void Load_RD_BUT ( char  plr  ) 

Definition at line 43 of file rdplex.c.

Referenced by DrawHardef(), DrawHPurc(), DrawIStat(), and DrawRD().

mm_file* LoadNewsAnim ( int  plr,
int  bw,
int  type,
int  Mode,
mm_file fp 
)

Definition at line 973 of file news.c.

References AnimIndex, DrawBottomNewsBox(), DrawTopNewsBox(), FadeIn(), FadeOut(), FIRST_FRAME, Frame, FT_VIDEO, get_time(), gxClearDisplay(), load_news_anim_start, MaxFrame, mm_close(), mm_decode_video(), mm_open_fp(), mm_video_info(), news_index, news_overlay, news_rect, news_shots, pal, screen_dirty, sOpen(), and TOMS_BUGFIX.

void LoserPict ( char  poff,
unsigned char  coff 
)

Definition at line 778 of file endgame.c.

References DV(), GV(), gxGetImage(), gxPutImage(), gxSET, local2, pal, sOpen(), SwapPatchHdr, GXHEADER::vptr, and GXHEADER::w.

void LTArrow ( int  x1,
int  y1 
)

Definition at line 808 of file main.c.

References grDrawLine(), and grSetColor().

int main ( int  argc,
char *  argv[] 
)

Definition at line 116 of file main.c.

References _LOGV, AI, av_setup(), buffer, BUFFER_SIZE, BUTLOAD, CloseEmUp(), create_save_dir(), Credits(), CRITICAL1, CRITICAL3, DEBUG2, DEBUG3, df, game_options::dir_savegame, FadeOut(), FileAccess(), fin, gxClearDisplay(), HARD1, HIST, IDLE, IDT, IKEY, InitData(), Introd(), key, LOAD, LOG_ROOT_CAT, log_setThreshold(), LP_NOTICE, M_LIFTOFF, MAIL, MainLoop(), MakeRecords(), max, MChoice(), music_start, NOTICE1, NOTICE2, open_gamedat(), OpenEmUp(), Option, options, pal, plr, PortPal(), Prefs(), QUIT, RLED(), setup_options(), sOpen(), SwapGameDat(), UNIT1, game_options::want_debug, game_options::want_intro, WARNING1, xmalloc(), xMODE, and xMODE_NOCOPRO.

void MainLoop ( void   ) 

Definition at line 336 of file main.c.

References AI, AI_Begin(), AI_Done(), AIEvent(), AIMaster(), BuzzData::Budget, CalcPresRev(), BuzzData::Cash, CheckIfMissionGo(), ClrMiss(), DockingKludge(), EndOfTurnSave(), FadeOut(), FakeWin(), FixPrograms(), GetMouse(), gxClearDisplay(), IDLE, IDT, IKEY, IntelPhase(), Launch(), LOAD, loc, order::loc, Master(), MisRev(), Museum(), NewEnd(), News(), NextTurn(), NOCOPRO, NUM_PLAYERS, Order, OrderMissions(), other, Players::P, pal, PlayFirst(), order::plr, plr, PUSSY, QUIT, random, Review(), SpecialEnd(), Update(), UpdateRecords(), VerifyCrews(), VerifySF(), xMODE, xMODE_CLOUDS, xMODE_NOCOPRO, and Players::Year.

void MakeRecords ( void   ) 

Definition at line 40 of file records.c.

Referenced by main().

void ManSel ( int  mm  ) 

Definition at line 412 of file rdplex.c.

Referenced by RD().

int MapKey ( char  plr,
int  key,
int  old 
)

Map a keypress to a spaceport building selection.

Definition at line 857 of file port.c.

References Data, DN_ARROW, mousebuttons, Players::P, BuzzData::Port, PORT_Admin, PORT_AstroComplex, PORT_BasicTraining, PORT_Capitol, PORT_FlagPole, PORT_Gate, PORT_MissionControl, PORT_Museum, PORT_Pentagon, PORT_Research, PORT_VAB, and UP_ARROW.

void Master ( char  plr  ) 

Definition at line 637 of file port.c.

References Astros::Active, BuzzData::AstroCount, av_need_update_xy(), Data, DrawSpaceport(), FadeIn(), FadeOut(), GetMisType(), IDT, IKEY, MissionType::Joint, mStr::Jt, MAX_X, MAX_Y, Mis, BuzzData::Mission, MissionType::MissionCode, Players::P, pal, BuzzData::Pool, Port(), BuzzData::Port, PORT_MedicalCtr, PORT_VAB, random, sCount, screen, sFin, SPOT_LOAD, SpotCrap(), Astros::Status, SUSPEND, Vab_Spot, vhptr, GXHEADER::vptr, WaveFlagDel(), WaveFlagSetup(), xMODE, xMODE_CLOUDS, and xMODE_SPOT_ANIM.

char MaxChk ( char  hwx,
char  unx,
char  plr 
)

Definition at line 443 of file rdplex.c.

Referenced by RD(), and RDafford().

int MaxFail ( void   ) 

Definition at line 501 of file prest.c.

References maxx, Mev, MisEval::StepInfo, and MisEval::trace.

int MaxFailPad ( char  which  ) 

Definition at line 400 of file mc.c.

References maxx, Mev, MisEval::StepInfo, and MisEval::trace.

int MCGraph ( char  plr,
int  lc,
int  safety,
int  val,
char  prob 
)

Definition at line 512 of file mis_m.c.

References AI, delay(), grPutPixel(), grSetColor(), Mev, RectFill(), and STEP.

int MChoice ( char  qty,
char *  Name 
)

Definition at line 35 of file place.c.

References delay(), DispBig(), DV(), FadeIn(), GetMouse(), GV(), gxGetImage(), gxPutImage(), gxSET, InBox(), key, local2, mousebuttons, pal, ShBox(), sOpen(), SwapPatchHdr, GXHEADER::vptr, GXHEADER::w, WaitForMouseUp(), x, and y.

void MesCenter ( void   ) 

Definition at line 32 of file pace.c.

void Message ( int  msg,
int  tr 
)

void MevDebug ( FILE *  fout,
char  i 
)

void MisAnn ( char  plr,
char  pad 
)

Definition at line 108 of file newmis.c.

References BIG, ClrMiss(), Data, dg, DispNum(), BuzzData::DMod, FadeIn(), FadeOut(), Flag(), GetMisType(), GetMouse(), grSetColor(), gxClearDisplay(), gxSetDisplayPalette(), MissionType::Hard, Help(), InBox(), mStr::Index, IOBox(), MissionType::Joint, K_ENTER, key, BuzzData::Manned, Mis, BuzzData::Misc, BuzzData::Mission, Mission_Capsule, Mission_PrimaryBooster, MissionType::MissionCode, MissionType::Month, Month, Equipment::Name, OutBox(), Players::P, pal, PortPal(), PrintAt(), BuzzData::Probe, BuzzData::Rocket, Equipment::Safety, ShBox(), WaitForMouseUp(), x, y, and Players::Year.

void MisCheck ( char  plr,
char  mpad 
)

Definition at line 108 of file mis_m.c.

References MisAst::A, AI, MisEval::asf, BIG, Data, death, DEBUG6, DebugSetFailure(), Players::Def, delay(), MisEval::dgoto, MisEval::dice, BuzzData::DMod, Dock_Skip, MissionType::Duration, durx, MisEval::E, EVA, FailEval(), fEarly, FINAL, GetFailStat(), grPutPixel(), grSetColor(), gxSetDisplayPalette(), Equipment::ID, mStr::Index, InSpace, JOINT, Defl::Lev1, Defl::Lev2, MisEval::loc, loc, MA, MANNED, maxx, mcc, MCGraph(), Mev, MFlag, MH, minn, Mis, MisRandom(), Equipment::MisSaf, BuzzData::Mission, MissionType::MissionCode, MisStep, Equipment::MisSucc, MPad, Equipment::MSF, MisEval::Name, Name, noDock, options, other, Players::P, MisEval::pad, pal, pAry, pCnt, PlaySequence(), PrintAt(), MissionType::Prog, random, RectFill(), Request(), MisEval::rnum, S_Name, Equipment::Safety, Equipment::SaveCard, SCRUBS, Astros::Sex, MisEval::sgoto, Astros::Status, STEP, MisEval::StepInfo, STEPnum, Tick(), MisEval::trace, Unm, VerifyData(), game_options::want_cheats, x, and y.

void MisDur ( char  plr,
char  dur 
)

Definition at line 596 of file mc2.c.

References ARRAY_LENGTH, Data, mStr::Dur, BuzzData::DurLevel, Mis, Equipment::MisSaf, and Players::P.

void MisIntel ( char  plr,
char  acc 
)

Definition at line 84 of file intel.c.

References BuzzData::Intelligence::cur, Data, BuzzData::Future, Future(), HarIntel(), BuzzData::Intelligence::index, MisIntel(), BuzzData::Mission, MissionType::MissionCode, Players::P, BuzzData::PastIntel, BuzzData::Intelligence::prog, random, SaveIntel(), and Players::Year.

void MisOrd ( char  num  ) 

Definition at line 77 of file newmis.c.

References Data, DispNum(), FadeIn(), FadeOut(), FlagSm(), grSetColor(), InBox(), order::loc, BuzzData::Mission, MissionType::Month, Month, Order, Players::P, pal, order::plr, plr, PrintAt(), ShBox(), WaitForKeyOrMouseDown(), WaitForMouseUp(), and Players::Year.

void MisPrt ( void   ) 

Definition at line 417 of file mc2.c.

References MisEval::dice, MisEval::E, Mev, Equipment::MisSaf, MisEval::rnum, and STEP.

int MisRandom ( void   ) 

Definition at line 1082 of file main.c.

References random.

char MisReq ( char  plr  ) 

Definition at line 1358 of file port.c.

References Data, delay(), DispChr(), DV(), GetMouse(), GetMse(), grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, MissionType::Hard, InBox(), IOBox(), key, MissionType::Men, BuzzData::Mission, Mission_PrimaryBooster, MissionType::MissionCode, mousebuttons, MissionType::Name, Players::P, PrintAt(), Rush(), ShBox(), x, and y.

void MisRev ( char  plr,
int  pres 
)

Definition at line 173 of file review.c.

Referenced by MainLoop().

void MisRush ( char  ms  ) 

Definition at line 657 of file mc2.c.

References Equipment::MisSaf.

void Mission_Data_Buttons ( char  plr,
int *  where 
)

Definition at line 475 of file museum.c.

References Button2, Data, Draw_Mis_Stats(), BuzzData::History, key, PastInfo::MissionYear, PastInfo::Month, Players::P, and BuzzData::PastMis.

void MissionCodes ( char  plr,
char  val,
char  pad 
)

Definition at line 46 of file mc2.c.

References mStr::Alt, mStr::Code, GetMisType(), Mis, and MissionParse().

void MissionName ( int  val,
int  xx,
int  yy,
int  len 
)

Definition at line 1036 of file future.c.

References DEBUG1, DEBUG5, DispChr(), GetMisType(), grMoveTo(), Mis, and mStr::Name.

void MissionParse ( char  plr,
char *  MCode,
char *  LCode,
char  pad 
)

Definition at line 54 of file mc2.c.

References loc, MissionSteps(), and STEP.

void MissionPast ( char  plr,
char  pad,
int  prest 
)

Definition at line 292 of file mc.c.

References BuzzData::Crew, MissionType::Crew, Data, Astros::Days, MissionType::Duration, PastInfo::Duration, EVA, PastInfo::Event, fin, FINAL, MissionType::Hard, PastInfo::Hard, Astros::Hero, hero, BuzzData::History, MissionType::Joint, loc, PastInfo::Man, MANNED, MaxFail(), MaxFailPad(), maxx, MissionType::Men, Equipment::MisSaf, BuzzData::Mission, Mission_Capsule, Mission_PrimaryBooster, PastInfo::MissionCode, MissionType::MissionCode, PastInfo::MissionName, Astros::MissionNum, Astros::Missions, PastInfo::MissionYear, MissionType::Month, PastInfo::Month, MissionType::Name, REPLAY::Off, Players::P, BuzzData::PastMis, MissionType::Patch, PastInfo::Patch, BuzzData::Pool, Astros::Prestige, PastInfo::Prestige, MissionType::Prog, REPLAY::Qty, remove_savedat(), PastInfo::result, PastInfo::Saf, sOpen(), PastInfo::spResult, tMen, and Players::Year.

void Missions ( char  plr,
int  X,
int  Y,
int  val,
char  bub 
)

Missions() will draw the future missions among other things.

Parameters:
plr Player
X ???
Y ???
val ???
bub if set to 0 or 3 the function will not draw stuff

Todo:
This mapping of val -> drawing of missions steps should be more variable

Definition at line 1063 of file future.c.

References Bub_Count, ClearDisplay(), DEBUG1, DEBUG5, DispNum(), Draw_GH(), Draw_HighS(), Draw_IJ(), Draw_IJV(), Draw_LowS(), Draw_PQR(), Draw_PST(), DrawLefMoon(), DrawLunPas(), DrawMoon(), DrawSTUV(), DrawZ(), mStr::Dur, DurPri(), MisEval::E, F5, Fly_By(), GetMinus(), gr_sync(), grSetColor(), LefEarth(), LefGap(), LefOrb(), Mis, MissionCodes(), MissionName(), MisType, OrbIn(), OrbMid(), OrbOut(), Pad, PianoKey(), PrintAt(), Q_Patch(), RectFill(), RghtMoon(), S_Patch(), V, and VenMarMerc().

void MissionSetDown ( char  plr,
char  mis 
)

Definition at line 552 of file mc2.c.

References Equipment::Damage, Data, Equipment::DCost, Equipment::Failures, Equipment::ID, MissionType::Joint, Equipment::MisFail, BuzzData::Mission, Equipment::MisSucc, Name, Players::P, Equipment::Safety, Equipment::SMods, Equipment::Steps, and VerifySF().

void MissionSetup ( char  plr,
char  mis 
)

Definition at line 427 of file mc2.c.

References Data, DMFake, BuzzData::DMod, GetMisType(), MissionType::Hard, MissionType::Joint, BuzzData::LMpts, BuzzData::Manned, Mis, BuzzData::Misc, Equipment::MisSaf, BuzzData::Mission, Mission_Capsule, Mission_EVA, Mission_Kicker, Mission_LM, Mission_PhotoRecon, Mission_PrimaryBooster, Mission_Probe_DM, MissionType::MissionCode, mStr::mVab, Equipment::Num, Players::P, BuzzData::Probe, BuzzData::Rocket, Equipment::Safety, Equipment::SMods, and Equipment::Used.

void MissionSteps ( char  plr,
int  mcode,
int  Mgoto,
int  step,
int  pad 
)

Definition at line 118 of file mc2.c.

References MisAst::A, AI, mStr::AltD, MisEval::asf, MisEval::ast, Astros::Cap, CAP, MisEval::Class, Data, Players::Def, MisEval::dgoto, MisEval::dice, DOC, Astros::Docking, MisEval::E, Astros::EVA, EVA, MisEval::fgoto, MisEval::FName, Defl::Lev1, Defl::Lev2, Astros::LM, LM, loc, MA, BuzzData::Manned, MANNED, Mev, Mis, MisRandom(), BuzzData::Mission, MissionType::MissionCode, MisEval::Name, Equipment::Name, Name, Players::P, PastBANG, MisEval::PComp, MisEval::Prest, random, MisEval::rnum, MisEval::sgoto, STEP, MisEval::step, MisEval::StepInfo, VerifyData(), and WhichPart().

void MisSkip ( char  plr,
char  ms 
)

Definition at line 627 of file mc2.c.

References AI, Coml, Data, Players::Def, Defl::Lev1, Defl::Lev2, maxx, Equipment::MisSaf, and PrestMin().

void MMainLoop ( void   ) 

void Modem_Config ( void   ) 

void modem_control_string ( char *  s  ) 

void Moon ( char  plr  ) 

Definition at line 32 of file ast0.c.

References buffer, Data, delay(), DispNum(), DV(), FadeIn(), FadeOut(), FlagSm(), fread_SimpleHdr(), GetMouse(), grSetColor(), GV(), gxClearDisplay(), gxPutImage(), gxSET, GXHEADER::h, IDT, IKEY, InBox(), IOBox(), K_ENTER, key, M_HISTORY, BuzzData::Misc, music_start, music_stop(), SimpleHdr::offset, other, Players::P, pal, PrintAt(), RectFill(), RLED_img(), Equipment::Safety, ShBox(), SimpleHdr::size, sizeof_SimpleHdr, sOpen(), table, GXHEADER::vptr, GXHEADER::w, WaitForMouseUp(), x, and y.

void MoonProgram ( char  plr,
char  m 
)

Definition at line 560 of file aimast.c.

References BuzzData::Buy, Data, GenPur(), Players::P, and RDafford().

void MoonVoting ( char  plr  ) 

Definition at line 499 of file aimast.c.

References BuzzData::AILunar, Data, MoonProgram(), Players::P, PickModule(), and random.

void Move2 ( char  plr,
char *  pos,
char *  pos2,
char  val 
)

Definition at line 255 of file museum.c.

References DPrest().

void Move2rec ( char *  pos,
char *  pos2,
char  val 
)

Definition at line 130 of file records.c.

Referenced by Records().

char MPrefs ( char  mode  ) 

Definition at line 24 of file pace.c.

void Museum ( char  plr  ) 

Definition at line 113 of file museum.c.

References BuzzData::AstroCount, BChoice(), BuzzData::Cash, Data, DispMB(), DispNum(), DrawSpaceport(), FadeIn(), FadeOut(), grSetColor(), IDT, IKEY, M_THEME, music_start, music_stop(), Players::P, pal, PortPal(), PrintAt(), RankMe(), Records(), RectFill(), Players::Season, ShowAstrosHist(), ShowHard(), ShowPrest(), ShowSpHist(), and Players::Year.

void MuteChannel ( int  channel,
int  mute 
)

Definition at line 750 of file sdl.c.

char NegGoal ( char *  PVal  ) 

Definition at line 533 of file prest.c.

References NSTS.

void NewAI ( char  plr,
char  frog 
)

Definition at line 394 of file aimis.c.

References AIFuture(), AILaunch(), BuzzData::AILunar, BuzzData::AISec, BuzzData::Buy, BuzzData::Cash, Data, BuzzData::DurLevel, BuzzData::Future, GenPur(), GetMisType(), Equipment::InitCost, mStr::Jt, BuzzData::LaunchFacility, mStr::LM, BuzzData::Manned, Equipment::MaxRD, Mis, BuzzData::Misc, BuzzData::Mission, MissionType::MissionCode, Equipment::Num, other, Players::P, Panic_Level(), PreChe, BuzzData::Probe, RDafford(), BuzzData::Rocket, Equipment::Safety, Strategy_One(), Strategy_Thr(), Strategy_Two(), and BuzzData::Track.

void NewAstList ( char  plr,
char  prog,
int  M1,
int  M2,
int  M3,
int  M4 
)

Definition at line 894 of file ast4.c.

References AstNames(), AstStats(), Data, DrawPosition(), grSetColor(), Astros::Mood, Astros::Name, Players::P, BuzzData::Pool, and RectFill().

void NewEnd ( char  win,
char  loc 
)

Definition at line 390 of file endgame.c.

References Burst(), delay(), Draw_NewEnd(), DV(), EndGame(), FadeIn(), FadeOut(), GetMouse(), grSetMousePos(), GV(), gxClearVirtual(), gxGetImage(), gxPutImage(), gxSET, gxSetDisplayPalette(), IDT, IKEY, InBox(), K_ENTER, key, Load_LenFlag(), M_MISSPLAN, M_PRGMTRG, M_THEME, M_VICTORY, mousebuttons, music_start, music_stop(), OutBox(), pal, RectFill(), Replay(), ShBox(), Stat(), WaitForMouseUp(), x, and y.

void News ( char  plr  ) 

Definition at line 542 of file news.c.

References AnimIndex, AnimSoundCheck(), AV_SOUND_CHANNEL, buffer, bzdelay(), Players::Count, Data, DispBig(), DrawNText(), BuzzData::eCount, Players::Events, FIRST_FRAME, get_time(), GetMouse_fast(), GoNews(), grGetPixel(), grSetColor(), idle_loop_secs(), IDT, InBox(), IOBox(), IsChannelMute(), K_ENTER, key, KillVoice(), LOAD_SV, LOAD_US, LoadNewsAnim(), loc, M_NEW1970, mm_close(), mousebuttons, music_start, music_stop(), NEWS_ANGLE, NEWS_CLOSING, NEWS_OPENING, news_rect, NGetVoice(), NUpdateVoice(), ONEWS::offset, OutBox(), Players::P, PlayNewsAnim(), PlayVoice(), PreLoadAnim(), PrintAt(), RectFill(), Players::Season, ShBox(), ShowEvt(), ONEWS::size, sOpen(), TOMS_BUGFIX, VBlank, WaitForMouseUp(), x, y, and Players::Year.

void NextTurn ( char  plr  ) 

Definition at line 275 of file intro.c.

References Data, DispBig(), DispNum(), FadeIn(), FadeOut(), fin, grMoveTo(), grSetColor(), gxClearDisplay(), gxSetDisplayPalette(), gxVirtualDisplay(), GXHEADER::h, IDT, IKEY, key, M_FUTURE, M_GOOD, MAX_X, MAX_Y, music_start, music_stop(), pal, PrintAt(), RLED_img(), screen, Players::Season, ShBox(), sOpen(), vhptr, GXHEADER::vptr, GXHEADER::w, WaitForKeyOrMouseDown(), WaitForMouseUp(), and Players::Year.

void NFrame ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 81 of file news.c.

References Box(), grSetColor(), InBox(), and OutBox().

void NGetVoice ( char  plr,
char  val 
)

Definition at line 482 of file pace.c.

int NMod ( int  p,
int  prog,
int  type,
int  per 
)

???

Parameters:
type 1:postive -1:negative search
per Amount of modification in percent

Bug:
Mismatch between data.h(250) and this code here

Definition at line 118 of file news_sup.c.

References ARRAY_LENGTH, Data, Equipment::MaxSafety, Name, Players::P, BuzzData::Probe, and Equipment::Safety.

char NoFail ( char  plr  ) 

Definition at line 306 of file aimast.c.

References BuzzData::AIStat, Data, BuzzData::History, PastInfo::MissionCode, Players::P, BuzzData::PastMis, and PastInfo::spResult.

void NUpdateVoice ( void   ) 

Definition at line 551 of file sdl.c.

Referenced by News().

void oclose ( int  fil  ) 

void OnHand ( char  qty  ) 

Definition at line 580 of file rdplex.c.

Referenced by ShowUnit().

void open_port ( int  port,
int  inlen 
)

FILE* OpenAnim ( char *  fname  ) 

Definition at line 959 of file mis_c.c.

References AHead, aLoc, cFrame, fin, GV(), TM::ID, TM::offset, open_gamedat(), pal, TM::size, Swap16bit, Swap32bit, tFrames, GXHEADER::w, and WARNING1.

void OpenEmUp ( void   ) 

Definition at line 43 of file pace.c.

References GV(), letter_dat, randomize(), seq_init(), slurp_gamedat(), and XMAS.

void OpenNews ( char  plr,
char *  buf,
int  bud 
)

Definition at line 128 of file news.c.

References BuzzData::AstroCount, bufsize, Data, Astros::Name, Option, Players::P, BuzzData::Plans, BuzzData::Pool, random, Astros::RetReas, Players::Season, sOpen(), Astros::Special, Swap32bit, and Players::Year.

void OrbIn ( char  a,
char  b,
char  c 
)

Definition at line 114 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void OrbMid ( char  a,
char  b,
char  c,
char  d 
)

Definition at line 128 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void OrbOut ( char  a,
char  b,
char  c 
)

Definition at line 154 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

char OrderMissions ( void   ) 

Definition at line 51 of file newmis.c.

References AI, BuzzData::Budget, cmp_order(), Data, MAIL, MAX_MISSIONS, MisOrd(), BuzzData::Mission, MissionType::MissionCode, MissionType::Month, NUM_PLAYERS, Option, Order, Players::P, and MissionType::part.

void OutBox ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 829 of file main.c.

References av_need_update_xy(), grLineTo(), grMoveTo(), and grSetColor().

void PadBub ( int  x,
int  y,
int  col 
)

void PadDraw ( char  plr,
char  pad 
)

Definition at line 32 of file radar.c.

Referenced by ShowPad().

void PadPict ( char  poff  ) 

Definition at line 230 of file radar.c.

Referenced by PadDraw().

char Panic_Level ( char  plr,
int *  m_1,
int *  m_2 
)

Definition at line 168 of file aimis.c.

References Ahead, Alt_A, Alt_B, Cur_Status, Data, BuzzData::DurLevel, BuzzData::Mission, MissionType::MissionCode, Players::P, PreChe, and BuzzData::Track.

void PatchMe ( char  plr,
int  x,
int  y,
char  prog,
char  poff,
unsigned char  coff 
)

Definition at line 183 of file place.c.

References DV(), GV(), gxGetImage(), gxPutImage(), gxSET, local2, pal, sOpen(), SwapPatchHdrSmall, GXHEADER::vptr, and GXHEADER::w.

void PauseMouse ( void   ) 

Definition at line 661 of file main.c.

References GetMouse(), and mousebuttons.

int PCX_D ( void src,
void dest,
unsigned  src_size 
)

Referenced by Credits(), DispVAB(), Draw_NewEnd(), DrawControl(), Hospital(), Load_CIA_BUT(), main(), and read_img_frame().

void PianoKey ( int  X  ) 

Definition at line 286 of file future.c.

References DEBUG1, DEBUG2, draw_Pie(), DrawLocks(), MisEval::E, F1, F2, F3, F4, F5, PlaceRX(), status, Toggle(), and V.

void PickModule ( char  plr  ) 

Definition at line 481 of file aimast.c.

References Data, GenPur(), Players::P, RDafford(), and BuzzData::Track.

void PInfo ( char  plr,
char  loc 
)

Definition at line 245 of file hardef.c.

References Data, DispIt(), DispNum(), GradRect(), grPutPixel(), grSetColor(), PastInfo::Hard, HDispIt(), BuzzData::History, BuzzData::Manned, maxx, BuzzData::Misc, Equipment::Num, Players::P, BuzzData::PastMis, PrestType::Points, Players::Prestige, PastInfo::Prestige, BuzzData::Probe, RectFill(), and BuzzData::Rocket.

void PlaceEquip ( char  plr,
char  prog 
)

Definition at line 159 of file ast4.c.

References buffer, DV(), fin, fread_SimpleHdr(), GV(), gxGetImage(), gxPutImage(), gxSET, GXHEADER::h, local2, SimpleHdr::offset, pal, RLED_img(), SimpleHdr::size, sizeof_SimpleHdr, sOpen(), table, GXHEADER::vptr, and GXHEADER::w.

void PlaceRX ( int  s  ) 

Definition at line 337 of file future.c.

References RectFill().

void PlanText ( char  plr,
char  plan 
)

Definition at line 295 of file ast0.c.

References Data, DispNum(), grSetColor(), BuzzData::History, BuzzData::Misc, PastInfo::MissionCode, Equipment::Num, Players::P, BuzzData::PastMis, PrestType::Place, PrestType::Points, Players::Prestige, PrintAt(), BuzzData::Probe, RectFill(), Equipment::Safety, SmHardMe(), and PastInfo::spResult.

void PlayAudio ( char *  name,
char  mode 
)

Definition at line 516 of file pace.c.

References load_audio_file(), and PlayVoice().

void PlayFirst ( char  plr,
char  first 
)

Definition at line 807 of file endgame.c.

References Data, DispBig(), FadeIn(), FadeOut(), grSetColor(), gxClearDisplay(), InBox(), PrestType::Indec, M_LIFTOFF, MAIL, music_start, music_stop(), Option, Players::P, pal, BuzzData::PastMis, PauseMouse(), Players::PD, PF, PrestType::Place, Players::Prestige, PrintAt(), RectFill(), Replay(), and ShBox().

void PlayMusic ( char  mode  ) 

Referenced by Port().

int PlayNewsAnim ( mm_file  ) 

Definition at line 904 of file news.c.

References CTRACE4, Frame, get_time(), idle_loop_secs(), load_news_anim_start, MaxFrame, mm_decode_video(), news_overlay, and screen_dirty.

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.

References AI, Defl::Anim, AnimSoundCheck(), av_block(), av_silence(), AV_SOUND_CHANNEL, av_step(), BIG, bioskey(), buffer, BUFFER_SIZE, CLIF_TABLE, Data, DEBUG1, DEBUG4, Players::Def, DoPack(), fEarly, fin, Table::fname, Table::foffset, fread_oFGROUP(), fread_Table(), FRM_Delay, FT_VIDEO, gr_maybe_sync(), grGetMouseButtons(), GXHEADER::h, idle_loop(), idle_loop_secs(), OF::idx, INFO2, IsChannelMute(), Infin::List, max, MAX_X, MAX_Y, Mev, mm_close(), mm_decode_video(), mm_open_fp(), mm_video_info(), name, Name, NORM_TABLE, open_gamedat(), play_audio(), PlayAudio(), random, SCND_TABLE, screen, screen_dirty, seq_filename(), SHTS, Table::size, sizeof_oFGROUP, sOpen(), Defl::Sound, STEP, Swap16bit, Tick(), UpdateAudio(), vhptr, video_overlay, video_rect, GXHEADER::vptr, and GXHEADER::w.

void PlayVoice ( void   ) 

Definition at line 493 of file pace.c.

void PLevels ( char  side,
char  wh 
)

Definition at line 180 of file prefs.c.

References gxVirtualDisplay(), and vhptr.

void Port ( char  plr  ) 

Definition at line 910 of file port.c.

References av_block(), av_need_update_xy(), buffer, REGION::CD, Data, DrawSpaceport(), FadeIn(), FadeOut(), fin, fread_uint16_t(), get_time(), GetMse(), grSetMousePos(), Help(), HotKeyList, IDT, IKEY, K_ENTER, K_ESCAPE, key, M_SVPORT, M_USPORT, MapKey(), MAX_X, MAX_Y, mousebuttons, music_start, music_stop(), Name, Players::P, pal, pEXIT, PHead, PlayMusic(), pNEWMUSIC, pNOFADE, pNOREDRAW, BuzzData::Port, PORT_LaunchPad_A, PORT_MedicalCtr, PORT_VAB, PortOutLine(), PortRestore(), PortSel(), PortText(), pQUIT, pREDRAW, PreLoadMusic(), MOBJ::qty, random, MOBJ::Reg, save_game(), screen, Players::Season, sOpen(), SPOT_KILL, SPOT_LOAD, SpotCrap(), SUSPEND, Swap32bit, UpdateAudio(), Vab_Spot, vhptr, GXHEADER::vptr, x, BOUND::x1, BOUND::x2, XMAS, y, BOUND::y1, BOUND::y2, and Players::Year.

int port_exist ( int  port  ) 

void PortOutLine ( unsigned int  Count,
uint16_t *  buf,
char  mode 
)

void PortPal ( char  plr  ) 

Definition at line 406 of file port.c.

References fin, pal, PHead, sOpen(), and Swap32bit.

void PortPlace ( FILE *  fin,
long  table 
)

Definition at line 377 of file port.c.

References DV(), GV(), gxGetImage(), gxPutImage(), gxSET, GXHEADER::h, Img, local2, RLED_img(), Swap16bit, Swap32bit, vhptr, GXHEADER::vptr, and GXHEADER::w.

void PortRestore ( unsigned int  Count  ) 

Definition at line 833 of file port.c.

References av_need_update_xy(), PORTOUTLINE::loc, loc, max, MAX_X, MAX_Y, min, screen, and PORTOUTLINE::val.

char PortSel ( char  plr,
char  loc 
)

This is the code that controls the jump off point from the Space Ports to the various areas.

It basically assigns a help message then makes a call into the module which would have it's own event loop

Definition at line 1196 of file port.c.

References Admin(), Data, DoModem(), MissionType::Hard, Help(), Hospital(), IDT, IKEY, Intel(), LET_A, LET_M, LET_O, LET_R, LET_V, Limbo(), LMBld(), LOAD, MesCenter(), BuzzData::Mission, Mission_PrimaryBooster, MissionType::MissionCode, Moon(), Museum(), Option, Players::P, pEXIT, pNEWMUSIC, pNOFADE, pNOREDRAW, PORT_Admin, PORT_Airfield, PORT_Apollo, PORT_AstroComplex, PORT_BasicTraining, PORT_Capitol, PORT_Cemetery, PORT_Centrifuge, PORT_FlagPole, PORT_Gate, PORT_Gemini, PORT_Helipad, PORT_Jupiter, PORT_LaunchPad_A, PORT_LaunchPad_B, PORT_LaunchPad_C, PORT_LM, PORT_MedicalCtr, PORT_Mercury, PORT_MissionControl, PORT_Monument, PORT_Moon, PORT_Museum, PORT_Pentagon, PORT_Planetarium, PORT_Pool, PORT_Research, PORT_Satellite, PORT_SovMonumentAlt, PORT_SVHQ, PORT_Tracking, PORT_VAB, PORT_ViewingStand, PORT_XMS, PORT_Zond, pQUIT, pREDRAW, Programs(), put_serial(), QUIT, RD(), Request(), Review(), RUSH, Rush(), SatBld(), Players::Season, ShowPad(), Train(), VAB(), Vab_Spot, Viewing(), and Players::Year.

void PortText ( int  x,
int  y,
char *  txt,
char  col 
)

Definition at line 566 of file port.c.

References grSetColor(), PrintAt(), and RectFill().

char PosGoal ( char *  PVal  ) 

Definition at line 523 of file prest.c.

References PSTS.

char PosGoal_Check ( char *  PVal  ) 

Definition at line 779 of file prest.c.

References PSTS.

void Prefs ( int  where  ) 

Definition at line 237 of file prefs.c.

References Defl::Anim, Defl::Ast1, Defl::Ast2, AV_ALL_CHANNELS, AV_SOUND_CHANNEL, av_sync(), BinT(), buffer, BUFFER_SIZE, CLevels(), Data, Players::Def, delay(), DispChr(), DrawPrefs(), DV(), EditAst(), FadeIn(), FadeOut(), fin, getch(), GetMouse(), grMoveTo(), grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, gxVirtualDisplay(), HModel(), IDT, IKEY, InBox(), Defl::Input, K_ENTER, K_SPACE, key, Defl::Lev1, Defl::Lev2, Levels(), local2, M_DRUMSM, M_FILLER, M_SOVTYP, mousebuttons, Defl::Music, music_set_mute(), music_start, music_stop(), MuteChannel(), BuzzData::Name, Name, OutBox(), Players::P, pal, PLevels(), plr, Defl::Plr1, Defl::Plr2, PrintAt(), BuzzData::Probe, RectFill(), sOpen(), Defl::Sound, vhptr, WaitForMouseUp(), x, and y.

FILE* PreLoadAnim ( char  plr,
char  mode 
)

Referenced by News().

void PreLoadMusic ( char  val  ) 

Referenced by Port().

void PresPict ( char  poff  ) 

Definition at line 192 of file review.c.

Referenced by DrawReview().

int PrestCheck ( char  plr  ) 

Returns the amount of prestige added.

Note:
Assumes that the Mis Structure is Loaded

Definition at line 159 of file prest.c.

References PrestType::Add, Data, mStr::Days, mStr::Doc, BuzzData::DurLevel, mStr::EVA, PrestType::Goal, mStr::mEq, Mis, other, Players::P, mStr::PCat, and Players::Prestige.

char PrestMin ( char  plr  ) 

Definition at line 110 of file prest.c.

References Data, mStr::Days, Players::Def, BuzzData::DurLevel, mStr::Index, isMile, Defl::Lev1, Defl::Lev2, maxx, MILE_EORBIT, MILE_LFLY, MILE_LLAND, MILE_LORBIT, MILE_LPASS, MILE_LPL, MILE_MAN, MILE_OSAT, Mis, Players::P, mStr::PCat, and PrestMap().

int PrestNeg ( char  plr,
int  i 
)

Definition at line 553 of file prest.c.

References PrestType::Add, Data, PrestType::Goal, Prest_Upd::HInd, Mev, MP, Option, Players::P, MisEval::pad, BuzzData::PastMis, PrestType::Points, Prest_Upd::Poss, Prest_Upd::PossVal, Players::Prestige, and Prest_Upd::Qty.

void PrintAt ( int  x,
int  y,
char *  s 
)

Definition at line 672 of file main.c.

References av_need_update_xy(), DispChr(), and grMoveTo().

void PrintAtKey ( int  x,
int  y,
char *  s,
char  val 
)

Definition at line 683 of file main.c.

References DispChr(), grMoveTo(), grSetColor(), and PrintAt().

void PrintHist ( char *  buf  ) 

Definition at line 660 of file endgame.c.

References DispChr(), grMoveTo(), and grSetColor().

void PrintOne ( char *  buf,
char  tken 
)

Definition at line 672 of file endgame.c.

References DispChr(), grMoveTo(), and grSetColor().

void Programs ( char  plr,
char  prog 
)

Definition at line 459 of file ast4.c.

References Astros::Assign, AstLevel(), AstNames(), BuzzData::AstroCount, BarSkill(), CheckProgram(), ClearIt(), BuzzData::Crew, Astros::Crew, Data, delay(), DispBig(), DispLeft(), DispNum(), DN_ARROW, DrawPosition(), DrawProgs(), FadeIn(), Flts(), FltsTxt(), BuzzData::Gcnt, GetMouse(), grSetColor(), gxDisplayVirtual(), gxVirtualDisplay(), Help(), IDT, IKEY, InBox(), IOBox(), K_ENTER, key, M_PRGMTRG, max, Astros::Mood, mousebuttons, Astros::Moved, music_start, music_stop(), Astros::Name, NewAstList(), OutBox(), Players::P, pal, BuzzData::Pool, Astros::Prime, PrintAt(), RectFill(), ShBox(), Astros::Task, Astros::Una, UP_ARROW, vhptr, WaitForMouseUp(), x, and y.

void ProgramVoting ( char  plr  ) 

Definition at line 587 of file aimast.c.

References BuzzData::AIPrim, Data, Players::P, and random.

void Progress ( char  mode  ) 

void purge_in ( void   ) 

void Q_Patch ( void   ) 

Definition at line 147 of file futbub.c.

References Bub_Num, drawBspline(), and SEG.

char QUnit ( char  hwx,
char  unx,
char  plr 
)

Definition at line 428 of file rdplex.c.

Referenced by DrawRD(), and RD().

void RankMe ( char  plr  ) 

Definition at line 1257 of file hardef.c.

References delay(), DispBig(), DrawRank(), FadeIn(), FadeOut(), GetMouse(), grLineTo(), grMoveTo(), grSetColor(), gxClearDisplay(), K_ENTER, key, Option, pal, PortPal(), PrintAt(), RectFill(), ShBox(), WaitForMouseUp(), x, and y.

char RD ( char  plr  ) 

Definition at line 199 of file rdplex.c.

Referenced by HPurc(), and PortSel().

void RDafford ( char  plr,
int  Class,
int  index 
)

Definition at line 556 of file aipur.c.

References AIQUnit(), BuzzData::Buy, BuzzData::Cash, Data, BuzzData::Manned, MaxChk(), Equipment::MaxRD, BuzzData::Misc, Players::P, BuzzData::Probe, Equipment::RDCost, RDUnit(), BuzzData::Rocket, and Equipment::Safety.

void RDButTxt ( int  v1,
int  val,
char  plr 
)

Definition at line 180 of file rdplex.c.

Referenced by RD().

int RDMods ( int  p,
int  prog,
int  type,
int  val 
)

Definition at line 173 of file news_sup.c.

References Equipment::Base, Data, Name, Equipment::Num, Players::P, BuzzData::Probe, Equipment::RDCost, and Equipment::Safety.

void RDPrograms ( char  plr  ) 

Definition at line 319 of file aimast.c.

References Equipment::Damage, Data, Equipment::DCost, BuzzData::Manned, BuzzData::Misc, Equipment::Num, Players::P, BuzzData::Probe, RDafford(), and BuzzData::Rocket.

char RDUnit ( char  rhard,
char  runit,
char  r,
char  plr 
)

Definition at line 452 of file rdplex.c.

Referenced by RD(), and RDafford().

void Read_Config ( void   ) 

void Read_CRC ( void   ) 

void ReadMsg ( void   ) 

void ReButs ( char  old,
char  nw 
)

Definition at line 703 of file intel.c.

References but, gxVirtualDisplay(), InBox(), and OutBox().

void Records ( char  plr  ) 

Definition at line 67 of file records.c.

Referenced by Museum(), and Stat().

void RectFill ( int  x1,
int  y1,
int  x2,
int  y2,
char  col 
)

Definition at line 843 of file main.c.

References grClearArea(), and grSetBkColor().

int recv_file ( int(*)(int c, long p, char *s)  error_handler,
char *  path 
)

void RecvFirst ( void   ) 

void RecvSide ( char  side  ) 

void RemoveUnhappy ( char  plr  ) 

Remove unhappy astro's.

Definition at line 511 of file aipur.c.

References Astros::Assign, BuzzData::AstroCount, ASTRONAUT_CREW_MAX, ASTRONAUT_FLT_CREW_MAX, ASTRONAUT_MOOD_THRESHOLD, ASTRONAUT_POOLS, BuzzData::Crew, Data, Astros::Mood, Players::P, BuzzData::Pool, Astros::Status, and Astros::Una.

void Replace_Snaut ( char  plr  ) 

Definition at line 56 of file news_suq.c.

References Astros::Assign, Astros::Crew, BuzzData::Crew, Data, BuzzData::Gcnt, Astros::Moved, Astros::oldAssign, Players::P, BuzzData::Pool, Astros::Prime, Astros::Special, Astros::Status, and Astros::Task.

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.

Referenced by Draw_Mis_Stats(), NewEnd(), PlayFirst(), and Train().

char Request ( char  plr,
char *  s,
char  md 
)

Definition at line 1307 of file port.c.

References delay(), DispBig(), DV(), GetMouse(), GetMse(), grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, InBox(), IOBox(), key, mousebuttons, PrintAt(), ShBox(), x, and y.

char RequestX ( char *  s,
char  md 
)

Definition at line 1220 of file admin.c.

References delay(), DispBig(), DV(), GetMouse(), grSetColor(), GV(), gxGetImage(), gxPutImage(), gxSET, InBox(), IOBox(), key, mousebuttons, PrintAt(), ShBox(), WaitForMouseUp(), x, and y.

void ResetRush ( int  mode,
int  val 
)

Definition at line 446 of file rush.c.

Referenced by Rush().

char ResolveEvent ( char  plr  ) 

Definition at line 832 of file news.c.

References BuzzData::BadCard, Data, Players::P, random, and REvent().

void RestoreDir ( void   ) 

int RetFile ( char  plr,
int  card 
)

Definition at line 464 of file budget.c.

References buffer, BUFFER_SIZE, DispNum(), fin, grSetColor(), ONEWS::offset, PrintAt(), RectFill(), ONEWS::size, and sOpen().

char REvent ( char  plr  ) 

Definition at line 96 of file news_suq.c.

References BuzzData::AstroCount, MissionType::BCrew, BuzzData::Budget, BuzzData::Cash, Astros::CL, ClrMiss(), Astros::Compat, Players::Count, Astros::CR, BuzzData::Crew, MissionType::Crew, DamMod(), Data, Equipment::Delay, Players::Events, evflag, Astros::Face, BuzzData::Female, fin, BuzzData::Future, BuzzData::FuturePlans, GetMisType(), Astros::Group, Astros::IDelay, Equipment::InitCost, MissionType::Joint, mStr::Jt, BuzzData::LaunchFacility, BuzzData::Manned, Equipment::MaxRD, Equipment::MaxSafety, MissionType::Men, Mis, BuzzData::Mission, MissionType::MissionCode, Astros::Mood, Astros::Name, Equipment::Name, Name, NMod(), Equipment::Num, BuzzData::Other, Players::P, MissionType::PCrew, BuzzData::Pool, Astros::Prime, BuzzData::Probe, MissionType::Prog, random, Astros::RDelay, RDMods(), BuzzData::RDMods, BuzzData::RDYear, Replace_Snaut(), BuzzData::Rocket, Equipment::Safety, SaveMods(), Astros::Service, sOpen(), Astros::Special, Astros::Status, Steal(), Swap16bit, BuzzData::TurnOnly, Equipment::UnitCost, x, xMODE, xMODE_CLOUDS, xMODE_SPOT_ANIM, and Players::Year.

void Review ( char  plr  ) 

Definition at line 150 of file review.c.

Referenced by MainLoop(), and PortSel().

void RewindOne ( char  plr,
int *  where 
)

Definition at line 528 of file museum.c.

References Data, DrawMisHist(), Players::P, and BuzzData::PastMis.

void RghtMoon ( char  x,
char  y 
)

Definition at line 305 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

long RLEC ( char *  src,
char *  dest,
unsigned int  src_size 
)

Referenced by EndOfTurnSave().

int RLED ( void src,
void dest,
unsigned int  src_size 
)

Definition at line 9 of file mkmovie.c.

Referenced by do_item(), FileAccess(), frm_get2(), main(), and news_next_frame().

void RLEE ( void dest,
void src,
unsigned int  src_size 
)

void RLEF ( void dest,
void src,
unsigned int  src_size 
)

void Rout_Debug ( int  line,
char *  file 
)

void RTArrow ( int  x1,
int  y1 
)

Definition at line 801 of file main.c.

References grDrawLine(), and grSetColor().

void Rush ( char  plr  ) 

Definition at line 236 of file rush.c.

Referenced by MisReq(), and PortSel().

void S_Patch ( char  x  ) 

Definition at line 415 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void SafetyRecords ( char  plr,
int  temp 
)

Definition at line 385 of file records.c.

Referenced by Launch().

void SatBld ( char  plr  ) 

Definition at line 435 of file ast0.c.

References Data, delay(), FadeIn(), GetMouse(), IDT, IKEY, InBox(), K_ENTER, key, LT_ARROW, M_HISTORY, music_start, music_stop(), Equipment::Num, OutBox(), Players::P, pal, PlanText(), BuzzData::Probe, RT_ARROW, SatDraw(), SatText(), WaitForMouseUp(), x, and y.

void SatDraw ( char  plr  ) 

Definition at line 123 of file ast0.c.

References buffer, Data, DispBig(), DV(), FadeOut(), fin, FlagSm(), grLineTo(), grMoveTo(), grSetColor(), GV(), gxClearDisplay(), gxPutImage(), gxSET, gxVirtualDisplay(), GXHEADER::h, InBox(), IOBox(), loc, BuzzData::Misc, Equipment::Num, Players::P, pal, PrintAt(), BuzzData::Probe, RectFill(), RLED_img(), ShBox(), sOpen(), SwapPatchHdrSmall, GXHEADER::vptr, and GXHEADER::w.

void SatText ( char  plr  ) 

Definition at line 205 of file ast0.c.

References Data, DispNum(), Equipment::Failures, grSetColor(), BuzzData::Misc, Equipment::Num, Players::P, PrestType::Place, PlanText(), PrestType::Points, Players::Prestige, PrintAt(), BuzzData::Probe, Equipment::Safety, Equipment::Steps, and Equipment::Used.

void save_game ( char *  filename  ) 

Definition at line 837 of file admin.c.

References Data, EndOfTurnSave(), fread_dyn(), plr, RaceIntoSpace_Signature, sOpen(), WARNING1, and WARNING2.

void SaveFirst ( char   ) 

void SaveIntel ( char  p,
char  prg,
char  ind 
)

Definition at line 464 of file intel.c.

References BuzzData::Intelligence::cdex, BuzzData::Intelligence::code, BuzzData::Intelligence::cur, Data, BuzzData::Intelligence::index, BuzzData::Intelligence::num, Players::P, BuzzData::PastIntel, BuzzData::Intelligence::prog, random, BuzzData::Intelligence::sf, and BuzzData::Table.

void SaveMail ( void   ) 

Definition at line 1268 of file admin.c.

References AI, SaveFileHdr::compSize, SaveFileHdr::Country, Data, SaveFileHdr::dataSize, Players::Def, EMPTY_BODY, EndOfTurnSave(), fin, fOFF, GenerateTables(), GXHEADER::h, SaveFileHdr::ID, MAIL, MAX_REPLAY_ITEMS, BuzzData::Name, SaveFileHdr::Name, Name, NOTSAME, Players::P, Players::plr, plr, Defl::Plr1, Defl::Plr2, SaveFileHdr::PName, RaceIntoSpace_Signature, SAME_ABORT, Players::Season, SaveFileHdr::Season, sOpen(), SFInfo::Title, vhptr, GXHEADER::vptr, GXHEADER::w, Players::Year, SaveFileHdr::Year, and YES.

int SaveMods ( char  p,
char  prog 
)

Definition at line 197 of file news_sup.c.

References Data, BuzzData::Manned, BuzzData::Misc, Equipment::Name, Name, Equipment::Num, Players::P, BuzzData::Probe, BuzzData::Rocket, and Equipment::SaveCard.

void SaveSide ( char  side  ) 

void Scheduler ( char  plr  ) 

Definition at line 761 of file aimis.c.

References AIFuture(), BuzzData::WantList::Asp, Data, mStr::Days, BuzzData::Future, GetMisType(), mStr::Jt, BuzzData::LaunchFacility, Mis, MissionType::MissionCode, Players::P, BuzzData::WantList::Vle, and BuzzData::WList.

char Search ( char  plr,
char  m 
)

Definition at line 724 of file aimis.c.

References Data, BuzzData::M, and Players::P.

void Second ( int  nw,
int  lc 
)

Definition at line 1389 of file prefs.c.

References DispNum(), grSetColor(), Name, PrintAt(), and ManPool::Sex.

int SecondHard ( char  plr,
char  mode,
char  mis,
char  pad 
)

Definition at line 465 of file crew.c.

References Data, mStr::Days, delay(), mStr::Doc, DrawHard(), MissionType::Duration, BuzzData::Future, GetMisType(), GetMouse(), Help(), InBox(), IOBox(), K_ENTER, key, mStr::Lun, BuzzData::Manned, MissionType::Men, mStr::mEq, Mis, mousebuttons, Equipment::Num, Players::P, MissionType::Prog, WaitForMouseUp(), x, and y.

void Seek_pOff ( int  where  ) 

Definition at line 151 of file port.c.

References MSPOT, mSPOT::pOff, pTable, sFin, and Swap32bit.

void Seek_sOff ( int  where  ) 

Definition at line 144 of file port.c.

References fread_SimpleHdr(), MSPOT, SimpleHdr::offset, sFin, sizeof_SimpleHdr, and mSPOT::sOff.

void SelectBest ( char  plr,
int  pos 
)

Select the best crew for the mission.

Definition at line 256 of file aipur.c.

References AIMaxSel, AIsel, ASTRO_POOL_LVL1, ASTRO_POOL_LVL2, ASTRO_POOL_LVL3, ASTRO_POOL_LVL4, ASTRO_POOL_LVL5, BuzzData::AstroCount, BuzzData::AstroDelay, BuzzData::AstroLevel, buffer, Astros::Cap, ManPool::Cap, Astros::CL, Astros::Compat, Astros::CR, Astros::Crew, Data, Astros::Docking, ManPool::Docking, EMPTY_BODY, ManPool::Endurance, Astros::Endurance, Astros::EVA, ManPool::EVA, Astros::Face, BuzzData::Female, fin, Astros::Group, Astros::LM, ManPool::LM, Astros::Mood, ManPool::Name, Astros::Name, Astros::oldAssign, Players::P, Astros::Pool, BuzzData::Pool, random, Astros::Sex, ManPool::Sex, sOpen(), Astros::Status, Astros::Task, Astros::TrainingLevel, and Astros::Una.

void SendFirst ( void   ) 

void set_baud ( long  baud  ) 

void set_data_format ( int  bits,
int  parity,
int  stopbit 
)

void Set_Dock ( char  plr,
char  total 
)

Definition at line 36 of file prest.c.

References Data, PrestType::Goal, loc, Mev, and Players::Prestige.

void set_dtr ( int  n  ) 

char Set_Goal ( char  plr,
char  which,
char  control 
)

Sets Goal Values and Sums into Data Structure control should be always called with a value of 0 Successful Steps Only Requires MEV to be packed.

Definition at line 295 of file prest.c.

References PrestType::Add, CAP1, CAP2, CAP3, CAP4, CAPMS, Data, DOCK, DUR_A, DUR_B, DUR_C, DUR_D, DUR_E, DUR_F, PastInfo::Duration, EORBIT, EWALK, PrestType::Goal, hero, HeroCheck(), Prest_Upd::HInd, BuzzData::History, PrestType::Indec, isMile, JU_FB, LLAND, LORBIT, LPASS, LUNFLY, MA_FB, MAIL, MANSPACE, MaxFail(), ME_FB, Mev, MILE_EORBIT, MILE_LFLY, MILE_LLAND, MILE_LORBIT, MILE_LPASS, MILE_LPL, MILE_MAN, MILE_OSAT, Prest_Upd::Mnth, PrestType::Month, MP, PrestType::mPlace, OLAB, Option, ORBSAT, BuzzData::Other, Players::P, MisEval::pad, BuzzData::PastMis, PrestType::Place, PrestType::Points, Prest_Upd::Poss, Prest_Upd::PossVal, Players::Prestige, PROBELAND, Prest_Upd::Qty, SA_FB, Set_Goal(), tMo, tYr, BuzzData::Udp, VE_FB, WOMAN, and PrestType::Year.

void Set_LM ( char  plr,
char  total 
)

Definition at line 46 of file prest.c.

References Data, BuzzData::LMpts, loc, Mev, and Players::P.

void set_port ( long  baud,
int  bits,
int  parity,
int  stopbit 
)

void SetEvents ( void   ) 

Definition at line 37 of file start.c.

Referenced by InitData().

void SetParameters ( void   ) 

Definition at line 214 of file future.c.

References Parameter::A, Parameter::B, Parameter::C, Parameter::D, Parameter::E, fin, Mis, sOpen(), V, Parameter::X, and Parameter::Z.

void SetRush ( int  mode,
int  val 
)

Definition at line 455 of file rush.c.

Referenced by DrawRush(), and Rush().

void SetVoiceVolume ( int  percent  ) 

void SetW ( char  ch  ) 

Definition at line 85 of file mc.c.

References Mev, MisEval::Name, and Name.

char SF ( char  plr,
char  m 
)

Definition at line 605 of file aipur.c.

References Data, BuzzData::Manned, Players::P, BuzzData::Probe, and Equipment::Safety.

void SFrame ( int  x1,
int  y1,
int  x2,
int  y2 
)

void SFWin ( int  x1,
int  y1,
int  x2,
int  y2,
char *  txt 
)

void ShBox ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 787 of file main.c.

References OutBox(), and RectFill().

void ShowAstroBack ( char  plr,
char *  where,
char *  where2 
)

Definition at line 900 of file museum.c.

References DisplAst().

void ShowAstroDown ( char  plr,
char *  where,
char *  where2 
)

Definition at line 892 of file museum.c.

References DisplAst().

void ShowAstroFor ( char  plr,
char *  where,
char *  where2 
)

Definition at line 908 of file museum.c.

References BuzzData::AstroCount, Data, DisplAst(), and Players::P.

void ShowAstrosHist ( char  plr  ) 

Definition at line 730 of file museum.c.

References astcomp(), BuzzData::AstroCount, buffer, Data, delay(), DispBig(), DisplAst(), DisplAstData(), Display_ARROW(), DownAstroData(), DV(), FadeIn(), FadeOut(), FlagSm(), GetMouse(), grSetColor(), GV(), gxClearDisplay(), gxGetImage(), InBox(), IRBox, K_ENTER, key, Name, ORBox, OutBox(), Players::P, pal, PatchMe(), pButton, BuzzData::Pool, PrintAt(), RectFill(), ShBox(), ShowAstroBack(), ShowAstroDown(), ShowAstroFor(), ShowAstroUp(), UpAstroData(), vhptr2, WaitForMouseUp(), x, and y.

void ShowAstroUp ( char  plr,
char *  where,
char *  where2 
)

Definition at line 884 of file museum.c.

References BuzzData::AstroCount, Data, DisplAst(), and Players::P.

void ShowEvt ( char  plr,
char  crd 
)

Definition at line 1098 of file news.c.

References DrawTopNewsBox(), fread_uint32_t(), MAX_X, min, news_rect, rNews::offset, pal, screen, and sOpen().

void ShowHard ( char  plr  ) 

Definition at line 89 of file hardef.c.

References Del_RD_BUT(), DispBig(), DrawHardef(), FadeIn(), FadeOut(), GetMouse(), GradRect(), grPutPixel(), grSetColor(), HInfo(), IDT, IKEY, InBox(), K_ENTER, key, mousebuttons, OutBox(), pal, PInfo(), place, PrintAt(), ReButs(), RectFill(), WaitForMouseUp(), x, and y.

void ShowPad ( char  plr,
char  pad 
)

Definition at line 257 of file radar.c.

Referenced by PortSel().

void ShowPrest ( char  plr  ) 

Definition at line 175 of file museum.c.

References BackOne(), Button2, Data, delay(), DispBig(), DNArrow(), DPrest(), FadeIn(), FadeOut(), ForOne(), GetMouse(), grSetColor(), gxClearDisplay(), IDT, IKEY, InBox(), IOBox(), K_ENTER, key, Move2(), OutBox(), pal, pButton, PrestType::Points, PortPal(), Players::Prestige, PrintAt(), RectFill(), ShBox(), TPoints, UPArrow(), WaitForMouseUp(), x, and y.

void ShowRkt ( char *  Name,
int  sf,
int  qty,
char  mode 
)

Definition at line 347 of file vab.c.

Referenced by VAB().

void ShowSpHist ( char  plr  ) 

Definition at line 418 of file museum.c.

References Data, delay(), DispBig(), Display_ARROW(), DrawMisHist(), FadeIn(), FadeOut(), FastOne(), FlagSm(), FullFast(), FullRewind(), GetMouse(), grSetColor(), BuzzData::History, InBox(), IOBox(), IRBox, K_ENTER, key, Mission_Data_Buttons(), PastInfo::MissionYear, PastInfo::Month, ORBox, OutBox(), Players::P, pal, BuzzData::PastMis, PatchMe(), pButton, PrintAt(), RewindOne(), screen, Players::Season, WaitForMouseUp(), x, y, and Players::Year.

void ShowUnit ( char  hw,
char  un,
char  plr 
)

Definition at line 481 of file rdplex.c.

Referenced by BuyUnit(), DrawHPurc(), DrawRD(), HPurc(), and RD().

void ShowVA ( char  f  ) 

Definition at line 324 of file vab.c.

Referenced by VAB().

char Skill ( char  plr,
char  type 
)

Definition at line 365 of file aipur.c.

References Astros::Assign, BuzzData::AstroCount, Astros::Cap, Data, Astros::Docking, Astros::EVA, Astros::LM, Players::P, BuzzData::Pool, Astros::Prime, and Astros::Status.

void SmHardMe ( char  plr,
int  x,
int  y,
char  prog,
char  planet,
unsigned char  coff 
)

Definition at line 288 of file place.c.

References DV(), GV(), gxGetImage(), gxPutImage(), gxSET, local2, pal, SmHardMe(), sOpen(), SwapPatchHdrSmall, GXHEADER::vptr, and GXHEADER::w.

char SN ( char  plr,
char  m 
)

Definition at line 620 of file aipur.c.

References Data, BuzzData::Manned, Equipment::Num, Players::P, and BuzzData::Probe.

void Special ( char  p,
int  ind 
)

Definition at line 184 of file intel.c.

References grSetColor(), PrintAt(), and TopSecret().

void SpecialEnd ( void   ) 

Definition at line 701 of file endgame.c.

References buffer, BUFFER_SIZE, delay(), DispBig(), FadeIn(), FlagSm(), GetMouse(), grSetColor(), gxClearDisplay(), HistFile(), InBox(), IOBox(), K_ENTER, key, LoserPict(), M_BADNEWS, music_start, music_stop(), pal, PrintAt(), PrintOne(), RectFill(), ShBox(), WaitForMouseUp(), x, and y.

void SpotCrap ( char  loc,
char  mode 
)

Definition at line 167 of file port.c.

References AV_SOUND_CHANNEL, DV(), GV(), gxPutImage(), gxSET, gxVirtualDisplay(), gxVirtualScale(), gxVirtualVirtual(), sIMG::h, IsChannelMute(), MAX_X, MAX_Y, minn, MSPOT, PlayAudio(), pLoc, PName, sCount, screen, Seek_pOff(), Seek_sOff(), sFin, sImgOld, SimpleHdr::size, sOpen(), sPathOld, SPOT_DONE, SPOT_KILL, SPOT_LOAD, SPOT_STEP, SpotCrap(), StopAudio(), StopVoice(), SUSPEND, Swap16bit, Swap32bit, vhptr, GXHEADER::vptr, GXHEADER::w, sIMG::w, sPATH::xPut, and sPATH::yPut.

void SRPrintAt ( int  x,
int  y,
char *  text,
char  fgd,
char  bck 
)

Definition at line 35 of file rdplex.c.

void Stat ( char  Win  ) 

Definition at line 101 of file aipur.c.

References AI, BuzzData::AstroCount, Data, delay(), DrawStatistics(), GetMouse(), IDT, IKEY, InBox(), K_ENTER, key, Option, other, OutBox(), Players::P, RankMe(), Records(), ShowAstrosHist(), ShowHard(), ShowPrest(), ShowSpHist(), WaitForMouseUp(), x, and y.

int Steal ( int  p,
int  prog,
int  type 
)

???

Parameters:
type 1:postive -1:negative search

Definition at line 34 of file news_sup.c.

References Equipment::Base, Data, EMPTY_BODY, BuzzData::Manned, BuzzData::Misc, Equipment::Name, Name, Equipment::Num, other, Players::P, BuzzData::Probe, random, BuzzData::Rocket, and Equipment::Safety.

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

Definition at line 1003 of file mis_c.c.

References AHead, aLoc, BHead, cFrame, gxPutImage(), gxSET, gxXOR, AnimType::h, GXHEADER::h, mode, RLED_img(), Swap32bit, tFrames, vhptr, GXHEADER::vptr, AnimType::w, and GXHEADER::w.

void StopAudio ( char  mode  ) 

Referenced by SpotCrap().

void StopMusic ( void   ) 

void StopVoice ( void   ) 

Definition at line 510 of file pace.c.

char SupGoal ( char *  PVal  ) 

Definition at line 543 of file prest.c.

References SSTS.

void SwapRec ( int  Rc,
int  pl1,
int  pl2 
)

Definition at line 353 of file records.c.

Referenced by RecChange(), SafetyRecords(), and UpdateRecords().

void TestFMis ( int  j,
int  i 
)

Definition at line 974 of file start.c.

Referenced by UpdAll(), and Update().

void TogBox ( int  x,
int  y,
int  st 
)

Definition at line 271 of file future.c.

References DEBUG1, DEBUG4, grLineTo(), grMoveTo(), and grSetColor().

void Toggle ( int  wh,
int  i 
)

set the toggles???

Parameters:
wh the button
i in or out

Definition at line 245 of file future.c.

References DEBUG1, DEBUG3, and gxVirtualDisplay().

void Toggle_Cfg ( int  opt,
int  old 
)

void toGrey ( int  start  ) 

void TopSecret ( char  plr,
char  poff 
)

Definition at line 431 of file intel.c.

References buffer, DV(), fread_SimpleHdr(), GV(), gxPutImage(), gxSET, GXHEADER::h, local2, SimpleHdr::offset, pal, RLED_img(), SimpleHdr::size, sizeof_SimpleHdr, sOpen(), table, GXHEADER::vptr, and GXHEADER::w.

void TrackPict ( char  mode  ) 

void Train ( char  plr,
int  level 
)

Definition at line 160 of file ast3.c.

References Astros::Assign, BuzzData::AstroCount, Astros::Cap, Data, delay(), DispLeft(), DN_ARROW, Astros::Docking, DrawTrain(), Astros::Endurance, Astros::EVA, FadeIn(), Astros::Focus, GetMouse(), Help(), InBox(), K_ENTER, key, Astros::LM, M_ASSEMBLY, M_ASTTRNG, M_DRUMSM, mousebuttons, music_start, music_stop(), OutBox(), Players::P, pal, BuzzData::Pool, RectFill(), Replay(), ShBox(), Astros::Status, Train(), Astros::TrainingLevel, TrainText(), UP_ARROW, WaitForMouseUp(), x, and y.

void TrainText ( char  plr,
int  astro,
int  cnt 
)

Definition at line 101 of file ast3.c.

References Astros::Active, AstFaces(), Astros::Cap, Data, DispNum(), Astros::Docking, Astros::Endurance, Astros::EVA, Astros::Face, grMoveTo(), Astros::Group, grSetColor(), Astros::LM, Astros::Name, Players::P, BuzzData::Pool, PrintAt(), RectFill(), and Astros::Status.

void TransAstro ( char  plr,
int  inx 
)

Definition at line 392 of file aipur.c.

References Astros::Assign, BuzzData::AstroCount, CheckAdv(), BuzzData::Crew, Astros::Crew, Data, BuzzData::Gcnt, Astros::Hero, max, Astros::Mood, Astros::oldAssign, Players::P, BuzzData::Pool, Astros::Prime, Astros::RetReas, Skill(), Astros::Status, and Astros::Una.

int U_AllotPrest ( char  plr,
char  mis 
)

Definition at line 811 of file prest.c.

References bIDX, Check_Dock(), Check_Photo(), Data, GetMisType(), MaxFail(), Equipment::MaxSafety, minn, BuzzData::Misc, BuzzData::Mission, MissionType::MissionCode, MissionType::Month, other, Players::P, PrestNeg(), Equipment::Safety, Set_Goal(), tIDX, tMo, tYr, and Players::Year.

void U_GetVoice ( char  val  ) 

void U_UpdateVoice ( void   ) 

void UPArrow ( int  x1,
int  y1 
)

Definition at line 794 of file main.c.

References grDrawLine(), and grSetColor().

void UpAstroData ( char  plr,
char *  where,
char *  where2 
)

Definition at line 1037 of file museum.c.

References DisplAstData(), and Missions().

void UpdAll ( char  side  ) 

Definition at line 826 of file start.c.

void Update ( void   ) 

Definition at line 673 of file start.c.

Referenced by MainLoop().

void UpdateAudio ( void   ) 

Definition at line 545 of file sdl.c.

void UpdateFirst ( void   ) 

void UpdateHardTurn ( char  plr  ) 

Update equipment.

Todo:
limit of hardcoded 28 hardware types
Todo:
Should this not handle all four types of hardware?

Definition at line 1011 of file start.c.

Referenced by AstroTurn().

void UpdateMusic ( void   ) 

void UpdatePortOverlays ( void   ) 

Definition at line 574 of file port.c.

References Astros::Active, BuzzData::AstroCount, BuzzData::AstroLevel, BuzzData::Budget, Data, PrestType::Goal, BuzzData::Manned, maxx, Equipment::Num, NUM_PLAYERS, Players::P, BuzzData::Pool, BuzzData::Port, PORT_Admin, PORT_Airfield, PORT_AstroComplex, PORT_BasicTraining, PORT_Centrifuge, PORT_Helipad, PORT_LM, PORT_MedicalCtr, PORT_Mercury, PORT_MissionControl, PORT_Museum, PORT_Planetarium, PORT_Pool, PORT_Research, PORT_Satellite, PORT_Tracking, PORT_VAB, Players::Prestige, and BuzzData::Probe.

void UpdateRecords ( char  Ty  ) 

Definition at line 435 of file records.c.

Referenced by MainLoop().

void UpDateTable ( char  plr  ) 

Definition at line 516 of file intel.c.

References Data, ImpHard(), BuzzData::LMpts, PrestType::mPlace, other, Players::P, PrestType::Place, Players::Prestige, and random.

void UpdateVoice ( void   ) 

void UpdPrestige (  ) 

void Upload ( void   ) 

int UpSearchRout ( int  num,
char  plr 
)

Definition at line 365 of file future.c.

References MisEval::E, F1, F2, F3, F4, F5, JupFlag, MarFlag, SatFlag, and V.

void VAB ( char  plr  ) 

Definition at line 591 of file vab.c.

Referenced by PortSel().

void VenMarMerc ( char  x  ) 

Definition at line 209 of file futbub.c.

References Bd(), Bub_Num, drawBspline(), and SEG.

void VerifyCrews ( char  plr  ) 

Definition at line 1040 of file main.c.

References MissionType::BCrew, BuzzData::Gcnt, MissionType::Joint, BuzzData::Mission, MissionType::MissionCode, Players::P, MissionType::part, MissionType::PCrew, and MissionType::Prog.

void VerifyData ( void   ) 

Definition at line 52 of file mc.c.

References Data, Equipment::ID, Equipment::IDX, BuzzData::Manned, BuzzData::Misc, NUM_PLAYERS, Players::P, BuzzData::Probe, and BuzzData::Rocket.

void VerifySF ( char  plr  ) 

Definition at line 1028 of file main.c.

References Equipment::Base, Equipment::MaxSafety, Players::P, BuzzData::Probe, and Equipment::Safety.

void Viewing ( char  plr  ) 

Definition at line 489 of file budget.c.

References bzdelay(), Data, delay(), DELAYCNT, DN_ARROW, DrawViewing(), DrawVText(), BuzzData::eCount, FadeIn(), GetMouse(), InBox(), K_ENTER, K_ESCAPE, key, LT_ARROW, M_SOVTYP, mousebuttons, music_start, music_stop(), OutBox(), Players::P, pal, RetFile(), RT_ARROW, UP_ARROW, WaitForMouseUp(), x, and y.

void VVals ( char  plr,
char  tx,
Equipment EQ,
char  v4,
char  v5 
)

Definition at line 1042 of file vab.c.

Referenced by BuildVAB(), and LMAdd().

void WaitForKeyOrMouseDown ( void   ) 

Definition at line 653 of file main.c.

References GetMouse(), key, and mousebuttons.

void WaitForMouseUp ( void   ) 

Definition at line 646 of file main.c.

References GetMouse(), and mousebuttons.

char Was_Goal ( char  total,
char  which 
)

???

Note:
Requires MEV to be packed Only checks goal steps :: returns GOAL value Does not check if entire mission is a success

Definition at line 233 of file prest.c.

References DOCK, EORBIT, EWALK, JU_FB, LLAND, loc, LORBIT, LPASS, LUNFLY, LWALK, MA_FB, MANSPACE, ME_FB, Mev, minn, OLAB, ORBSAT, PROBELAND, SA_FB, MisEval::trace, VE_FB, Was_Goal(), and x.

void WaveFlagDel ( void   ) 

Definition at line 335 of file port.c.

References DV().

void WaveFlagSetup ( void   ) 

Definition at line 324 of file port.c.

References fin, GV(), GXHEADER::h, RLED_img(), sOpen(), vhptr, GXHEADER::vptr, and GXHEADER::w.

char WhichPart ( char  plr,
int  which 
)

Definition at line 107 of file mc2.c.

References Data, and Players::Prestige.

void Write_Config ( void   ) 

void WriteMsg ( void   ) 

void WriteRecord ( int  i,
int  j,
int  k,
int  temp 
)

Definition at line 321 of file records.c.

Referenced by RecChange(), SafetyRecords(), and UpdateRecords().

int xmit_file ( int(*)(int c, long p, char *s)  error_handler,
char *  files[] 
)

void XSpec ( char  plr,
char  mis,
char  year 
)

Definition at line 163 of file intel.c.

References Data, mStr::Days, mStr::Doc, mStr::Dur, GetMisType(), grSetColor(), mStr::Jt, Mis, MissionName(), Players::P, BuzzData::PastIntel, PrintAt(), BuzzData::Intelligence::sf, and TopSecret().


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