game_state Struct Reference

#include <state.h>

Collaboration diagram for game_state:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 game_state ()
void add_startup_error (const std::string &error)
void show_startup_errors ()
bool is_replaying_keys () const
bool is_repeating_cmd () const
void cancel_cmd_repeat (std::string reason="")
void cancel_cmd_again (std::string reason="")
void cancel_cmd_all (std::string reason="")
void cant_cmd_repeat (std::string reason="")
void cant_cmd_again (std::string reason="")
void cant_cmd_any (std::string reason="")
void zero_turns_taken ()
void check_term_size () const
bool is_god_acting () const
bool is_god_retribution () const
god_type which_god_acting () const
void inc_god_acting (bool is_retribution=false)
void inc_god_acting (god_type which_god, bool is_retribution=false)
void dec_god_acting ()
void dec_god_acting (god_type which_god)
void clear_god_acting ()
std::vector< god_act_stateother_gods_acting () const
bool is_mon_acting () const
monsterwhich_mon_acting () const
void inc_mon_acting (monster *mon)
void dec_mon_acting (monster *mon)
void clear_mon_acting ()
void mon_gone (monster *mon)
void dump ()
bool player_is_dead () const
bool game_standard_levelgen () const
bool game_is_normal () const
bool game_is_tutorial () const
bool game_is_arena () const
bool game_is_sprint () const
bool game_is_zotdef () const
bool game_is_hints () const
std::string game_type_name () const
std::string game_savedir_path () const
std::string game_type_qualifier () const

Static Public Member Functions

static std::string game_type_name_for (game_type gt)

Public Attributes

std::vector< std::stringcommand_line_arguments
bool game_crashed
bool game_wants_emergency_save
bool mouse_enabled
bool waiting_for_command
bool terminal_resized
bool io_inited
bool need_save
bool saving_game
bool updating_scores
int seen_hups
bool map_stat_gen
game_type type
bool arena_suspended
bool dump_maps
bool test
bool script
bool build_db
std::vector< std::stringtests_selected
std::vector< std::stringscript_args
bool unicode_ok
bool show_more_prompt
std::string sprint_map
std::string(* glyph2strfn )(unsigned glyph)
int(* multibyte_strlen )(const std::string &s)
void(* terminal_resize_handler )()
void(* terminal_resize_check )()
bool doing_prev_cmd_again
command_type prev_cmd
std::deque< int > prev_cmd_keys
command_type repeat_cmd
bool cmd_repeat_start
command_type prev_repeat_cmd
int prev_cmd_repeat_goal
bool cmd_repeat_started_unsafe
std::vector< std::stringstartup_errors
bool level_annotation_shown
bool mlist_targeting
int darken_range
bool unsaved_macros
int minorVersion

Protected Member Functions

void reset_cmd_repeat ()
void reset_cmd_again ()

Protected Attributes

god_act_state god_act
std::vector< god_act_stategod_act_stack
monstermon_act
std::vector< monster * > mon_act_stack

Friends

class mon_acting


Constructor & Destructor Documentation

game_state::game_state (  ) 

Here is the call graph for this function:


Member Function Documentation

void game_state::reset_cmd_repeat (  )  [protected]

void game_state::reset_cmd_again (  )  [protected]

void game_state::add_startup_error ( const std::string error  ) 

void game_state::show_startup_errors (  ) 

Here is the call graph for this function:

bool game_state::is_replaying_keys (  )  const

Here is the call graph for this function:

bool game_state::is_repeating_cmd (  )  const

void game_state::cancel_cmd_repeat ( std::string  reason = ""  ) 

Here is the call graph for this function:

void game_state::cancel_cmd_again ( std::string  reason = ""  ) 

Here is the call graph for this function:

void game_state::cancel_cmd_all ( std::string  reason = ""  ) 

Here is the call graph for this function:

void game_state::cant_cmd_repeat ( std::string  reason = ""  ) 

Here is the call graph for this function:

void game_state::cant_cmd_again ( std::string  reason = ""  ) 

Here is the call graph for this function:

void game_state::cant_cmd_any ( std::string  reason = ""  ) 

Here is the call graph for this function:

void game_state::zero_turns_taken (  ) 

Here is the call graph for this function:

void game_state::check_term_size (  )  const [inline]

bool game_state::is_god_acting (  )  const

bool game_state::is_god_retribution (  )  const

Here is the call graph for this function:

god_type game_state::which_god_acting (  )  const

void game_state::inc_god_acting ( bool  is_retribution = false  ) 

void game_state::inc_god_acting ( god_type  which_god,
bool  is_retribution = false 
)

Here is the call graph for this function:

void game_state::dec_god_acting (  ) 

void game_state::dec_god_acting ( god_type  which_god  ) 

Here is the call graph for this function:

void game_state::clear_god_acting (  ) 

Here is the call graph for this function:

std::vector< god_act_state > game_state::other_gods_acting (  )  const

Here is the call graph for this function:

bool game_state::is_mon_acting (  )  const

monster * game_state::which_mon_acting (  )  const

void game_state::inc_mon_acting ( monster mon  ) 

Here is the call graph for this function:

void game_state::dec_mon_acting ( monster mon  ) 

Here is the call graph for this function:

void game_state::clear_mon_acting (  ) 

void game_state::mon_gone ( monster mon  ) 

Here is the call graph for this function:

void game_state::dump (  ) 

Here is the call graph for this function:

bool game_state::player_is_dead (  )  const

bool game_state::game_standard_levelgen (  )  const

Here is the call graph for this function:

bool game_state::game_is_normal (  )  const

bool game_state::game_is_tutorial (  )  const

bool game_state::game_is_arena (  )  const

bool game_state::game_is_sprint (  )  const

bool game_state::game_is_zotdef (  )  const

bool game_state::game_is_hints (  )  const

std::string game_state::game_type_name (  )  const

Here is the call graph for this function:

std::string game_state::game_savedir_path (  )  const

Here is the call graph for this function:

std::string game_state::game_type_qualifier (  )  const

Here is the call graph for this function:

std::string game_state::game_type_name_for ( game_type  gt  )  [static]


Friends And Related Function Documentation

friend class mon_acting [friend]


Member Data Documentation

std::deque<int> game_state::prev_cmd_keys

std::vector<god_act_state> game_state::god_act_stack [protected]

std::vector<monster* > game_state::mon_act_stack [protected]


The documentation for this struct was generated from the following files:

Generated on Thu Jan 13 13:34:03 2011 by  doxygen 1.5.6