/openbsd/games/phantasia/ |
H A D | misc.c | 76 Player.p_energy = Player.p_maxenergy + Player.p_shield; in movelevel() 268 Player.p_gold, Player.p_gems, Player.p_level, Player.p_charms); in tradingpost() 270 Player.p_shield, Player.p_sword, Player.p_quksilver, in tradingpost() 501 Player.p_level, Player.p_energy, Player.p_maxenergy + Player.p_shield, in displaystats() 504 Player.p_speed, Player.p_quickness + Player.p_quksilver, Player.p_might, in displaystats() 505 Player.p_strength + Player.p_sword, Player.p_gold, descrstatus(&Player)); in displaystats() 1194 Player.p_speed = Player.p_quickness + Player.p_quksilver - dtemp; in adjuststats() 1204 Player.p_might = dtemp * Player.p_strength + Player.p_sword; in adjuststats() 1208 Player.p_mana = MIN(Player.p_mana, in adjuststats() 1212 Player.p_charms = MIN(Player.p_charms, Player.p_level + 10.0); in adjuststats() [all …]
|
H A D | fight.c | 311 + (Player.p_ring.ring_inuse ? Player.p_might : 0.0); in playerhits() 323 + (Player.p_ring.ring_inuse ? Player.p_might : 0.0); in playerhits() 337 || drandom() * Player.p_speed * Player.p_brains in playerhits() 519 Player.p_gold += Player.p_gems; in monsthits() 580 Player.p_gold = MAX(0.0, Player.p_gold - 1.0); in monsthits() 928 (1.2 * (Player.p_strength + Player.p_sword) in throwspell() 955 if (Player.p_brains + Player.p_magiclvl in throwspell() 1224 Player.p_sin = MAX(0.0, Player.p_sin - 0.25); in awardtreasure() 1368 Player.p_energy = Player.p_maxenergy + Player.p_shield; in awardtreasure() 1529 Player.p_energy = Player.p_maxenergy + Player.p_shield; in awardtreasure() [all …]
|
H A D | main.c | 224 && (dtemp = fabs(Player.p_x)) == fabs(Player.p_y) in main() 420 Player.p_strength, Player.p_quickness, Player.p_mana); in rollnewplayer() 423 Player.p_energy, Player.p_brains, Player.p_magiclvl); in rollnewplayer() 433 if (Player.p_type == C_EXPER || Player.p_type == C_SUPER) in rollnewplayer() 438 sscanf(Databuf, "%lf %lf", &Player.p_x, &Player.p_y); in rollnewplayer() 562 Player.p_energy += (Player.p_maxenergy + Player.p_shield) / 15.0 in procmain() 565 MIN(Player.p_energy, Player.p_maxenergy + Player.p_shield); in procmain() 570 Player.p_mana += (Circle + Player.p_level) / 4.0; in procmain() 653 temp = distance(Player.p_x, x, Player.p_y, y); in procmain() 981 Player.p_poison = MAX(0.0, Player.p_poison - 1.0); in neatstuff() [all …]
|
H A D | interplayer.c | 300 Player.p_crowns += (Player.p_level < 1000.0) ? Other.p_crowns : 0; in battleplayer() 304 Player.p_sword = MAX(Player.p_sword, Other.p_sword); in battleplayer() 305 Player.p_shield = MAX(Player.p_shield, Other.p_shield); in battleplayer() 306 Player.p_quksilver = MAX(Player.p_quksilver, Other.p_quksilver); in battleplayer() 406 dtemp = MIN(Player.p_mana, Player.p_level * 5.0); in myturn() 545 Player.p_gold = floor(Player.p_gold / 1.25) + 0.1; in tampered() 593 Player.p_energy = (Player.p_maxenergy *= 1.05) + Player.p_shield; in tampered() 598 Player.p_poison = MIN(0.5, Player.p_poison); in tampered() 609 Player.p_energy = Player.p_maxenergy + Player.p_shield; in tampered() 623 Player.p_sin *= Player.p_sin; in tampered() [all …]
|
H A D | gamesupport.c | 99 playerp = &Player; in changestats() 101 if (strcmp(Databuf, Player.p_name) == 0) in changestats() 104 playerp = &Player; in changestats() 444 (!ingameflag || playerp != &Player)) in changestats() 455 if (ingameflag && playerp == &Player) in changestats() 695 if (strcmp(Player.p_login, sbuf.sb_login) == 0) { in enterscore() 710 if ((!found) || Player.p_level > sbuf.sb_level) in enterscore() 713 strlcpy(sbuf.sb_login, Player.p_login, in enterscore() 715 strlcpy(sbuf.sb_name, Player.p_name, in enterscore() 717 sbuf.sb_level = Player.p_level; in enterscore() [all …]
|
H A D | io.c | 204 ++Player.p_age; /* increase age */ in inputoption() 206 if (Player.p_ring.ring_type != R_SPOILED) in inputoption() 263 if (Player.p_status == S_INBATTLE || Player.p_status == S_MONSTER) in interrupt()
|
H A D | phantglobs.c | 39 struct player Player; /* stats for player */ variable
|
H A D | macros.h | 16 #define MAXMOVE() (Player.p_level * 1.5 + 1)
|
H A D | phantglobs.h | 38 extern struct player Player; /* stats for player */
|
/openbsd/games/mille/ |
H A D | mille.c | 93 if (!restore || (Player[PLAYER].total >= 5000 in main() 94 || Player[COMP].total >= 5000)) { in main() 95 if (Player[COMP].total < Player[PLAYER].total) in main() 96 Player[PLAYER].games++; in main() 97 else if (Player[COMP].total > Player[PLAYER].total) in main() 98 Player[COMP].games++; in main() 99 Player[COMP].total = 0; in main() 100 Player[PLAYER].total = 0; in main() 121 } while (Player[COMP].total < 5000 in main() 122 && Player[PLAYER].total < 5000); in main()
|
H A D | misc.c | 128 pp = &Player[COMP]; in check_ext() 129 op = &Player[PLAYER]; in check_ext() 207 if (Player[PLAYER].total >= 5000 || Player[COMP].total >= 5000) { in check_more() 214 if (Player[PLAYER].total > Player[COMP].total) in check_more() 215 Player[PLAYER].games++; in check_more() 216 else if (Player[PLAYER].total < Player[COMP].total) in check_more() 217 Player[COMP].games++; in check_more() 218 Player[COMP].total = 0; in check_more() 219 Player[PLAYER].total = 0; in check_more()
|
H A D | end.c | 52 num = pp - Player; in finalscore() 71 if (Player[other(num)].mileage == 0) { in finalscore() 92 num = pp - Player; in extrapolate() 98 pp = &Player[other(num)]; in extrapolate() 108 pp = &Player[num]; in extrapolate() 122 if (Player[other(num)].mileage == 0) { in extrapolate() 138 for (pp = Player; pp < &Player[2]; pp++) { in undoex()
|
H A D | init.c | 53 pp = &Player[i]; in init() 80 sort(Player[PLAYER].hand); in init() 128 for (pp = Player; pp <= &Player[COMP]; pp++) { in newboard() 150 for (pp = Player; pp <= &Player[COMP]; pp++) { in newboard() 198 for (pp = Player; pp <= &Player[COMP]; pp++) { in newscore() 205 Player[PLAYER].was_finished = !Finished; in newscore() 206 Player[COMP].was_finished = !Finished; in newscore()
|
H A D | move.c | 53 pp = &Player[Play]; in domove() 127 if (Order && Movetype != M_DRAW && goodplay && pp == &Player[PLAYER]) in domove() 157 for (pp = Player; pp < &Player[2]; pp++) { in check_go() 158 op = (pp == &Player[COMP] ? &Player[PLAYER] : &Player[COMP]); in check_go() 254 pp = &Player[other(Play)]; in playcard() 263 pp = &Player[Play]; in playcard() 267 pp = &Player[other(Play)]; in playcard() 274 pp = &Player[Play]; in playcard() 320 if (pp == &Player[PLAYER]) in playcard()
|
H A D | print.c | 49 pp = &Player[k]; in prboard() 77 pp = &Player[PLAYER]; in prboard() 116 for (pp = Player; pp < &Player[2]; pp++) { in prscore() 117 x = (pp - Player) * 6 + 21; in prscore()
|
H A D | varpush.c | 67 { (void *) Player, sizeof Player } in varpush()
|
H A D | extern.c | 163 PLAY Player[2]; /* Player descriptions */ variable
|
H A D | mille.h | 206 extern PLAY Player[2];
|
/openbsd/games/hunt/huntd/ |
H A D | terminal.c | 56 for (pp = Player; pp < End_player; pp++) in cgoto() 80 for (pp = Player; pp < End_player; pp++) in outch() 102 for (pp = Player; pp < End_player; pp++) in outstr() 150 for (pp = Player; pp < End_player; pp++) in clrscr() 199 for (pp = Player; pp < End_player; pp++) in sendcom() 216 for (pp = Player; pp < End_player; pp++) in flush()
|
H A D | extern.c | 59 PLAYER Player[MAXPL]; /* all the players */ variable 60 PLAYER *End_player = Player; /* last active player slot */
|
H A D | driver.c | 222 for (pp = Player; pp < End_player; ) in main() 234 for (pp = Player; pp < End_player; pp++) in main() 257 for (pp = Player; pp < End_player; pp++) { in main() 652 y = STAT_PLAY_ROW + 1 + (attacker - Player); in checkdam() 843 STAT_PLAY_ROW + 1 + (pp - Player), in zap() 866 STAT_MON_ROW + 1 + (pp - Player), STAT_NAME_COL, in zap() 884 for (np = Player; np < End_player; np++) in zap() 968 for (pp = Player; pp < End_player; pp++) in cleanup() 1054 for (pp = Player; pp < End_player; pp++) in print_stats()
|
H A D | draw.c | 109 for (i = STAT_PLAY_ROW + 1, np = Player; np < End_player; np++, i++) { in drawstatus() 232 for (pp = Player; pp < End_player; pp++) in check() 263 STAT_PLAY_ROW + 1 + (pp - Player), STAT_SCAN_COL, in showstat() 291 for (newp = Player; newp < End_player; newp++) { in drawplayer()
|
H A D | shots.c | 77 for (pp = Player; pp < End_player; pp++) in can_moveshots() 184 for (pp = Player; pp < End_player; pp++) in moveshots() 196 for (pp = Player; pp < End_player; pp++) in moveshots() 207 for (pp = Player; pp < End_player; pp++) { in moveshots() 1111 for (pp = Player; pp < End_player; pp++) in play_at() 1199 for (pp = Player; pp < End_player; pp++) in mark_player()
|
H A D | expl.c | 75 for (pp = Player; pp < End_player; pp++) { in showexpl() 124 for (pp = Player; pp < End_player; pp++) in rollexpl()
|
H A D | answer.c | 224 if (End_player < &Player[MAXPL]) in answer_next() 385 y = STAT_PLAY_ROW + 1 + (newpp - Player); in stplayer() 386 for (pp = Player; pp < End_player; pp++) { in stplayer()
|