Home
last modified time | relevance | path

Searched refs:PLAYER (Results 1 – 25 of 32) sorted by relevance

12

/netbsd-src/games/hunt/huntd/
H A Dhunt.h54 typedef struct player_def PLAYER; typedef
116 PLAYER *b_owner;
149 extern PLAYER Player[MAXPL], *End_player;
151 extern PLAYER Boot[NBOOTS];
155 extern PLAYER Monitor[MAXMON], *End_monitor;
167 void drawmaze(PLAYER *);
168 void look(PLAYER *);
169 void check(PLAYER *, int, int);
170 void showstat(PLAYER *);
171 void drawplayer(PLAYER *, bool);
[all …]
H A Dexecute.c41 static void cloak(PLAYER *);
42 static void turn_player(PLAYER *, int);
43 static void fire(PLAYER *, int);
44 static void fire_slime(PLAYER *, int);
45 static void move_player(PLAYER *, int);
46 static void pickup(PLAYER *, int, int, int, int);
47 static void scan(PLAYER *);
56 mon_execute(PLAYER *pp) in mon_execute()
77 execute(PLAYER *pp) in execute()
193 move_player(PLAYER *pp, int dir) in move_player()
[all …]
H A Ddraw.c40 static void drawstatus(PLAYER *);
41 static void see(PLAYER *, int);
43 static int player_sym(PLAYER *, int, int);
46 drawmaze(PLAYER *pp) in drawmaze()
78 drawstatus(PLAYER *pp) in drawstatus()
81 PLAYER *np; in drawstatus()
131 look(PLAYER *pp) in look()
178 see(PLAYER *pp, int face) in see()
263 check(PLAYER *pp, int y, int x) in check()
267 PLAYER *rpp; in check()
[all …]
H A Dterminal.c48 cgoto(PLAYER *pp, int y, int x) in cgoto()
62 outch(PLAYER *pp, int ch) in outch()
76 outstr(PLAYER *pp, const char *str, int len) in outstr()
90 clrscr(PLAYER *pp) in clrscr()
102 ce(PLAYER *pp) in ce()
113 ref(PLAYER *pp)
124 sendcom(PLAYER *pp, int command, ...) in sendcom()
H A Dextern.c56 PLAYER Player[MAXPL]; /* all the players */
57 PLAYER *End_player = Player; /* last active player slot */
59 PLAYER Boot[NBOOTS]; /* all the boots */
63 PLAYER Monitor[MAXMON]; /* all the monitors */
64 PLAYER *End_monitor = Monitor; /* last active monitor slot */
H A Ddriver.c129 static bool havechar(PLAYER *, int);
133 static void zap(PLAYER *, bool, int);
205 PLAYER *pp; in main()
517 PLAYER *pp; in makeboots()
535 checkdam(PLAYER *ouch, PLAYER *gotcha, IDENT *credit, int amt, in checkdam()
670 zap(PLAYER *pp, bool was_player, int i) in zap()
674 PLAYER *np; in zap()
810 memcpy(pp, End_player, sizeof (PLAYER)); in zap()
849 memcpy(pp, End_monitor, sizeof (PLAYER)); in zap()
898 havechar(PLAYER *pp, int i) in havechar()
[all …]
H A Danswer.c54 static void stmonitor(PLAYER *);
55 static void stplayer(PLAYER *, int);
60 PLAYER *pp; in answer()
224 stmonitor(PLAYER *pp) in stmonitor()
227 PLAYER *npp; in stmonitor()
253 stplayer(PLAYER *newpp, int enter_status) in stplayer()
256 PLAYER *pp; in stplayer()
H A Dshots.c56 static void move_flyer(PLAYER *);
70 PLAYER *pp; in moveshots()
189 PLAYER *pp; in move_normal_shot()
378 PLAYER *pp; in move_drone()
569 move_flyer(PLAYER *pp) in move_flyer()
665 PLAYER *pp; in chkshot()
800 PLAYER *pp; in move_slime()
1026 PLAYER *
1029 PLAYER *pp; in play_at()
1115 PLAYER *pp; in mark_player()
[all …]
H A Dexpl.c55 PLAYER *pp; in showexpl()
114 PLAYER *pp; in rollexpl()
161 PLAYER *pp; in remove_wall()
/netbsd-src/games/mille/
H A Dmille.c79 Play = PLAYER; in main()
103 if (!restore || (Player[PLAYER].total >= 5000 in main()
105 if (Player[COMP].total < Player[PLAYER].total) in main()
106 Player[PLAYER].games++; in main()
107 else if (Player[COMP].total > Player[PLAYER].total) in main()
110 Player[PLAYER].total = 0; in main()
132 && Player[PLAYER].total < 5000); in main()
H A Dmisc.c128 if (Play == PLAYER) { in check_ext()
147 op = &Player[PLAYER]; in check_ext()
225 if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000) in check_more()
232 if (Player[PLAYER].total > Player[COMP].total) in check_more()
233 Player[PLAYER].games++; in check_more()
234 else if (Player[PLAYER].total < Player[COMP].total) in check_more()
237 Player[PLAYER].total = 0; in check_more()
H A Dmove.c79 if (Play == PLAYER) in domove()
102 if (Play == PLAYER) in domove()
152 if (Order && Movetype != M_DRAW && goodplay && pp == &Player[PLAYER]) in domove()
183 op = (pp == &Player[COMP] ? &Player[PLAYER] : &Player[COMP]); in check_go()
351 if (pp == &Player[PLAYER]) in playcard()
H A Dinit.c85 sort(Player[PLAYER].hand); in init()
214 Player[PLAYER].was_finished = !Finished; in newscore()
/netbsd-src/games/dab/
H A Dplayer.cc42 PLAYER::PLAYER(char who) : in PLAYER() function in PLAYER
51 void PLAYER::init(void) in init()
56 void PLAYER::wl(size_t sc) in wl()
63 int PLAYER::domove(BOARD& b) in domove()
H A Dgamescreen.h41 class PLAYER; variable
66 virtual void score(size_t l, const PLAYER& p) = 0; // Post current score
67 virtual void games(size_t l, const PLAYER& p) = 0; // Post games won
68 virtual void total(size_t l, const PLAYER& p) = 0; // Post total score
69 virtual void ties(const PLAYER& p) = 0; // Post tie games
H A Dboard.h42 class PLAYER; variable
71 void score(size_t i, const PLAYER& p); // Post score
72 void games(size_t i, const PLAYER& p); // Post games
73 void total(size_t i, const PLAYER& p); // Post totals
74 void ties(const PLAYER& p); // Post ties
H A Dttyscrn.h55 void score(size_t s, const PLAYER& p);
56 void games(size_t s, const PLAYER& p);
57 void total(size_t s, const PLAYER& p);
58 void ties(const PLAYER& p);
H A Dplayer.h43 class PLAYER {
45 PLAYER(char who);
46 virtual ~PLAYER() {} in ~PLAYER()
H A Dttyscrn.cc171 void TTYSCRN::score(size_t s, const PLAYER& p) in score()
177 void TTYSCRN::total(size_t s, const PLAYER& p) in total()
183 void TTYSCRN::games(size_t s, const PLAYER& p) in games()
189 void TTYSCRN::ties(const PLAYER& p) in ties()
H A Dboard.cc210 void BOARD::score(size_t i, const PLAYER& p) in score()
218 void BOARD::games(size_t i, const PLAYER& p) in games()
226 void BOARD::total(size_t i, const PLAYER& p) in total()
234 void BOARD::ties(const PLAYER& p) in ties()
H A Dmain.cc64 static void play(BOARD& b, PLAYER* p[2]) in play()
152 PLAYER* p[2]; in main()
H A Dhuman.h43 class HUMAN : public PLAYER {
H A Dhuman.cc49 PLAYER(c), in HUMAN()
/netbsd-src/games/robots/
H A Dmove.c191 mvaddch(My_pos.y, My_pos.x, PLAYER); in get_move()
277 mvaddch(My_pos.y, My_pos.x, PLAYER); in do_move()
H A Drobots.h67 #define PLAYER '@' macro

12