/openbsd-current/games/sail/ |
H A D | game.c | 36 maxturns(struct ship *ship, char *af) argument 40 turns = ship->specs->ta; 41 if ((*af = (ship->file->drift > 1 && turns)) != 0) { 43 if (ship->file->FS == 1) 50 maxmove(struct ship *ship, int dir, int fs) argument 54 Move = ship->specs->bs; 55 if (!ship->specs->rig1) 57 if (!ship [all...] |
H A D | parties.c | 36 meleeing(struct ship *from, struct ship *to) 48 boarding(struct ship *from, int isdefense) 60 unboard(struct ship *ship, struct ship *to, int isdefense) argument 62 struct BP *p = isdefense ? ship->file->DBP : ship->file->OBP; 66 if (p->turnsent && (p->toship == to || isdefense || ship == to)) 67 Write(isdefense ? W_DBP : W_OBP, ship, [all...] |
H A D | extern.h | 52 extern char randomize; /* -x, give first available ship */ 159 struct ship *toship; 193 struct ship *captured; /* 68 */ 214 struct ship { struct 230 struct ship ship[NSHIP]; /* 16 */ member in struct:scenario 259 extern struct ship *ls; /* &cc->ship[cc->vessels] */ 261 #define SHIP(s) (&cc->ship[s]) 262 #define foreachship(sp) for ((sp) = cc->ship; (s [all...] |
H A D | pl_4.c | 50 (struct ship *)0, 1) == 'y') { 56 (struct ship *)0, 1) == 'y') { 83 struct ship *sp; 87 sgetstr("What ship? ", buf, sizeof buf); 99 saywhat(struct ship *sp, int flag) 114 eyeball(struct ship *ship) argument 118 if (ship->file->dir != 0) { 120 range(ms, ship), saywhat(ship, [all...] |
H A D | sync.c | 62 fmtship(char *buf, size_t len, const char *fmt, struct ship *ship) argument 71 ship->shipname, colours(ship), sterncolour(ship)); 87 makesignal(struct ship *from, const char *fmt, struct ship *ship, ...) argument 93 va_start(ap, ship); 94 fmtship(format, sizeof(format), fmt, ship); 173 Write(int type, struct ship *ship, long a, long b, long c, long d) argument 187 Writestr(int type, struct ship *ship, const char *a) argument 301 sync_update(int type, struct ship *ship, const char *astr, long a, long b, long c, long d) argument [all...] |
H A D | dr_4.c | 38 ungrap(struct ship *from, struct ship *to) 55 grap(struct ship *from, struct ship *to)
|
H A D | lo_main.c | 60 struct ship *ship; local 83 ship = &scene[log.l_gamenum].ship[log.l_shipnum]; 85 title[n++], sbuf, ship->shipname, log.l_netpoints, 86 (float) log.l_netpoints / ship->specs->pts);
|
H A D | dr_3.c | 44 struct ship *sp, *sq; /* r11, r10 */ 54 struct ship *closest; 184 struct ship *sp; 193 is_isolated(struct ship *ship) argument 195 struct ship *sp; 198 if (ship != sp && range(ship, sp) <= 10) 205 push(struct ship *from, struct ship *t 278 is_toughmelee(struct ship *ship, struct ship *to, int isdefense, int count) argument [all...] |
H A D | dr_5.c | 36 subtract(struct ship *from, int totalfrom, int crewfrom[3], 37 struct ship *fromcap, int pcfrom) 61 mensent(struct ship *from, struct ship *to, int crew[3], struct ship **captured,
|
H A D | assorted.c | 38 static void strike(struct ship *, struct ship *); 41 table(int rig, int shot, int hittable, struct ship *on, struct ship *from, 233 Cleansnag(struct ship *from, struct ship *to, int all, int flag) 258 strike(struct ship *ship, struct ship *from) argument 262 if (ship [all...] |
H A D | dr_2.c | 45 struct ship *sp, *sq; 76 struct ship *sp, *sq; 107 struct ship *sp; 133 closeon(struct ship *from, struct ship *to, char command[], size_t commandl, 148 score(char movement[], size_t movementl, struct ship *ship, struct ship *to, argument 153 struct File *fp = ship->file; 160 move_ship(movement, ship, 180 move_ship(const char *p, struct ship *ship, unsigned char *dir, short *row, short *col, char *drift) argument [all...] |
H A D | misc.c | 50 range(struct ship *from, struct ship *to) 76 struct ship * 77 closestenemy(struct ship *from, int side, int anyship) 79 struct ship *sp; 82 struct ship *closest = 0; 132 gunsbear(struct ship *from, struct ship *to) 154 portside(struct ship *from, struct ship *o [all...] |
H A D | pl_2.c | 42 struct ship *sp; 45 switch (sgetch("~\b", (struct ship *)0, 0)) {
|
H A D | pl_7.c | 63 struct ship *ms; /* memorial structure, &cc->ship[player] */ 154 Signal(char *fmt, struct ship *ship, ...) argument 159 va_start(ap, ship); 166 fmtship(format, sizeof(format), fmt, ship); 200 prompt(const char *p, struct ship *ship) argument 204 fmtship(buf, sizeof(buf), p, ship); 220 sgetch(const char *p, struct ship *shi argument [all...] |
H A D | dr_1.c | 44 struct ship *sp; 45 struct ship *to; 68 struct ship *sp, *sq; 130 fightitout(struct ship *from, struct ship *to, int key) 132 struct ship *fromcap, *tocap; 203 /* ptr1 points to the shipspec for the ship that was just unboarded. 236 struct ship *sp, *sq; 267 struct ship *sp; 268 struct ship *closes [all...] |
H A D | pl_3.c | 52 struct ship *closest; 98 (struct ship *)0, 1)) { 110 if (sgetch("Fire? ", (struct ship *)0, 1) == 'n') { 216 struct ship *sp; 256 struct ship *to;
|
H A D | pl_6.c | 54 c = sgetch("Repair (hull, guns, rigging)? ", (struct ship *)0, 1); 158 (struct ship *)0, 1); 166 (struct ship *)0, 1);
|
H A D | dr_main.c | 46 struct ship *sp;
|
H A D | player.h | 110 extern struct ship *ms; /* memorial structure, &cc->ship[player] */
|
/openbsd-current/games/trek/ |
H A D | win.c | 69 s >= 1000 && Ship.ship == ENTERPRISE)
|
H A D | abandon.c | 40 ** The ship is abandoned. If your current ship is the Faire 68 if (Ship.ship == QUEENE) 97 /* re-outfit new ship */ 99 printf(" functional ship, the Fairie Queene.\n"); 100 Ship.ship = QUEENE; 111 /* clear out damages on old ship */
|
H A D | shield.c | 77 if (Ship.ship == QUEENE)
|
H A D | help.c | 153 Sect[dx][dy] = Ship.ship;
|
H A D | initquad.c | 88 Sect[Ship.sectx][Ship.secty] = Ship.ship;
|
H A D | score.c | 87 if (Ship.ship != ENTERPRISE) 90 printf("penalty for abandoning ship\t\t -200\n");
|