port.c File Reference

#include "gamedata.h"
#include "Buzz_inc.h"
#include "externs.h"
#include "macros.h"
#include "av.h"
#include "utils.h"

Go to the source code of this file.

Data Structures

struct  BOUND
struct  FHead
struct  IMG
struct  MOBJ
struct  mSPOT
 SPOT structures and data structure variables. More...
struct  PORTOUTLINE
struct  REGION
struct  sIMG
struct  sPATH

Defines

#define BABYSND   1
#define LET_A   0x09
#define LET_M   0x0A
#define LET_O   0x0B
#define LET_R   0x08
#define LET_V   0x0C
#define pEXIT   2
#define pNEWMUSIC   5
#define pNOFADE   4
#define pNOREDRAW   0
#define pQUIT   3
#define pREDRAW   1
#define S_QTY   43
#define SPOT_DONE   2
#define SPOT_KILL   3
#define SPOT_LOAD   0
#define SPOT_ON   1
 turn off until everything else works - pace
#define SPOT_STEP   1
#define SPOTS   100

Functions

void DoCycle (void)
void DrawSpaceport (char plr)
void GetMse (char plr, char fon)
int MapKey (char plr, int key, int old)
 Map a keypress to a spaceport building selection.
void Master (char plr)
char MisReq (char plr)
int need_to_fix_width (long table)
void Port (char plr)
void PortOutLine (unsigned int Count, ui16 *outline, 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)
int put_serial (unsigned char n)
char Request (char plr, char *s, char md)
void Seek_pOff (int where)
void Seek_sOff (int where)
void SpotCrap (char loc, char mode)
void UpdatePortOverlays (void)
void WaveFlagDel (void)
void WaveFlagSetup (void)

Variables

int FCtr
long fix_width []
 
Note:
this isn't needed now that RLED automatically chops the right column when the data is bigger than needed.

GXHEADER flaggy
char HotKeyList [] = "AIMRPVCQETB\0"
 These are the valid hotkeys.
SimpleHdr hSPOT
struct mStr Mis
MOBJ MObj [35]
struct mSPOT MSPOT
 SPOT structures and data structure variables.
int oldx
int oldy
char Option
struct FHead PHead
uint32_t pLoc
char PName [20]
PORTOUTLINEpPortOutlineRestore
uint32_t pTable
char RUSH
int16_t sCount
FILE * sFin
struct sIMG sImg sImgOld
struct sPATH sPath sPathOld
char SUSPEND
int16_t Vab_Spot


Define Documentation

#define BABYSND   1

Definition at line 40 of file port.c.

#define LET_A   0x09

Definition at line 33 of file port.c.

Referenced by PortSel().

#define LET_M   0x0A

Definition at line 34 of file port.c.

Referenced by PortSel().

#define LET_O   0x0B

Definition at line 35 of file port.c.

Referenced by PortSel().

#define LET_R   0x08

Definition at line 37 of file port.c.

Referenced by PortSel().

#define LET_V   0x0C

Definition at line 36 of file port.c.

Referenced by PortSel().

#define pEXIT   2

Definition at line 43 of file port.c.

Referenced by Port(), and PortSel().

#define pNEWMUSIC   5

Definition at line 46 of file port.c.

Referenced by Port(), and PortSel().

#define pNOFADE   4

Definition at line 45 of file port.c.

Referenced by Port(), and PortSel().

#define pNOREDRAW   0

Definition at line 41 of file port.c.

Referenced by Port(), and PortSel().

#define pQUIT   3

Definition at line 44 of file port.c.

Referenced by Port(), and PortSel().

#define pREDRAW   1

Definition at line 42 of file port.c.

Referenced by Port(), and PortSel().

#define S_QTY   43

Definition at line 102 of file port.c.

#define SPOT_DONE   2

Definition at line 164 of file port.c.

Referenced by SpotCrap().

#define SPOT_KILL   3

Definition at line 165 of file port.c.

Referenced by Port(), and SpotCrap().

#define SPOT_LOAD   0

Definition at line 162 of file port.c.

Referenced by Master(), Port(), and SpotCrap().

#define SPOT_ON   1

turn off until everything else works - pace

Definition at line 39 of file port.c.

#define SPOT_STEP   1

Definition at line 163 of file port.c.

Referenced by GetMse(), and SpotCrap().

#define SPOTS   100

Definition at line 112 of file port.c.


Function Documentation

void DoCycle ( void   ) 

Definition at line 734 of file port.c.

Referenced by GetMse().

void DrawSpaceport ( char  plr  ) 

Definition at line 419 of file port.c.

Referenced by Admin(), Intel(), Master(), Museum(), and Port().

void GetMse ( char  plr,
char  fon 
)

Definition at line 690 of file port.c.

Referenced by BChoice(), MisReq(), Port(), and Request().

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

Map a keypress to a spaceport building selection.

Definition at line 857 of file port.c.

Referenced by Port().

void Master ( char  plr  ) 

Definition at line 637 of file port.c.

Referenced by MainLoop().

char MisReq ( char  plr  ) 

Definition at line 1358 of file port.c.

int need_to_fix_width ( long  table  ) 

Definition at line 367 of file port.c.

References fix_width.

void Port ( char  plr  ) 

Definition at line 910 of file port.c.

Referenced by Master().

void PortOutLine ( unsigned int  Count,
ui16 outline,
char  mode 
)

???

Parameters:
mode ... 0 = ? 1 = copy stored outline ?

Definition at line 805 of file port.c.

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

Referenced by Port().

void PortPal ( char  plr  ) 

Definition at line 406 of file port.c.

Referenced by Admin(), DrawReview(), DrawStatistics(), FutureCheck(), Intel(), main(), MisAnn(), Museum(), RankMe(), Records(), and ShowPrest().

void PortPlace ( FILE *  fin,
long  table 
)

Definition at line 377 of file port.c.

Referenced by DrawSpaceport().

void PortRestore ( unsigned int  Count  ) 

Definition at line 833 of file port.c.

Referenced by Port().

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.

Referenced by Port().

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

Definition at line 566 of file port.c.

Referenced by Port().

int put_serial ( unsigned char  n  ) 

Definition at line 31 of file pace.c.

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

Definition at line 1307 of file port.c.

Referenced by MisCheck(), and PortSel().

void Seek_pOff ( int  where  ) 

Definition at line 151 of file port.c.

Referenced by SpotCrap().

void Seek_sOff ( int  where  ) 

Definition at line 144 of file port.c.

Referenced by SpotCrap().

void SpotCrap ( char  loc,
char  mode 
)

Definition at line 167 of file port.c.

Referenced by GetMse(), Master(), Port(), and SpotCrap().

void UpdatePortOverlays ( void   ) 

Definition at line 574 of file port.c.

Referenced by DrawSpaceport().

void WaveFlagDel ( void   ) 

Definition at line 335 of file port.c.

Referenced by Master().

void WaveFlagSetup ( void   ) 

Definition at line 324 of file port.c.

Referenced by Master().


Variable Documentation

int FCtr

Definition at line 109 of file port.c.

Referenced by DrawSpaceport(), and GetMse().

long fix_width[]

Initial value:

 {
    
    80615, 
    101712, 
    115262, 
    113283, 
    112708, 
    112154, 
    86035, 
    118301, 
    82541, 
    88992, 
    92114, 

    
    79703, 
    0
}
Note:
this isn't needed now that RLED automatically chops the right column when the data is bigger than needed.

there's still a bug somewhere, so this table is a useful list of funny images to check later

Definition at line 347 of file port.c.

GXHEADER flaggy

Definition at line 110 of file port.c.

char HotKeyList[] = "AIMRPVCQETB\0"

These are the valid hotkeys.

Definition at line 107 of file port.c.

Referenced by DrawSpaceport(), and Port().

SimpleHdr hSPOT

Definition at line 137 of file port.c.

struct mStr Mis

Definition at line 33 of file mc.c.

MOBJ MObj[35]

Definition at line 104 of file port.c.

struct mSPOT MSPOT

SPOT structures and data structure variables.

Referenced by Seek_pOff(), Seek_sOff(), and SpotCrap().

int oldx

Definition at line 46 of file main.c.

int oldy

Definition at line 46 of file main.c.

char Option

Definition at line 54 of file main.c.

struct FHead PHead

uint32_t pLoc

Definition at line 140 of file port.c.

Referenced by SpotCrap().

char PName[20]

Definition at line 160 of file port.c.

Referenced by SpotCrap().

PORTOUTLINE* pPortOutlineRestore

Definition at line 60 of file port.c.

uint32_t pTable

Definition at line 140 of file port.c.

Referenced by Seek_pOff().

char RUSH

Definition at line 50 of file port.c.

Referenced by PortSel().

int16_t sCount

Definition at line 135 of file port.c.

Referenced by Master(), and SpotCrap().

FILE* sFin

Definition at line 136 of file port.c.

Referenced by Master(), Seek_pOff(), Seek_sOff(), and SpotCrap().

struct sIMG sImg sImgOld

Definition at line 139 of file port.c.

Referenced by SpotCrap().

struct sPATH sPath sPathOld

Definition at line 138 of file port.c.

Referenced by SpotCrap().

char SUSPEND

Definition at line 50 of file port.c.

Referenced by Master(), Port(), and SpotCrap().

int16_t Vab_Spot

Definition at line 135 of file port.c.

Referenced by DrawSpaceport(), Master(), Port(), PortSel(), and VAB().


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