#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include "av.h"
Go to the source code of this file.
Data Structures | |
struct | diskfree_t |
struct | drvr_desc |
struct | GXHEADER |
struct | HTIMER |
Defines | |
#define | EMPTY_BODY {} |
#define | grCARROW 2 |
#define | grLBUTTON 1 |
#define | grOUTLINE 1 |
#define | grRBUTTON 2 |
#define | grTRACK 1 |
#define | gxCMM 1 |
#define | gxSET 1 |
#define | gxSUCCESS 0 |
#define | gxVGA_13 1 |
#define | gxXOR 2 |
Functions | |
int | bioskey (int wait) |
int | brandom (int limit) |
void | bzdelay (int ticks) |
void | dbg (char const *fmt,...) __attribute__((format(printf |
void | delay (int millisecs) |
double | get_time (void) |
int | getch (void) |
void | getcurdir (int drive, char *buf) |
int | getdisk (void) |
void | GetMouse_fast (void) |
void | gr_maybe_sync (void) |
void | gr_set_color_map (unsigned char *map) |
void | gr_sync (void) |
void | grClearArea (int x1, int y1, int x2, int y2) |
void | grDrawLine (int x1, int y1, int x2, int y2) |
void | grDrawRect (int x1, int y1, int x2, int y2, int mode) |
int | grGetMouseButtons (void) |
int | grGetMouseCurPos (int *xp, int *yp) |
int | grGetMousePressedPos (int *xp, int *yp) |
int | grGetPixel (int x, int y) |
int | grInitMouse (void) |
Unknown function. | |
void | grLineRel (int x, int y) |
void | grLineTo (int x, int y) |
void | grMoveRel (int x, int y) |
void | grMoveTo (int x, int y) |
void | grPutPixel (int x, int y, int val) |
void | grSetBkColor (int col) |
set background color | |
void | grSetColor (int) |
set foreground color | |
void | grSetMousePos (int x, int y) |
Unknown function. | |
void | gxClearDisplay (int, int) |
void | gxClearVirtual (GXHEADER *hp, int a) |
int | gxCreateVirtual (int mode, GXHEADER *hp, int gxVGA_mode, int w, int h) |
void | gxDestroyVirtual (GXHEADER *hp) |
void | gxDisplayVirtual (int a, int b, int c, int d, int e, GXHEADER *hp, int f, int g) |
void | gxGetImage (GXHEADER *hp, int a, int b, int c, int d, int e) |
void | gxPutImage (GXHEADER *hp, int mode, int a, int b, int c) |
void | gxSetDisplayPalette (char *pal) |
void | gxVirtualDisplay (GXHEADER *hp, int a, int b, int c, int d, int e, int f, int g) |
void | gxVirtualScale (GXHEADER *a, GXHEADER *b) |
int | gxVirtualSize (int mode, int w, int h) |
void | gxVirtualVirtual (GXHEADER *hp, int a, int b, int c, int d, GXHEADER *hp2, int x, int y, int mode) |
void | idle_loop (int ticks) |
wait a number of ticks | |
void | idle_loop_secs (double secs) |
do nothing for a few seconds. | |
int | inp (int port) |
void | LMove (void *p) |
ssize_t | load_audio_file (const char *, char **data, size_t *size) |
void | play_audio (int sidx, int mode) |
void | randomize (void) |
int | RLED_img (void *src, void *dest, unsigned int src_size, int w, int h) |
char * | seq_filename (int seq, int mode) |
Get sequence filename by sequence number. | |
void | SMove (void *p, int x, int y) |
Variables | |
char * | letter_dat |
int | show_intro_flag |
unsigned char | XMAS |
#define EMPTY_BODY {} |
Definition at line 78 of file pace.h.
Referenced by AsnCrew(), CrewProb(), DispBig(), IntelPhase(), SaveMail(), SelectBest(), and Steal().
#define grOUTLINE 1 |
#define gxSET 1 |
Definition at line 52 of file pace.h.
Referenced by AstFaces(), AstLevel(), BadFileType(), BChoice(), BigHardMe(), BudPict(), Burst(), DispBaby(), DispIt(), DisplAstData(), Display_ARROW(), DispRck(), DispVA(), DoPack(), DrawFuture(), DrawSpaceport(), DrawStatistics(), EndPict(), Future(), GetBlockName(), GetMse(), gxPutImage(), HardCrewAssign(), HDispIt(), Help(), HModel(), LMove(), LMPict(), Load_LenFlag(), LoserPict(), MChoice(), MisReq(), Moon(), NewEnd(), PadPict(), PatchMe(), PlaceEquip(), PortPlace(), Prefs(), PresPict(), Request(), RequestX(), SatDraw(), SmHardMe(), SMove(), SpotCrap(), StepAnim(), and TopSecret().
#define gxSUCCESS 0 |
#define gxVGA_13 1 |
#define gxXOR 2 |
int brandom | ( | int | limit | ) |
void dbg | ( | char const * | fmt, | |
... | ||||
) |
void delay | ( | int | millisecs | ) |
Referenced by AsnCrew(), AstSel(), BadFileType(), BChoice(), Bre(), Budget(), ChangeStat(), CrewProb(), DamProb(), Draw_Mis_Stats(), EditAst(), EndGame(), FailureMode(), FakeWin(), FileAccess(), FutBad(), Future(), FutureCheck(), GetBlockName(), HardRequest(), Hospital(), HPurc(), IStat(), Limbo(), LMBld(), MCGraph(), MChoice(), MisCheck(), MisReq(), Moon(), NewEnd(), Prefs(), Programs(), RankMe(), Records(), Request(), RequestX(), Rush(), SatBld(), SecondHard(), ShowAstrosHist(), ShowPad(), ShowPrest(), ShowSpHist(), SpecialEnd(), Stat(), Train(), VAB(), and Viewing().
void getcurdir | ( | int | drive, | |
char * | buf | |||
) |
int getdisk | ( | void | ) |
Definition at line 612 of file main.c.
References AL_CALL, av_step(), bioskey(), CloseEmUp(), gr_maybe_sync(), grGetMouseButtons(), grGetMouseCurPos(), grGetMousePressedPos(), Help(), IDT, IKEY, key, mousebuttons, oldx, oldy, x, XMAS, and y.
void grClearArea | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2 | |||
) |
Definition at line 94 of file gr.c.
References av_need_update(), gr_bg_color, MAX_X, MAX_Y, screen, and y.
void grDrawLine | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2 | |||
) |
void grDrawRect | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2, | |||
int | mode | |||
) |
int grGetMouseButtons | ( | void | ) |
int grGetMouseCurPos | ( | int * | xp, | |
int * | yp | |||
) |
int grGetMousePressedPos | ( | int * | xp, | |
int * | yp | |||
) |
int grGetPixel | ( | int | x, | |
int | y | |||
) | [inline] |
int grInitMouse | ( | void | ) |
Unknown function.
Definition at line 9 of file gr.c.
References gxSUCCESS.
void grLineRel | ( | int | x, | |
int | y | |||
) |
void grLineTo | ( | int | x, | |
int | y | |||
) |
Definition at line 136 of file gr.c.
References gr_cur_x, gr_cur_y, gr_fg_color, grPutPixel(), swap, x, and y.
void grMoveRel | ( | int | x, | |
int | y | |||
) |
void grMoveTo | ( | int | x, | |
int | y | |||
) |
void grPutPixel | ( | int | x, | |
int | y, | |||
int | val | |||
) | [inline] |
void grSetBkColor | ( | int | color | ) |
set background color
color | the color code to use |
Definition at line 88 of file gr.c.
References gr_bg_color.
void grSetColor | ( | int | color | ) |
set foreground color
color | the color code to use |
Definition at line 78 of file gr.c.
References gr_fg_color.
void grSetMousePos | ( | int | x, | |
int | y | |||
) |
void gxClearDisplay | ( | int | , | |
int | ||||
) |
Definition at line 107 of file gx.c.
References av_need_update(), MAX_X, MAX_Y, screen, and screen_dirty.
int gxCreateVirtual | ( | int | mode, | |
GXHEADER * | hp, | |||
int | gxVGA_mode, | |||
int | w, | |||
int | h | |||
) |
Definition at line 158 of file gx.c.
References height, MAX_X, MAX_Y, screen, GXHEADER::vptr, and GXHEADER::w.
Definition at line 39 of file gx.c.
References MAX_X, MAX_Y, screen, GXHEADER::vptr, and GXHEADER::w.
Definition at line 66 of file gx.c.
References av_need_update(), gxSET, gxXOR, GXHEADER::h, MAX_X, MAX_Y, minn, screen, screen_dirty, GXHEADER::vptr, and GXHEADER::w.
Definition at line 118 of file gx.c.
References av_need_update(), height, MAX_X, MAX_Y, minn, screen, screen_dirty, GXHEADER::vptr, and GXHEADER::w.
void idle_loop | ( | int | ticks | ) |
wait a number of ticks
ticks | Number of ticks to wait. |
Definition at line 416 of file pace.c.
References idle_loop_secs().
void idle_loop_secs | ( | double | secs | ) |
do nothing for a few seconds.
The function will wait a number of seconds but will call av_block() in the meantime.
secs | Number of seconds to wait. |
Definition at line 395 of file pace.c.
References av_block(), get_time(), and gr_maybe_sync().
int inp | ( | int | port | ) |
Definition at line 370 of file pace.c.
References DV(), GV(), gxPutImage(), gxSET, screen, and GXHEADER::vptr.
ssize_t load_audio_file | ( | const char * | , | |
char ** | data, | |||
size_t * | size | |||
) |
Definition at line 429 of file pace.c.
References CDEBUG4, CERROR3, CWARNING3, FT_AUDIO, get_time(), mm_audio_info(), mm_close(), mm_decode_audio(), mm_open_fp(), sOpen(), xmalloc(), and xrealloc().
void play_audio | ( | int | sidx, | |
int | mode | |||
) |
Definition at line 537 of file pace.c.
References CINFO3, CWARNING4, load_audio_file(), name, PlayVoice(), seq_filename(), and audio_chunk::size.
Referenced by AI_Begin(), BigHardMe(), DrawFuture(), DrawPrefs(), DrawRush(), FutureCheck(), HModel(), LMPict(), Load_FUT_BUT(), Load_RD_BUT(), Moon(), NextTurn(), PadPict(), PlaceEquip(), PortPlace(), PresPict(), SatDraw(), StepAnim(), TopSecret(), and WaveFlagSetup().
char* seq_filename | ( | int | seq, | |
int | mode | |||
) |
Definition at line 359 of file pace.c.
References DV(), GV(), gxPutImage(), gxSET, and GXHEADER::vptr.
char* letter_dat |
int show_intro_flag |