Searched refs:top_card (Results 1 - 4 of 4) sorted by relevance

/openbsd-current/games/monop/
H A Ddeck.h42 int16_t top_card; /* number of last card picked */ member in struct:dk_st
H A Dcards.c65 if (fread(&deck[0].top_card, sizeof(deck[0].top_card), 1, deckf) != 1)
70 deck[0].top_card = ntohs(deck[0].top_card);
74 if (fread(&deck[1].top_card, sizeof(deck[1].top_card), 1, deckf) != 1)
79 deck[1].top_card = ntohs(deck[1].top_card);
100 dp->top_card = 0;
124 fseek(deckf, dp->offsets[dp->top_card], SEEK_SE
[all...]
H A Dinitdeck.c95 fwrite(&deck[0].top_card, sizeof(deck[0].top_card), 1, outf);
99 fwrite(&deck[0].top_card, sizeof(deck[0].top_card), 1, outf);
111 deck[0].top_card = htons(deck[0].top_card);
112 fwrite(&deck[0].top_card, sizeof(deck[0].top_card), 1, outf);
118 deck[1].top_card = htons(deck[1].top_card);
[all...]
H A Dexecute.c227 (int)(deck[i].top_card), (int)(deck[i].gojf_used));
372 deck[i].top_card = j;

Completed in 166 milliseconds