Functions | Variables

rumors.c File Reference

#include "hack.h"
#include "lev.h"
#include "dlb.h"
Include dependency graph for rumors.c:

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

Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

STATIC_DCL void FDECL ( init_rumors  ,
(dlb *)   
)
STATIC_DCL void FDECL ( init_oracles  ,
(dlb *)   
)
char* getrumor ( int  truth,
char *  rumor_buf,
boolean  exclude_cookie 
)
STATIC_OVL void init_oracles ( dlb *  fp )

References BUFSZ, and dlb_fgets.

Referenced by outoracle().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void outoracle ( boolean  special,
boolean  delphi 
)

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void restore_oracles ( int  fd )

References mread().

Referenced by restgamestate().

Here is the call graph for this function:

Here is the caller graph for this function:

void save_oracles ( int  fd,
int  mode 
)

References bwrite(), perform_bwrite, and release_data.

Referenced by savegamestate().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Referenced by getrumor().

Referenced by getrumor(), and init_rumors().

unsigned oracle_cnt = 0 [static]

Referenced by outoracle().

int oracle_flg = 0 [static]
long* oracle_loc = 0 [static]

Referenced by getrumor(), and init_rumors().

Referenced by getrumor(), and init_rumors().

long true_rumor_start [static]

Referenced by getrumor().