Home
last modified time | relevance | path

Searched refs:ship (Results 1 – 25 of 51) sorted by relevance

123

/dragonfly/games/sail/
HDsync.c100 static void recv_captain(struct ship *ship, const char *astr);
101 static void recv_captured(struct ship *ship, long a);
102 static void recv_class(struct ship *ship, long a);
103 static void recv_crew(struct ship *ship, long a, long b, long c);
104 static void recv_dbp(struct ship *ship, long a, long b, long c, long d);
105 static void recv_drift(struct ship *ship, long a);
106 static void recv_explode(struct ship *ship, long a);
107 static void recv_foul(struct ship *ship, long a);
108 static void recv_gunl(struct ship *ship, long a, long b);
109 static void recv_gunr(struct ship *ship, long a, long b);
[all …]
HDextern.h116 struct ship *toship;
151 struct ship *captured; /* 68 */
172 struct ship { struct
188 struct ship ship[NSHIP]; /* 16 */ member
216 extern struct ship *ls; /* &cc->ship[cc->vessels] */
218 #define SHIP(s) (&cc->ship[s])
219 #define foreachship(sp) for ((sp) = cc->ship; (sp) < ls; (sp)++)
259 void table(struct ship *, struct ship *, int, int, int, int);
260 void Cleansnag(struct ship *, struct ship *, int, int);
273 void closeon(struct ship *, struct ship *, char *, size_t, int, int, bool);
[all …]
HDgame.c46 maxturns(struct ship *ship, bool *af) in maxturns() argument
50 turns = ship->specs->ta; in maxturns()
51 *af = (ship->file->drift > 1 && turns); in maxturns()
54 if (ship->file->FS == 1) in maxturns()
61 maxmove(struct ship *ship, int dir, int fs) in maxmove() argument
65 Move = ship->specs->bs; in maxmove()
66 if (!ship->specs->rig1) in maxmove()
68 if (!ship->specs->rig2) in maxmove()
70 if (!ship->specs->rig3) in maxmove()
72 if (!ship->specs->rig4) in maxmove()
[all …]
HDdr_3.c47 static int is_isolated(struct ship *);
48 static int push(struct ship *, struct ship *);
49 static void step(struct ship *, int, char *);
55 struct ship *sp, *sq; in moveall()
65 struct ship *closest; in moveall()
193 struct ship *sp; in stillmoving()
202 is_isolated(struct ship *ship) in is_isolated() argument
204 struct ship *sp; in is_isolated()
207 if (ship != sp && range(ship, sp) <= 10) in is_isolated()
214 push(struct ship *from, struct ship *to) in push()
[all …]
HDpl_4.c58 (struct ship *)0, 1) == 'y') { in changesail()
64 (struct ship *)0, 1) == 'y') { in changesail()
91 struct ship *sp; in lookout()
107 saywhat(struct ship *sp, int flag) in saywhat()
122 eyeball(struct ship *ship) in eyeball() argument
126 if (ship->file->dir != 0) { in eyeball()
128 range(ms, ship), saywhat(ship, 0)); in eyeball()
129 i = portside(ms, ship, 1) - mf->dir; in eyeball()
133 ship, countryname[ship->nationality], in eyeball()
134 classname[ship->specs->class], directionname[i]); in eyeball()
HDparties.c45 meleeing(struct ship *from, struct ship *to) in meleeing()
57 boarding(struct ship *from, int isdefense) in boarding()
69 unboard(struct ship *ship, struct ship *to, int isdefense) in unboard() argument
71 struct BP *p = isdefense ? ship->file->DBP : ship->file->OBP; in unboard()
76 (p->toship == to || isdefense || ship == to)) { in unboard()
78 send_dbp(ship, n, 0, 0, 0); in unboard()
80 send_obp(ship, n, 0, 0, 0); in unboard()
HDdr_2.c51 static int score(struct ship *, struct ship *, char *, size_t, int);
52 static void move_ship(struct ship *, const char *, unsigned char *,
54 static void try(struct ship *f, struct ship *t,
65 struct ship *sp, *sq; in thinkofgrapples()
96 struct ship *sp, *sq; in checkup()
134 struct ship *sp; in prizecheck()
163 closeon(struct ship *from, struct ship *to, char *command, size_t commandmax, in closeon()
176 score(struct ship *ship, struct ship *to, char *movement, size_t movementmax, in score() argument
181 struct File *fp = ship->file; in score()
188 move_ship(ship, movement, &fp->dir, &fp->row, &fp->col, &drift); in score()
[all …]
HDassorted.c45 static void strike(struct ship *, struct ship *);
48 table(struct ship *from, struct ship *on, in table()
249 Cleansnag(struct ship *from, struct ship *to, int all, int flag) in Cleansnag()
274 strike(struct ship *ship, struct ship *from) in strike() argument
278 if (ship->file->struck) in strike()
280 send_struck(ship, 1); in strike()
281 points = ship->specs->pts + from->file->points; in strike()
283 unboard(ship, ship, 0); /* all offense */ in strike()
284 unboard(ship, ship, 1); /* all defense */ in strike()
288 send_sink(ship, 1); in strike()
[all …]
HDlo_main.c74 struct ship *ship; in lo_curses() local
109 ship = &scene[log.l_gamenum].ship[log.l_shipnum]; in lo_curses()
112 title[n++], sbuf, ship->shipname, log.l_netpoints, in lo_curses()
113 (float) log.l_netpoints / ship->specs->pts); in lo_curses()
129 struct ship *ship; in lo_main() local
151 ship = &scene[log.l_gamenum].ship[log.l_shipnum]; in lo_main()
153 title[n++], sbuf, ship->shipname, log.l_netpoints, in lo_main()
154 (float) log.l_netpoints / ship->specs->pts); in lo_main()
HDmisc.c56 range(struct ship *from, struct ship *to) in range()
82 struct ship *
83 closestenemy(struct ship *from, int side, int anyship) in closestenemy()
85 struct ship *sp; in closestenemy()
88 struct ship *closest = NULL; in closestenemy()
138 gunsbear(struct ship *from, struct ship *to) in gunsbear()
160 portside(struct ship *from, struct ship *on, int quick) in portside()
179 colours(struct ship *sp) in colours()
196 logger(struct ship *s) in logger()
228 / scene[lp->l_gamenum].ship[lp->l_shipnum].specs->pts) { in logger()
HDpl_7.c94 struct ship *ms; /* memorial structure, &cc->ship[player] */
399 Signal(const char *fmt, struct ship *ship, ...) in Signal() argument
407 va_start(ap, ship); in Signal()
412 fmtship(format, sizeof(format), fmt, ship); in Signal()
438 prompt(const char *p, struct ship *ship) in prompt() argument
442 fmtship(buf, sizeof(buf), p, ship); in prompt()
479 sgetch(const char *p, struct ship *ship, int flag) in sgetch() argument
484 prompt(p, ship); in sgetch()
513 prompt(pr, (struct ship *)0); in sgetstr()
572 struct ship *sp; in draw_view()
[all …]
HDdr_1.c48 static int fightitout(struct ship *, struct ship *, int);
53 struct ship *sp; in unfoul()
54 struct ship *to; in unfoul()
77 struct ship *sp, *sq; in boardcomp()
139 fightitout(struct ship *from, struct ship *to, int key) in fightitout()
141 struct ship *fromcap, *tocap; in fightitout()
239 struct ship *sp, *sq; in resolve()
271 struct ship *sp; in compcombat()
272 struct ship *closest; in compcombat()
412 struct ship *s; in next()
[all …]
HDdr_5.c45 subtract(struct ship *from, struct ship *fromcap, int totalfrom, int *crewfrom, in subtract()
69 mensent(struct ship *from, struct ship *to, int *crew, struct ship **captured, in mensent()
HDdr_4.c45 ungrap(struct ship *from, struct ship *to) in ungrap()
62 grap(struct ship *from, struct ship *to) in grap()
HDpl_3.c58 struct ship *closest; in acceptcombat()
105 (struct ship *)0, 1)) { in acceptcombat()
117 if (sgetch("Fire? ", (struct ship *)0, 1) == 'n') { in acceptcombat()
220 struct ship *sp; in grapungrap()
260 struct ship *to; in unfoulplayer()
HDpl_5.c51 static void parties(struct ship *, int *, int, int);
159 struct ship *sp; in acceptboard()
202 (struct ship *)0, 1); in acceptboard()
208 parties(struct ship *to, int *crew, int isdefense, int buf) in parties()
HDpl_6.c62 c = sgetch("Repair (hull, guns, rigging)? ", (struct ship *)0, 1); in repair()
158 (struct ship *)0, 1); in loadplayer()
166 (struct ship *)0, 1); in loadplayer()
HDpl_2.c101 struct ship *sp; in play()
108 switch (sgetch("~ ", (struct ship *)0, 0)) { in play()
HDpl_main.c60 struct ship *sp; in pl_main_init()
92 struct ship *sp; in pl_main_uninit()
HDplayer.h94 extern struct ship *ms; /* memorial structure, &cc->ship[player] */
/dragonfly/games/quiz/datfiles/
HDtrek3 name of ship:{the }{u.s.s. }enterprise|Enterprise
9 main engines of ship:warp engines|warp
12 type of torpedoes used on the ship:photon torpedoes|photon
13 name of electronic protective device on ship:shields|shield
14 name of device that makes a ship invisible:cloaking device|cloak|cloaking
/dragonfly/contrib/file/magic/Magdir/
HDuuencode20 # ship(1) is another, much cooler alternative to uuencode.
22 0 search/1 $\012ship ship'd binary text
/dragonfly/games/trek/
HDabandon.c70 if (Ship.ship == QUEENE) { in abandon()
96 Ship.ship = QUEENE; in abandon()
HDwin.c70 s >= 1000 && Ship.ship == ENTERPRISE) { in win()
HDshield.c74 if (Ship.ship == QUEENE) { in shield()

123