X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=src%2Fsst.h;h=7f66a3e831dcdf44dfa3e0172eabdf287087bf95;hb=0e9bdbb882f74cad6af644e3e1b530f9ffbf5e8d;hp=d58fea381e2faa3141a64dfa612b76cd039dd3e6;hpb=2cae1cd3feb922843b40af851f43f9e08bb18f0d;p=super-star-trek.git diff --git a/src/sst.h b/src/sst.h index d58fea3..7f66a3e 100644 --- a/src/sst.h +++ b/src/sst.h @@ -58,6 +58,8 @@ typedef struct { typedef struct { int snap, // snapshot taken + crew, // crew complement +#define FULLCREW 428 /* BSD Trek was 387, that's wrong */ remkl, // remaining klingons remcom, // remaining commanders nscrem, // remaining super commanders @@ -213,6 +215,7 @@ struct game { neutz, // Romulan Neutral Zone isarmed, // probe is armed inorbit, // orbiting a planet + imine, // mining thawed; // thawed game int inkling, // initial number of klingons inbase, // initial number of bases @@ -224,6 +227,7 @@ struct game { condit, // condition (red/yellow/green/docked) torps, // number of torpedoes ship, // ship type -- 'E' is Enterprise + abandoned, // count of crew abandoned in space length, // length of game skill, // skill level klhere, // klingons here @@ -234,7 +238,6 @@ struct game { shldchg, // shield is changing (affects efficiency) landed, // party on planet (1), on ship (-1) iplnet, // planet # in quadrant - imine, // mining inplan, // initial planets nenhere, // number of enemies in quadrant ishere, // super-commander in quandrant @@ -295,7 +298,7 @@ typedef enum {FWON, FDEPLETE, FLIFESUP, FNRG, FBATTLE, FNEG3, FNOVA, FSNOVAED, FABANDN, FDILITHIUM, FMATERIALIZE, FPHASER, FLOST, FMINING, FDPLANET, FPNOVA, FSSC, FSTRACTOR, FDRAY, FTRIBBLE, - FHOLE} FINTYPE ; + FHOLE, FCREW} FINTYPE ; enum loctype {neither, quadrant, sector}; #define IHR 'R' @@ -325,20 +328,20 @@ enum loctype {neither, quadrant, sector}; /* Function prototypes */ void prelim(void); -void attack(int); +void attack(bool); bool choose(bool); -void setup(int); +void setup(bool); void score(void); -void atover(int); +void atover(bool); int srscan(int); void lrscan(void); void phasers(void); void photon(void); void warp(bool); void doshield(int); -void dock(int); +void dock(bool); void dreprt(void); -void chart(int); +void chart(bool); void rechart(void); void impuls(void); void wait(void); @@ -349,7 +352,7 @@ void eta(void); void mayday(void); void abandn(void); void finish(FINTYPE); -void dstrct(void); +void selfdestruct(void); void kaboom(void); void freeze(bool); int thaw(void); @@ -364,7 +367,7 @@ void skip(int); void prout(char *, ...); void proutn(char *, ...); void stars(void); -void newqad(int); +void newqad(bool); bool ja(void); void cramen(int); void crmshp(void); @@ -377,8 +380,8 @@ void dropin(int, coord*); void newcnd(void); void sortkl(void); void imove(void); -void ram(int, int, coord); -void crmena(int, int, int, coord w); +void ram(bool, int, coord); +void crmena(bool, int, enum loctype, coord w); void deadkl(coord, int, int, int); void timwrp(void); void movcom(void); @@ -394,21 +397,21 @@ int isit(char *); void preport(void); void orbit(void); void sensor(void); -void drawmaps(short); +void drawmaps(int); void beam(void); void mine(void); void usecrystals(void); void shuttle(void); void deathray(void); void debugme(void); -void attakreport(int); +void attakreport(bool); void movetho(void); void probe(void); void iostart(void); void setwnd(WINDOW *); void warble(void); -void boom(int ii, int jj); -void tracktorpedo(int ix, int iy, int l, int i, int n, int iquad); +void boom(int, int); +void tracktorpedo(int, int, int, int, int, int); void cgetline(char *, int); void waitfor(void); void setpassword(void);