Searched refs:ship (Results 1 - 25 of 38) sorted by relevance

12

/openbsd-current/games/sail/
H A Dgame.c36 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 Dparties.c36 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 Dextern.h52 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 Dpl_4.c50 (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 Dsync.c62 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 Ddr_4.c38 ungrap(struct ship *from, struct ship *to)
55 grap(struct ship *from, struct ship *to)
H A Dlo_main.c60 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 Ddr_3.c44 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 Ddr_5.c36 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 Dassorted.c38 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 Ddr_2.c45 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 Dmisc.c50 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 Dpl_2.c42 struct ship *sp;
45 switch (sgetch("~\b", (struct ship *)0, 0)) {
H A Dpl_7.c63 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 Ddr_1.c44 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 Dpl_3.c52 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 Dpl_6.c54 c = sgetch("Repair (hull, guns, rigging)? ", (struct ship *)0, 1);
158 (struct ship *)0, 1);
166 (struct ship *)0, 1);
H A Ddr_main.c46 struct ship *sp;
H A Dplayer.h110 extern struct ship *ms; /* memorial structure, &cc->ship[player] */
/openbsd-current/games/trek/
H A Dwin.c69 s >= 1000 && Ship.ship == ENTERPRISE)
H A Dabandon.c40 ** 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 Dshield.c77 if (Ship.ship == QUEENE)
H A Dhelp.c153 Sect[dx][dy] = Ship.ship;
H A Dinitquad.c88 Sect[Ship.sectx][Ship.secty] = Ship.ship;
H A Dscore.c87 if (Ship.ship != ENTERPRISE)
90 printf("penalty for abandoning ship\t\t -200\n");

Completed in 175 milliseconds

12