#include "hack.h"#include "lev.h"#include "dlb.h"
Functions | |
| STATIC_DCL void | FDECL (init_rumors,(dlb *)) |
| STATIC_DCL void | FDECL (init_oracles,(dlb *)) |
| STATIC_OVL void | init_rumors (dlb *fp) |
| char * | getrumor (int truth, char *rumor_buf, boolean exclude_cookie) |
| void | outrumor (int truth, int mechanism) |
| STATIC_OVL void | init_oracles (dlb *fp) |
| void | save_oracles (int fd, int mode) |
| void | restore_oracles (int fd) |
| void | outoracle (boolean special, boolean delphi) |
| int | doconsult (struct monst *oracl) |
Variables | |
| static long | true_rumor_start |
| static long | true_rumor_size |
| static long | true_rumor_end |
| static long | false_rumor_start |
| static long | false_rumor_size |
| static long | false_rumor_end |
| static int | oracle_flg = 0 |
| static unsigned | oracle_cnt = 0 |
| static long * | oracle_loc = 0 |
| int doconsult | ( | struct monst * | oracl ) |
References A_WIS, flag::botl, BY_ORACLE, currency(), exercise(), flags, if(), invent, Monnam(), more_experienced(), multi, newexplevel(), outoracle(), outrumor(), pline(), QBUFSZ, Sprintf, TRUE, u, you::uevent, you::ugold, you::ulevel, yn, and ynq.
Referenced by domonnoise().


| STATIC_DCL void FDECL | ( | init_rumors | , |
| (dlb *) | |||
| ) |
| STATIC_DCL void FDECL | ( | init_oracles | , |
| (dlb *) | |||
| ) |
| char* getrumor | ( | int | truth, |
| char * | rumor_buf, | ||
| boolean | exclude_cookie | ||
| ) |
References A_WIS, BUFSZ, dlb, dlb_fclose, dlb_fgets, dlb_fopen, dlb_fseek, dlb_ftell, exercise(), false_rumor_size, false_rumor_start, index, init_rumors(), pline(), Rand, rn2(), RUMORFILE, SEEK_SET, Sprintf, Strcat, strstri(), true_rumor_end, true_rumor_size, true_rumor_start, and xcrypt().
Referenced by arti_speak(), outrumor(), and random_engraving().


| STATIC_OVL void init_oracles | ( | dlb * | fp ) |
References BUFSZ, and dlb_fgets.
Referenced by outoracle().

| STATIC_OVL void init_rumors | ( | dlb * | fp ) |
References BUFSZ, dlb_fgets, dlb_fseek, dlb_ftell, false_rumor_start, SEEK_CUR, SEEK_END, true_rumor_end, and true_rumor_size.
Referenced by getrumor().

References BUFSZ, COLNO, create_nhwindow, destroy_nhwindow, display_nhwindow, dlb, dlb_fclose, dlb_fgets, dlb_fopen, dlb_fseek, index, init_oracles(), NHW_TEXT, oracle_cnt, ORACLEFILE, pline(), putstr, rnd(), SEEK_SET, TRUE, and xcrypt().
Referenced by doconsult().


| void outrumor | ( | int | truth, |
| int | mechanism | ||
| ) |
References A_WIS, Blind, BUFSZ, BY_COOKIE, BY_ORACLE, BY_PAPER, exercise(), FALSE, getrumor(), is_fainted(), pline(), rn2(), and TRUE.
Referenced by doconsult(), doread(), and fpostfx().


| void restore_oracles | ( | int | fd ) |
References mread().
Referenced by restgamestate().


| void save_oracles | ( | int | fd, |
| int | mode | ||
| ) |
References bwrite(), perform_bwrite, and release_data.
Referenced by savegamestate().


| long false_rumor_end |
| long false_rumor_size |
Referenced by getrumor().
| long false_rumor_start |
Referenced by getrumor(), and init_rumors().
unsigned oracle_cnt = 0 [static] |
Referenced by outoracle().
int oracle_flg = 0 [static] |
long* oracle_loc = 0 [static] |
| long true_rumor_end |
Referenced by getrumor(), and init_rumors().
| long true_rumor_size |
Referenced by getrumor(), and init_rumors().
long true_rumor_start [static] |
Referenced by getrumor().
1.7.2