00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #include "mmfile.h"
00020 #include "data.h"
00021
00022
00023
00024
00025 #define MR grMoveRel
00026 #define LR grLineRel
00027 #define PP grPutPixel
00028 #define LT grLineTo
00029 #define MT grMoveTo
00030 #define SC grSetColor
00031 #define BUFFER_SIZE 20*1024
00032 #define MINSAFETY 50
00033 #define READYFACTOR 48
00034 #define MAXBUB 30
00035 #define pline(a,b,c,d) {grMoveTo(a,b) ; grLineTo(c,d);}
00036 #define other(a) abs( (a)-1 )
00037 #define maxx(a,b) (((a) > (b)) ? (a) : (b))
00038 #define minn(a,b) (((a) < (b)) ? (a) : (b))
00039 #define MisStep(a,b,c) PrintAt((a),(b),S_Name[(c)])
00040
00041 #define VBlank() do{}while(0)
00042
00043 #define isMile(a,b) Data->Mile[a][b]
00044
00045 #ifndef BYTE
00046 #define BYTE unsigned char
00047 #endif
00048 #ifndef WORD
00049 #define WORD unsigned short
00050 #endif
00051
00052 #define xMODE_HIST 0x0001
00053 #define xMODE_CHEAT 0x0002
00054 #define xMODE_NOFAIL 0x0020
00055 #define xMODE_TOM 0x0040
00056 #define xMODE_DOANIM 0x0080
00057 #define xMODE_NOCOPRO 0x00800
00058 #define xMODE_PUSSY 0x0400
00059 #define xMODE_CLOUDS 0x1000
00060 #define xMODE_SPOT_ANIM 0x2000
00061
00062 #define HIST (xMODE&xMODE_HIST)
00063 #define CHEAT (xMODE&xMODE_CHEAT)
00064 #define NOFAIL (xMODE&xMODE_NOFAIL)
00065 #define TOM (xMODE&xMODE_TOM)
00066 #define DOANIM (xMODE&xMODE_DOANIM)
00067 #define NOCOPRO (xMODE&xMODE_NOCOPRO)
00068 #define PUSSY (xMODE&xMODE_PUSSY)
00069
00070
00071
00072 #define UP_ARROW 0x4800
00073 #define DN_ARROW 0x5000
00074 #define RT_ARROW 0x4D00
00075 #define LT_ARROW 0x4B00
00076 #define K_HOME 0x4700
00077 #define K_END 0x4F00
00078 #define K_ENTER 0x000D
00079 #define K_QUIT 0x000F
00080 #define K_ESCAPE 0x001B
00081 #define K_SPACE 0x0020
00082
00083 #define ME_FB 2
00084 #define VE_FB 3
00085 #define MA_FB 4
00086 #define JU_FB 5
00087 #define SA_FB 6
00088
00089 #define MILE_OSAT 0
00090 #define MILE_MAN 1
00091 #define MILE_EORBIT 2
00092 #define MILE_LFLY 3
00093 #define MILE_LPL 4
00094 #define MILE_LPASS 5
00095 #define MILE_LORBIT 6
00096 #define MILE_LLAND 7
00097
00098 #define MANSPACE 27
00099 #define EORBIT 18
00100 #define LPASS 19
00101 #define LORBIT 20
00102 #define LRESCUE 21
00103 #define LLAND 22
00104 #define ORBSAT 0
00105 #define LUNFLY 1
00106 #define PROBELAND 7
00107
00108 #define DUR_F 8
00109 #define DUR_E 9
00110 #define DUR_D 10
00111 #define DUR_C 11
00112 #define DUR_B 12
00113 #define DUR_A -1 // No such experience
00114
00115 #define CAP1 13
00116 #define CAP2 14
00117 #define CAP3 15
00118 #define CAPMS 16
00119 #define CAP4 17
00120
00121 #define OLAB 23
00122 #define DOCK 24
00123 #define WOMAN 25
00124 #define EWALK 26
00125 #define LWALK 40
00126
00127 #define MAX_X 320
00128 #define MAX_Y 200
00129
00130
00131
00132
00133
00134
00135 void Admin(char plr);
00136 int GenerateTables(SaveGameType saveType);
00137 void FileAccess(char mode);
00138 char GetBlockName(char *Nam);
00139 void DrawFiles(char now,char loc,char tFiles);
00140 void BadFileType(void);
00141 void FileText(char *name);
00142 int FutureCheck(char plr,char type);
00143 char RequestX(char *s,char md);
00144 void SaveMail(void);
00145 void EndOfTurnSave(char *inData, int dataLen);
00146
00147
00148 void AIMaster(char plr);
00149 char NoFail(char plr);
00150 void RDPrograms(char plr);
00151 void CheckVoting(char plr);
00152 void KeepRD(char plr,int m);
00153 void PickModule(char plr);
00154 int FindNext(int x);
00155 void MoonVoting(char plr);
00156 int CheckLimit(char plr,char m);
00157 int CheckSafety(char plr,char m);
00158 void MoonProgram(char plr,char m);
00159 void ProgramVoting(char plr);
00160
00161
00162
00163 void AIVabCheck(char plr,char mis,char prog);
00164 char Best(void);
00165 int ICost(char plr,char h,char i);
00166 void CalcSaf(char plr,char vs);
00167 char Panic_Level(char plr,int *m_1,int *m_2);
00168 void NewAI(char plr,char frog);
00169 void AIFuture(char plr,char mis,char pad,char *prog);
00170 char Search(char plr,char m);
00171 void GetHard(char plr);
00172 char BoostCheck(char plr);
00173 void Scheduler(char plr);
00174 void AILaunch(char plr);
00175 void GetMisData(char which);
00176
00177
00178 void DrawStatistics(char Win);
00179 void Stat(char Win);
00180 void AIAstroPur(char plr);
00181 void SelectBest(char plr,int pos);
00182 void DumpAstro(char plr,int inx);
00183 char Skill(char plr,char type);
00184 void TransAstro(char plr,int inx);
00185 void CheckAdv(char plr);
00186 void RemoveUnhappy(char plr);
00187 int AIQUnit(short hwx,short unx,char plr);
00188 void RDafford(char plr,int Class,int index);
00189 int CheckMax(char plr,int m);
00190 char SF(char plr,char m);
00191 char SN(char plr,char m);
00192 void AIPur(char plr);
00193 int GenPur(char plr,int hwx,int unx);
00194
00195
00196 void toGrey(int start);
00197 int PCX_D (void *src,void *dest,unsigned src_size);
00198 long RLEC (char *src, char *dest, unsigned int src_size);
00199 void FadeIn(char wh,char *palx,int steps,int val,char mode);
00200 void FadeOut(char wh,char *palx,int steps,int val,char mode);
00201 int RLED (void *src, void *dest, unsigned int src_size);
00202
00203
00204 void Moon(char plr);
00205 void DispLeft(char plr,int lc,int cnt,int nw,int *ary);
00206 void BarSkill(char plr,int lc,int nw,int *ary);
00207 void SatDraw(char plr);
00208 void LMDraw(char plr);
00209 void SatText(char plr);
00210 void PlanText(char plr,char plan);
00211 void LMPict(char poff);
00212 void LMBld(char plr);
00213 void SatBld(char plr);
00214
00215
00216
00217 void DispEight(char now,char loc);
00218 void DispEight2(int nw,int lc,int cnt);
00219 void DrawAstCheck(char plr);
00220 void DrawAstSel(char plr);
00221 void AstSel(char plr);
00222
00223
00224
00225 void DrawLimbo(char plr);
00226 void Limbo(char plr);
00227 void Clear(void);
00228 void LimboText(char plr,int astro);
00229
00230
00231
00232 void DrawTrain(char plr,char lvl);
00233 void TrainText(char plr,int astro,int cnt);
00234 void Train(char plr,int level);
00235 void Hospital(char plr,int sel);
00236
00237
00238
00239 int ALSpec(int att);
00240 void AstLevel(char plr,char prog,char crew,char ast);
00241 void PlaceEquip(char plr,char prog);
00242 void DrawProgs(char plr,char prog);
00243 int CheckProgram(char plr,char prog);
00244 void FixPrograms(char plr);
00245 void DamProb(char plr,char prog,int chk);
00246 void CrewProb(char plr,char prog);
00247 void DrawPosition(char prog,int pos);
00248 void Programs(char plr,char prog);
00249 void ClearIt(void);
00250 void NewAstList(char plr,char prog,int M1,int M2,int M3,int M4);
00251 void AstStats(char plr,char man,char num);
00252 void AstNames(int man,char *name,char att);
00253 void Flts(char old,char nw);
00254 void FltsTxt(char nw,char col);
00255
00256
00257
00258 void DrawBudget(char player,char *pStatus);
00259 void BudPict(char poff);
00260 void DrawPastExp(char player,char *pStatus);
00261 void Budget(char player);
00262 void DrawViewing(char plr);
00263 void DrawVText(char got);
00264 int RetFile(char plr,int card);
00265 void Viewing(char plr);
00266
00267
00268
00269
00270 int HardCrewAssign(char plr,char Pad,int MisType,char NewType);
00271 void ClrFut(char plr,char pad);
00272 int AsnCrew(char plr,char pad,char part);
00273 void FutFltsTxt(char nw,char col);
00274 void FutSt(char plr,int pr,int p,int b);
00275 void FutSt2(int num,int type);
00276 void FutAstList(char plr,char men,int M1,int M2,int M3,int M4);
00277 void DrawHard(char mode,char pad,char mis,char plr);
00278 int HardRequest(char plr,char mode,char mis,char pad);
00279 int SecondHard(char plr,char mode,char mis,char pad);
00280
00281
00282
00283 char Burst(char win);
00284 void EndGame(char win,char pad);
00285 void Load_LenFlag(char win);
00286 void Draw_NewEnd(char win);
00287 void NewEnd(char win,char loc);
00288 void FakeWin(char win);
00289 void FakeHistory(char plr,char Fyear);
00290 void HistFile(char *buf,unsigned char bud);
00291 void PrintHist(char *buf);
00292 void PrintOne(char *buf,char tken);
00293 void AltHistory(char plr);
00294 void SpecialEnd(void);
00295 void EndPict(int x,int y,char poff,unsigned char coff);
00296 void LoserPict(char poff,unsigned char coff);
00297 void PlayFirst(char plr,char first);
00298
00299
00300
00301 void drawBspline(int segments,char color,...);
00302 void Draw_IJ(char w);
00303 void Draw_GH(char a,char b);
00304 void Draw_IJV(char w);
00305 void OrbIn(char a,char b,char c);
00306 void OrbMid(char a,char b,char c,char d);
00307 void Q_Patch(void);
00308 void OrbOut(char a,char b,char c);
00309 void LefEarth(char a,char b);
00310 void LefOrb(char a,char b,char c,char d);
00311 void Fly_By(void);
00312 void VenMarMerc(char x);
00313 void Draw_PQR(void);
00314 void Draw_PST(void);
00315 void Draw_LowS(char a,char b,char c,char x,char y,char z);
00316 void Draw_HighS(char x,char y,char z);
00317 void RghtMoon(char x,char y);
00318 void DrawLunPas(char x,char y,char z,char w);
00319 void DrawLefMoon(char x,char y);
00320 void DrawMoon(char x,char y,char z,char w,char j,char k,char l);
00321 void DrawZ(void);
00322 void DrawSTUV(char x,char y,char z,char w);
00323 void LefGap(char x);
00324 void S_Patch(char x);
00325
00326
00327 void Load_FUT_BUT(void);
00328 void DrawFuture(char plr,int mis,char pad);
00329 void ClearDisplay(void);
00330 int GetMinus(char plr);
00331 void SetParameters(void);
00332 void DrawLocks(void);
00333 void Toggle(int wh,int i);
00334 void TogBox(int x,int y,int st);
00335 void PianoKey(int X);
00336 void draw_Pie(int s);
00337 void PlaceRX(int s);
00338 void ClearRX(int s);
00339 int UpSearchRout(int num,char plr);
00340 int DownSearchRout(int num,char plr);
00341 void Future(char plr);
00342 void Bd(int x,int y);
00343 void DurPri(int x) ;
00344 void MissionName(int val,int xx,int yy,int len);
00345 void Missions(char plr,int X,int Y,int val,char bub);
00346 char FutBad(void);
00347
00348
00349 void DrawHardef(char plr);
00350 void ShowHard(char plr);
00351 void HDispIt(int x1,int y1,int x2, int y2,int s,int t);
00352 void PInfo(char plr,char loc);
00353 void HInfo(char plr,char loc,char w);
00354 void RankMe(char plr);
00355 void DrawRank(char plr);
00356 int CalcScore(char plr,char lvA,char lvB);
00357
00358
00359 void Intel(char plr);
00360 void MisIntel(char plr,char acc);
00361 void XSpec(char plr,char mis,char year);
00362 void Special(char p,int ind);
00363 void BackIntel(char p,char year);
00364 void HarIntel(char p,char acc);
00365 void TopSecret(char plr,char poff);
00366 void SaveIntel(char p,char prg,char ind);
00367 void Bad(char plr,char pt);
00368 void ImpHard(char plr,char hd,char dx);
00369 void UpDateTable(char plr);
00370 void IntelPhase(char plr,char pt);
00371 void DrawBre(char plr);
00372 void Bre(char plr);
00373 void Load_CIA_BUT(void);
00374 void DrawIStat(char plr);
00375 void ReButs(char old,char nw);
00376 void IStat(char plr);
00377 void DispIt(int x1,int y1,int x2, int y2,int s,int t);
00378 void IInfo(char plr,char loc,char w);
00379
00380
00381 void Credits(void);
00382 void Introd(void);
00383 void NextTurn(char plr);
00384
00385
00386
00387 void Rout_Debug(int line, char *file);
00388 void RestoreDir(void);
00389 int main(int argc, char *argv[]);
00390 int CheckIfMissionGo(char plr,char launchIdx);
00391 void oclose(int fil);
00392 void InitData(void);
00393 void MMainLoop(void);
00394 void Progress(char mode);
00395 void MainLoop(void);
00396 void DockingKludge(void);
00397 void OpenEmUp(void);
00398 void CloseEmUp(unsigned char error,unsigned int value);
00399 void FreePadMen(char plr,struct MissionType *XMis);
00400 void DestroyPad(char plr,char pad,int cost,char mode);
00401 void GV(GXHEADER *obj,int w,int h);
00402 void DV(GXHEADER *obj);
00403 void GetMouse(void);
00404 void WaitForMouseUp(void);
00405 void WaitForKeyOrMouseDown(void) ;
00406 void PauseMouse(void);
00407 void PrintAt(int x,int y,char *s);
00408 void PrintAtKey(int x,int y,char *s,char val);
00409 void DrawLED(int x,int y,char st);
00410 void DispBig(int x,int y,char *txt,char mode,char te);
00411 void DispNum(int xx,int yy,int num);
00412 void DispMB(int x,int y,int val);
00413 void Gl(int x1,int x2,int y,char t);
00414 void ShBox(int x1,int y1,int x2,int y2);
00415 void UPArrow(int x1,int y1);
00416 void RTArrow(int x1,int y1);
00417 void LTArrow(int x1,int y1);
00418 void DNArrow(int x1,int y1);
00419 void InBox(int x1,int y1,int x2,int y2);
00420 void OutBox(int x1,int y1,int x2,int y2);
00421 void IOBox(int x1, int y1, int x2, int y2);
00422 void RectFill(int x1,int y1,int x2,int y2,char col);
00423 void Box(int x1,int y1,int x2,int y2);
00424 void GradRect(int x1,int y1,int x2,int y2,char plr);
00425 void FlagSm(char plr,int xm,int ym);
00426 void Flag(int x,int y,char plr);
00427 void DispChr(char chr);
00428 void VerifySF(char plr) ;
00429 void VerifyCrews(char plr);
00430 void GetMisType(char mcode);
00431 int MisRandom(void);
00432
00433
00434
00435 void VerifyData(void);
00436 void DrawControl(char plr);
00437 void SetW(char ch);
00438 int Launch(char plr,char mis);
00439 void MissionPast(char plr,char pad,int prest);
00440 int MaxFailPad(char which);
00441
00442
00443
00444 void MissionCodes(char plr,char val,char pad);
00445 void MissionParse(char plr,char *MCode,char *LCode,char pad);
00446 char WhichPart(char plr,int which);
00447 void MissionSteps(char plr,int mcode,int Mgoto,int step,int pad);
00448 void MisPrt(void);
00449 void MissionSetup(char plr,char mis);
00450 void MissionSetDown(char plr,char mis);
00451 void MisDur(char plr,char dur);
00452 void MisSkip(char plr,char ms);
00453 void MisRush(char ms);
00454
00455
00456 void RLEE (void *dest, void *src, unsigned int src_size);
00457 void PlaySequence(char plr,int step,char *Seq,char mode);
00458 void DoPack(char plr,FILE *ffin,char mode,char *cde,char *fName);
00459 void InRFBox(int a, int b, int c, int d, int col);
00460 void GuyDisp(int xa,int ya,struct Astros *Guy);
00461 char FailureMode(char plr,int prelim,char *text);
00462 FILE *OpenAnim(char *fname);
00463 int CloseAnim(FILE * fin);
00464 int StepAnim(int x,int y,FILE *fin);
00465
00466
00467
00468 void MevDebug(FILE *fout,char i);
00469 void GetFailStat(struct XFails *Now,char *FName,int rnum);
00470 void MisCheck(char plr,char mpad);
00471 int MCGraph(char plr,int lc,int safety,int val,char prob);
00472 void F_KillCrew(char mode,struct Astros *Victim);
00473 void F_IRCrew(char mode,struct Astros *Guy);
00474 int FailEval(char plr,int type,char *text,int val,int xtra);
00475 void DebugSetFailure(char *Text);
00476
00477
00478
00479 void Museum(char plr);
00480 void ShowPrest(char plr);
00481 void Move2(char plr, char *pos, char *pos2, char val );
00482 void BackOne(char plr, char *pos,char *pos2);
00483 void ForOne(char plr, char *pos,char *pos2);
00484 void DPrest(char plr,char *pos,char *pos2);
00485 void ShowSpHist(char plr);
00486 void Mission_Data_Buttons(char plr, int *where);
00487 void Draw_Mis_Stats(char plr, char index, int *where, char mode);
00488 void FastOne(char plr,int *where);
00489 void FullRewind(char plr, int *where);
00490 void RewindOne(char plr, int *where);
00491 void FullFast(char plr, int *where);
00492 void DrawMisHist(char plr,int *where);
00493 void ShowAstrosHist(char plr);
00494 void DisplAst(char plr, char *where, char *where2);
00495 void ShowAstroUp(char plr,char *where,char *where2);
00496 void ShowAstroDown(char plr, char *where,char *where2);
00497 void ShowAstroBack(char plr, char *where,char *where2);
00498 void ShowAstroFor(char plr, char *where,char *where2);
00499 void DispLoc(char plr,char *where);
00500 void DisplAstData(char plr, char *where,char *where2);
00501 void DownAstroData(char plr, char *where,char *where2);
00502 void UpAstroData(char plr,char *where,char *where2);
00503 int astcomp(const void *no1, const void *no2);
00504
00505
00506 char OrderMissions(void);
00507 void MisOrd(char num);
00508 void MisAnn(char plr,char pad);
00509 void AI_Begin(char plr);
00510 void AI_Done(void);
00511
00512
00513 void NFrame(int x1, int y1, int x2, int y2);
00514 void GoNews(char plr);
00515 void OpenNews(char plr,char *buf,int bud);
00516 void DispNews(char plr,char *src,char *dest);
00517 FILE* PreLoadAnim(char plr,char mode);
00518 void CloseNewsAnim(void);
00519 void DrawNews(char plr);
00520 void DrawNText(char plr,char got);
00521 void News(char plr);
00522 void DeAlloc(BYTE Page);
00523 void AIEvent(char plr);
00524 char ResolveEvent(char plr);
00525 void Breakgrp(char plr);
00526 int PlayNewsAnim(mm_file *);
00527 mm_file *LoadNewsAnim(int plr, int bw, int type, int Mode, mm_file * fp);
00528 void ShowEvt(char plr,char crd);
00529
00530
00531
00532 int Steal(int p,int prog,int type);
00533 int NMod(int p,int prog,int type,int per);
00534 int DamMod(int p,int prog,int dam,int cost);
00535 int RDMods(int p,int prog,int type,int val);
00536 int SaveMods(char p,char prog);
00537
00538
00539 char CheckCrewOK(char plr,char pad);
00540 char REvent(char plr);
00541 void Replace_Snaut(char plr);
00542
00543
00544
00545 void BCDraw(int y);
00546 int MChoice(char qty,char *Name);
00547 int BChoice(char plr,char qty,char *Name,char *Imx);
00548 void PatchMe(char plr,int x,int y,char prog,char poff,unsigned char coff);
00549 void AstFaces(char plr,int x,int y,char face);
00550 void SmHardMe(char plr,int x,int y,char prog,char planet,unsigned char coff);
00551 void BigHardMe(char plr,int x,int y,char hw,char unit,char sh,unsigned char coff);
00552 void DispHelp(char top, char bot, char *txt);
00553 int Help(char *FName);
00554 void Draw_Mis_Stats(char plr, char index, int *where,char mode);
00555
00556
00557 void Seek_sOff(int where);
00558 void Seek_pOff(int where);
00559 void SpotCrap(char loc,char mode);
00560 void WaveFlagSetup(void);
00561 void WaveFlagDel(void);
00562 void PadBub(int x,int y,int col);
00563 void PortPlace(FILE *fin,long table);
00564 void PortPal(char plr);
00565 void DrawSpaceport(char plr);
00566 void PortText(int x,int y,char *txt,char col);
00567 void UpdatePortOverlays(void);
00568 void Master(char plr);
00569 void GetMse(char plr,char fon);
00570 void DoCycle(void);
00571 void PortOutLine(unsigned int Count,uint16_t *buf,char mode);
00572 void PortRestore(unsigned int Count);
00573 int MapKey(char plr,int key,int old) ;
00574 void Port(char plr);
00575 char PortSel(char plr,char loc);
00576 char Request(char plr,char *s,char md);
00577 char MisReq(char plr);
00578
00579
00580 void Read_CRC(void);
00581 void SaveSide(char side);
00582 void UpdPrestige();
00583 void RecvSide(char side);
00584
00585
00586
00587 int xmit_file(int (*error_handler)(int c, long p, char *s), char *files[]);
00588
00589 int recv_file(int(*error_handler)(int c, long p, char *s), char *path);
00590
00591
00592 void DrawPrefs(int where,char a1,char a2);
00593 void HModel(char mode,char tx);
00594 void Levels(char plr,char which,char x);
00595 void BinT(int x,int y,char st);
00596 void PLevels(char side,char wh);
00597 void CLevels(char side,char wh);
00598 void Prefs(int where);
00599 void EditAst(void);
00600 void ChangeStat(char mum,char Cur,char Cnt);
00601 void DrawStats(char mum,char chce);
00602 void First(char now,char loc);
00603 void Second(int nw,int lc);
00604
00605
00606 void Set_Dock(char plr, char total);
00607 void Set_LM(char plr, char total);
00608 int Check_Photo(void);
00609 int Check_Dock(int limit);
00610 char PrestMin(char plr);
00611 int PrestCheck(char plr);
00612 char Was_Goal(char total,char which);
00613 char Set_Goal(char plr,char which,char control);
00614 char Did_Fail(void);
00615 int MaxFail(void);
00616 char PosGoal(char *PVal);
00617 char NegGoal(char *PVal);
00618 char SupGoal(char *PVal);
00619 int PrestNeg(char plr,int i);
00620 int AllotPrest(char plr,char mis);
00621 char PosGoal_Check(char *PVal);
00622 int Find_MaxGoal(void);
00623 int U_AllotPrest(char plr,char mis);
00624
00625
00626 void PadDraw(char plr,char pad);
00627 void ClrMiss(char plr,char pad);
00628 void PadPict(char poff);
00629 void ShowPad(char plr,char pad);
00630
00631
00632 void SRPrintAt(int x, int y, char *text,char fgd,char bck);
00633 void Load_RD_BUT(char plr);
00634 void Del_RD_BUT(void);
00635 void DrawRD(char plr);
00636 void BButs(char old,char nw);
00637 void RDButTxt(int v1,int val,char plr);
00638 char RD(char plr);
00639 void ManSel(int mm);
00640 char QUnit(char hwx,char unx,char plr);
00641 char MaxChk(char hwx,char unx,char plr);
00642 char RDUnit(char rhard,char runit,char r,char plr);
00643 void ShowUnit(char hw,char un,char plr);
00644 void OnHand(char qty);
00645 void DrawHPurc(char plr);
00646 char HPurc(char plr);
00647 void BuyUnit(char hw2,char un2,char plr);
00648
00649
00650 void SafetyRecords(char plr,int temp);
00651 void MakeRecords(void);
00652 void Records(char plr);
00653 void Move2rec(char *pos, char *pos2, char val );
00654 void ClearRecord(char *pos2);
00655 void Back1rec(char *pos,char *pos2);
00656 void For1rec(char *pos,char *pos2);
00657 void Drec(char *pos,char *pos2,char mde);
00658 void WriteRecord(int i,int j,int k,int temp);
00659 void SwapRec(int Rc,int pl1,int pl2);
00660 char CheckSucess(int i,int j);
00661 void UpdateRecords(char Ty);
00662
00663
00664 void RLEF(void *dest, void *src, unsigned int src_size);
00665 void DispBaby(int x, int y, int loc,char neww);
00666 void AbzFrame(char plr,int num,int dx,int dy,int width,int height,char *Type,char mode);
00667 void Replay(char plr,int num,int dx,int dy,int width,int height,char *Type);
00668
00669
00670 void DrawReview(char plr);
00671 void Review(char plr);
00672 void MisRev(char plr,int pres);
00673 void PresPict(char poff);
00674 void CalcPresRev(void);
00675 void DrawRevText(char plr, int val);
00676
00677
00678 void DrawRush(char plr);
00679 void Rush(char plr);
00680 void ResetRush(int mode,int val);
00681 void SetRush(int mode,int val);
00682
00683
00684 void DFrame(int x1, int y1, int x2, int y2);
00685 void SFrame(int x1, int y1, int x2, int y2);
00686 void SFWin(int x1, int y1, int x2, int y2,char *txt);
00687
00688
00689 void GetVoice( char val);
00690 void UpdateVoice(void);
00691 void NGetVoice(char plr,char val);
00692 void NUpdateVoice(void);
00693 char AnimSoundCheck(void);
00694 void U_GetVoice( char val);
00695 void U_UpdateVoice(void);
00696 void KillVoice(void);
00697 void FadeVoiceIn( int maxvolume, unsigned rate);
00698 void FadeVoiceOut( unsigned rate);
00699 void SetVoiceVolume(int percent);
00700 void PlayVoice(void);
00701 void StopVoice(void);
00702 void *load_global_timbre( FILE *GTL, unsigned bank, unsigned patch);
00703 void GetMusic(FILE *fin,long size) ;
00704 void KillMusic(void);
00705 void FadeMusicIn(int maxvolume, unsigned rate);
00706 void FadeMusicOut(unsigned rate);
00707 void PlayMusic(char mode);
00708 void UpdateMusic(void);
00709 void StopMusic(void);
00710 int board_ID(drvr_desc *desc);
00711 void PreLoadMusic(char val);
00712 void Buzz_SoundDestroy(void);
00713 unsigned int ABXframe(char *scratch,char *dest,int frameno,FILE *fhand);
00714 int GetBuzzEnv(drvr_desc *desc,char *envs);
00715 void PlayAudio(char *name,char mode);
00716 void UpdateAudio(void);
00717 void StopAudio(char mode);
00718 void MuteChannel(int channel, int mute);
00719 int IsChannelMute(int channel);
00720
00721
00722
00723 void SetEvents(void);
00724 void AstroTurn(void);
00725 void Update(void);
00726 void UpdAll(char side);
00727 void TestFMis(int j,int i);
00728 void UpdateHardTurn(char plr);
00729
00730
00731 int ChkDelVab(char plr,char f);
00732 int ChkVabRkt(char plr,int rk,int *q);
00733 void GradRect2(int x1,int y1,int x2,int y2,char plr);
00734 void DispVAB(char plr,char pad);
00735 int FillVab(char plr,char f,char mode);
00736 int BuyVabRkt(char plr,int rk,int *q,char mode);
00737 void ShowVA(char f);
00738 void ShowRkt(char *Name,int sf,int qty,char mode);
00739 void DispVA(char plr,char f);
00740 void DispRck(char plr,char wh);
00741 void DispWts(int two,int one);
00742 void VAB(char plr);
00743 void BuildVAB(char plr,char mis,char ty,char pa,char pr);
00744 void LMAdd(char plr,char prog,char kic,char part);
00745 void VVals(char plr,char tx,Equipment *EQ,char v4,char v5);
00746
00747
00748
00749 void SaveFirst(char);
00750 void CheckFirst(char);
00751 void UpdateFirst(void);
00752 void SendFirst(void);
00753 void RecvFirst(void);
00754 int e_handler(int c, long p, char *s);
00755 void SaveFirst(char mode);
00756 void SendFirst(void);
00757 void UpdateFirst(void);
00758 void CheckFirst(char Hmode);
00759 void RecvFirst(void);
00760 int port_exist(int port);
00761 void open_port(int port, int inlen);
00762 void close_port(void);
00763 void purge_in(void);
00764 void set_baud(long baud);
00765 long get_baud(void);
00766 int get_bits(void);
00767 int get_parity(void);
00768 int get_stopbits(void);
00769 void set_data_format(int bits, int parity, int stopbit);
00770 void set_port(long baud, int bits, int parity, int stopbit);
00771 int in_ready(void);
00772 int carrier(void);
00773 void set_dtr(int n);
00774
00775
00776 int CDAccess(int drive,int track,char mode);
00777 int AquireDrive(void);
00778
00779
00780 void Message(int msg, int tr);
00781 void AAset(void);
00782 void DialAt(int x,int y,char *s);
00783 void get_dial(char *old);
00784 void Read_Config(void);
00785 int e_handler(int c, long p, char *s);
00786 void Dnload(void);
00787 void Upload(void);
00788 void ReadMsg(void);
00789 void WriteMsg(void);
00790 void Write_Config(void);
00791 void DrawCenter();
00792 void MesCenter(void);
00793 char MPrefs(char mode);
00794 void Toggle_Cfg(int opt,int old);
00795 void TrackPict(char mode);
00796
00797
00798 char dial(void);
00799 char CheckCarrier(void);
00800 void Modem_Config(void);
00801 char *get_modem_string(char *s, char *d);
00802 char DoModem(int sel);
00803 void exit_program(void);
00804 void hangup(void);
00805 void modem_control_string(char *s);
00806
00807 void save_game (char *filename);
00808
00809