stuff.h File Reference

#include <map>

Include dependency graph for stuff.h:

Go to the source code of this file.

Classes

class  stack_iterator
class  game_ended_condition

Typedefs

typedef std::map< int, int > explicit_keymap

Functions

std::string make_time_string (time_t abs_time, bool terse=false)
std::string make_file_time (time_t when)
void set_redraw_status (uint64_t flags)
void tag_followers ()
void untag_followers ()
int stepdown_value (int base_value, int stepping, int first_step, int last_step, int ceiling_value)
int stat_mult (int stat_level, int value, int div=20, int shift=3)
int skill_bump (int skill)
unsigned char get_ch ()
void cio_init ()
void cio_cleanup ()
void clear_globals_on_exit ()
NORETURN void end (int exit_code, bool print_err=false, const char *format=NULL,...)
NORETURN void game_ended ()
NORETURN void game_ended_with_error (const std::string &message)
bool print_error_screen (const char *message,...)
void redraw_screen ()
void canned_msg (canned_message_type which_message)
bool yes_or_no (const char *fmt,...)
bool yesno (const char *str, bool safe=true, int safeanswer=0, bool clear_after=true, bool interrupt_delays=true, bool noprompt=false, const explicit_keymap *map=NULL, GotoRegion=GOTO_MSG)
int yesnoquit (const char *str, bool safe=true, int safeanswer=0, bool allow_all=false, bool clear_after=true, char alt_yes= 'Y', char alt_yes2= 'Y')
bool player_can_hear (const coord_def &p, int hear_distance=999)
char index_to_letter (int the_index)
int letter_to_index (int the_letter)
int near_stairs (const coord_def &p, int max_dist, dungeon_char_type &stair_type, branch_type &branch)
coord_def get_random_stair ()
bool testbits (uint64_t flags, uint64_t test)
void zap_los_monsters (bool items_also)
int random_rod_subtype ()
maybe_bool frombool (bool b)
bool tobool (maybe_bool mb, bool def)
bool tobool (maybe_bool mb)
int prompt_for_int (const char *prompt, bool nonneg)


Typedef Documentation

typedef std::map<int, int> explicit_keymap


Function Documentation

void canned_msg ( canned_message_type  which_message  ) 

Here is the call graph for this function:

void cio_cleanup (  ) 

Here is the call graph for this function:

void cio_init (  ) 

Here is the call graph for this function:

void clear_globals_on_exit (  ) 

Here is the call graph for this function:

NORETURN void end ( int  exit_code,
bool  print_err = false,
const char *  format = NULL,
  ... 
)

Here is the call graph for this function:

maybe_bool frombool ( bool  b  ) 

NORETURN void game_ended (  ) 

Here is the call graph for this function:

NORETURN void game_ended_with_error ( const std::string message  ) 

Here is the call graph for this function:

unsigned char get_ch (  ) 

Here is the call graph for this function:

coord_def get_random_stair (  ) 

Here is the call graph for this function:

char index_to_letter ( int  the_index  ) 

int letter_to_index ( int  the_letter  ) 

std::string make_file_time ( time_t  when  ) 

Here is the call graph for this function:

std::string make_time_string ( time_t  abs_time,
bool  terse = false 
)

int near_stairs ( const coord_def p,
int  max_dist,
dungeon_char_type stair_type,
branch_type branch 
)

Here is the call graph for this function:

bool player_can_hear ( const coord_def p,
int  hear_distance = 999 
)

Here is the call graph for this function:

bool print_error_screen ( const char *  message,
  ... 
)

Here is the call graph for this function:

int prompt_for_int ( const char *  prompt,
bool  nonneg 
)

Here is the call graph for this function:

int random_rod_subtype (  ) 

Here is the call graph for this function:

void redraw_screen (  ) 

Here is the call graph for this function:

void set_redraw_status ( uint64_t  flags  ) 

int skill_bump ( int  skill  ) 

int stat_mult ( int  stat_level,
int  value,
int  div = 20,
int  shift = 3 
)

int stepdown_value ( int  base_value,
int  stepping,
int  first_step,
int  last_step,
int  ceiling_value 
)

void tag_followers (  ) 

Here is the call graph for this function:

bool testbits ( uint64_t  flags,
uint64_t  test 
) [inline]

bool tobool ( maybe_bool  mb  ) 

bool tobool ( maybe_bool  mb,
bool  def 
)

void untag_followers (  ) 

bool yes_or_no ( const char *  fmt,
  ... 
)

Here is the call graph for this function:

bool yesno ( const char *  str,
bool  safe = true,
int  safeanswer = 0,
bool  clear_after = true,
bool  interrupt_delays = true,
bool  noprompt = false,
const explicit_keymap map = NULL,
GotoRegion  = GOTO_MSG 
)

Here is the call graph for this function:

int yesnoquit ( const char *  str,
bool  safe = true,
int  safeanswer = 0,
bool  allow_all = false,
bool  clear_after = true,
char  alt_yes = 'Y',
char  alt_yes2 = 'Y' 
)

Here is the call graph for this function:

void zap_los_monsters ( bool  items_also  ) 

Here is the call graph for this function:


Generated on Thu Jan 13 13:27:09 2011 by  doxygen 1.5.6