Home
last modified time | relevance | path

Searched refs:cur_p (Results 1 – 14 of 14) sorted by relevance

/minix/games/monop/
H A Djail.c50 if (cur_p->loc != JAIL) { in card()
58 ret_card(cur_p); in card()
60 cur_p->in_jail = 0; in card()
69 if (cur_p->loc != JAIL) { in pay()
73 cur_p->loc = 10; in pay()
74 cur_p->money -= 50; in pay()
75 cur_p->in_jail = 0; in pay()
90 cur_p->money -= 50; in move_jail()
92 cur_p->loc = 10; in move_jail()
93 cur_p->in_jail = 0; in move_jail()
[all …]
H A Dspec.c58 worth = cur_p->money + prop_worth(cur_p); in inc_tax()
66 cur_p->money -= 200; in inc_tax()
74 cur_p->money -= worth; in inc_tax()
86 cur_p->loc = JAIL; in goto_jail()
96 cur_p->money -= 75; in lux_tax()
H A Dcards.c262 cur_p->money += num; in get_card()
271 cur_p->money -= num; in get_card()
276 num -= cur_p->loc; in get_card()
285 num = (int)((cur_p->loc + 5)/10)*10 + 5 - cur_p->loc; in get_card()
289 if (cur_p->loc >= 12 && cur_p->loc < 28) in get_card()
290 num = 28 - cur_p->loc; in get_card()
292 num = 12 - cur_p->loc; in get_card()
313 for (op = cur_p->own_list; op; op = op->next) in get_card()
327 cur_p->money -= num; in get_card()
330 cur_p->num_gojf++; in get_card()
H A Dtrade.c246 if (cur_p->money <= 0) { in resign()
247 switch (board[cur_p->loc].type) { in resign()
251 new_own = board[cur_p->loc].owner; in resign()
291 trades[1].cash = cur_p->money > 0 ? cur_p->money : 0; in resign()
292 trades[1].gojf = cur_p->num_gojf; in resign()
293 trades[1].prop_list = cur_p->own_list; in resign()
298 for (op = cur_p->own_list; op; op = op->next) { in resign()
307 if (cur_p->num_gojf) in resign()
308 ret_card(cur_p); in resign()
H A Dmorg.c122 for (op = cur_p->own_list; op; op = op->next) in set_mlist()
147 cur_p->money += price; in m()
189 for (op = cur_p->own_list; op; op = op->next) in set_umlist()
211 cur_p->money -= price; in unm()
223 while (cur_p->money < 0) { in force_morg()
H A Dmonop.c126 *cur_p; /* pointer to current player's struct */ variable
245 printf("\n%s (%d) (cash $%d) on %s\n", cur_p->name, player + 1, in main()
246 cur_p->money, board[cur_p->loc].name); in main()
278 cur_p = play = calloc((size_t)num_play, sizeof (PLAY)); in getplayers()
342 cur_p = &play[max_pl]; in init_players()
343 printf("%s (%d) goes first\n", cur_p->name, max_pl + 1); in init_players()
H A Dexecute.c90 printf("%s rolled doubles. Goes again\n", cur_p->name); in execute()
104 if (cur_p->loc == JAIL) { in do_move()
134 old_loc = cur_p->loc; in move()
135 cur_p->loc = (cur_p->loc + rl) % N_SQRS; in move()
136 if (cur_p->loc < old_loc && rl > 0) { in move()
137 cur_p->money += 200; in move()
151 sqp = &board[cur_p->loc]; in show_move()
179 cur_p->money -= sqp->cost; in show_move()
227 cur_p = NULL; in reset_game()
411 if (play == NULL || cur_p == NULL || num_play < 2) { in rest_f()
[all …]
H A Dmisc.c72 if (cur_p->money < 0) in notify()
73 printf("That leaves you $%d in debt\n", -cur_p->money); in notify()
74 else if (cur_p->money == 0) in notify()
76 else if (fixing && !told_em && cur_p->money > 0) { in notify()
89 cur_p = &play[player]; in next_play()
H A Dhouses.c71 for (op = cur_p->own_list; op && op->sqr->type != PRPTY; op = op->next) in buy_houses()
208 cur_p->money -= total_purchase * price; in buy_h()
230 for (op = cur_p->own_list; op;) in sell_houses()
316 cur_p->money += tot * price; in sell_h()
H A Dprop.c56 add_list(playernum, &(play[playernum].own_list), cur_p->loc); in buy()
198 buy(i, &board[cur_p->loc]); in bid()
H A Drent.c94 cur_p->money -= rnt; in rent()
H A Dmonop.h142 extern PLAY *play, *cur_p;
H A Dprint.c75 if (cur_p == &play[i]) in where()
/minix/external/bsd/libevent/dist/
H A Dhttp.c505 struct tm *cur_p; in evhttp_maybe_add_date_header() local
508 cur_p = gmtime(&t); in evhttp_maybe_add_date_header()
511 cur_p = &cur; in evhttp_maybe_add_date_header()
514 "%a, %d %b %Y %H:%M:%S GMT", cur_p) != 0) { in evhttp_maybe_add_date_header()