/src/games/hunt/huntd/ |
hunt.h | 54 typedef struct player_def PLAYER; 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 *); [all...] |
extern.c | 56 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 */
|
terminal.c | 44 * Move the cursor to the given position on the given player's 48 cgoto(PLAYER *pp, int y, int x) 62 outch(PLAYER *pp, int ch) 76 outstr(PLAYER *pp, const char *str, int len) 90 clrscr(PLAYER *pp) 102 ce(PLAYER *pp) 113 ref(PLAYER *pp) 124 sendcom(PLAYER *pp, int command, ...)
|
execute.c | 41 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) 77 execute(PLAYER *pp) 193 move_player(PLAYER *pp, int dir [all...] |
draw.c | 40 static void drawstatus(PLAYER *); 41 static void see(PLAYER *, int); 43 static int player_sym(PLAYER *, int, int); 46 drawmaze(PLAYER *pp) 78 drawstatus(PLAYER *pp) 81 PLAYER *np; 108 outstr(pp, "Player:", 7); 109 for (i = STAT_PLAY_ROW + 1, np = Player; np < End_player; np++) { 131 look(PLAYER *pp) 178 see(PLAYER *pp, int face [all...] |
answer.c | 54 static void stmonitor(PLAYER *); 55 static void stplayer(PLAYER *, int); 60 PLAYER *pp; 140 * between driver and player processes 157 for (pp = Player; pp < End_player; pp++) { 162 for (pp = Player; pp < End_player; pp++) 164 for (pp = Player; pp < End_player; pp++) { 188 if (End_player < &Player[MAXPL]) { 190 i = pp - Player + 3; 224 stmonitor(PLAYER *pp [all...] |
driver.c | 61 * - a stream socket for general player connections 129 static bool havechar(PLAYER *, int); 133 static void zap(PLAYER *, bool, int); 205 PLAYER *pp; 287 for (pp = Player, i = 0; pp < End_player; pp++, i++) 300 for (pp = Player, i = 0; pp < End_player; ) 322 for (pp = Player, i = 0; pp < End_player; pp++, i++) { 517 PLAYER *pp; 532 * Check the damage to the given player, and see if s/he is killed 535 checkdam(PLAYER *ouch, PLAYER *gotcha, IDENT *credit, int amt [all...] |
expl.c | 55 PLAYER *pp; 72 for (pp = Player; pp < End_player; pp++) { 114 PLAYER *pp; 127 for (pp = Player; pp < End_player; pp++) 161 PLAYER *pp;
|
/src/games/dab/ |
player.cc | 1 /* $NetBSD: player.cc,v 1.3 2021/12/05 09:22:45 rillig Exp $ */ 33 * Player base class 37 RCSID("$NetBSD: player.cc,v 1.3 2021/12/05 09:22:45 rillig Exp $") 40 #include "player.h" 42 PLAYER::PLAYER(char who) : 51 void PLAYER::init(void) 56 void PLAYER::wl(size_t sc) 63 int PLAYER::domove(BOARD& b)
|
gamescreen.h | 41 class PLAYER; 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
|
player.h | 1 /* $NetBSD: player.h,v 1.4 2021/12/05 09:22:45 rillig Exp $ */ 33 * Player base class 43 class PLAYER { 45 PLAYER(char who); 46 virtual ~PLAYER() {}
|
ttyscrn.h | 55 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);
|
board.h | 42 class PLAYER; 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
|
human.h | 39 #include "player.h" 43 class HUMAN : public PLAYER {
|
board.cc | 45 #include "player.h" 101 * Make a move for player with initial 'c', adding an edge at box(x, y) 209 // Post the score in the current game for player i 210 void BOARD::score(size_t i, const PLAYER& p) 217 // Post the number of games won for player i 218 void BOARD::games(size_t i, const PLAYER& p) 225 // Post the total score for player i 226 void BOARD::total(size_t i, const PLAYER& p) 233 // Post the total score for player i 234 void BOARD::ties(const PLAYER& p [all...] |
ttyscrn.cc | 43 #include "player.h" 171 void TTYSCRN::score(size_t s, const PLAYER& p) 177 void TTYSCRN::total(size_t s, const PLAYER& p) 183 void TTYSCRN::games(size_t s, const PLAYER& p) 189 void TTYSCRN::ties(const PLAYER& p)
|
main.cc | 64 static void play(BOARD& b, PLAYER* p[2]) 152 PLAYER* p[2];
|
algor.h | 39 #include "player.h" 44 class ALGOR : public PLAYER {
|
human.cc | 49 PLAYER(c),
|
/src/games/mille/ |
mille.c | 79 Play = PLAYER; 103 if (!restore || (Player[PLAYER].total >= 5000 104 || Player[COMP].total >= 5000)) { 105 if (Player[COMP].total < Player[PLAYER].total) 106 Player[PLAYER].games++; 107 else if (Player[COMP].total > Player[PLAYER].total [all...] |
misc.c | 128 if (Play == PLAYER) { 146 pp = &Player[COMP]; 147 op = &Player[PLAYER]; 225 if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000) 232 if (Player[PLAYER].total > Player[COMP].total [all...] |
move.c | 71 pp = &Player[Play]; 79 if (Play == PLAYER) 102 if (Play == PLAYER) 152 if (Order && Movetype != M_DRAW && goodplay && pp == &Player[PLAYER]) 182 for (pp = Player; pp < &Player[2]; pp++) { 183 op = (pp == &Player[COMP] ? &Player[PLAYER] : &Player[COMP]) [all...] |
/src/games/robots/ |
play_level.c | 47 * Let the player play the current level 55 addch(PLAYER); 95 * if the player didn't die, add on the possible bonuses
|
robots.h | 67 #define PLAYER '@'
|
move.c | 56 * Get and execute a move from the player 191 mvaddch(My_pos.y, My_pos.x, PLAYER); 277 mvaddch(My_pos.y, My_pos.x, PLAYER); 285 * Player would get eaten at this place
|