game_options Struct Reference

#include <options.h>

Collaboration diagram for game_options:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< std::string,
std::string
opt_map

Public Member Functions

 game_options ()
void reset_options ()
void read_option_line (const std::string &s, bool runscripts=false)
void read_options (InitLineInput &, bool runscripts, bool clear_aliases=true)
void include (const std::string &file, bool resolve, bool runscript)
void report_error (const std::string &error)
std::string resolve_include (const std::string &file, const char *type="")
bool was_included (const std::string &file) const
int o_int (const char *name, int def=0) const
bool o_bool (const char *name, bool def=false) const
std::string o_str (const char *name, const char *def=NULL) const
int o_colour (const char *name, int def=LIGHTGREY) const
void fixup_options ()

Static Public Member Functions

static std::string resolve_include (std::string including_file, std::string included_file, const std::vector< std::string > *rcdirs=NULL) throw (std::string)

Public Attributes

std::string filename
std::string basefilename
int line_num
std::vector< feature_overridefeature_overrides
std::vector< mon_displaymon_glyph_overrides
unsigned cset_override [NUM_CSET][NUM_DCHAR_TYPES]
std::string save_dir
std::string macro_dir
std::string morgue_dir
std::string shared_dir
std::vector< std::stringadditional_macro_files
uint32_t seed
bool suppress_startup_errors
bool mouse_input
int view_max_width
int view_max_height
int mlist_min_height
int msg_min_height
int msg_max_height
bool mlist_allow_alternate_layout
bool messages_at_top
bool mlist_targeting
bool classic_hud
bool msg_condense_repeats
bool msg_condense_short
bool view_lock_x
bool view_lock_y
bool center_on_scroll
bool symmetric_scroll
int scroll_margin_x
int scroll_margin_y
bool verbose_monster_pane
int autopickup_on
int default_friendly_pickup
bool show_gold_turns
bool show_real_turns
bool show_beam
uint32_t autopickups
bool show_inventory_weights
bool colour_map
bool clean_map
bool show_uncursed
bool easy_open
bool easy_unequip
bool equip_unequip
bool easy_butcher
bool always_confirm_butcher
bool chunks_autopickup
bool prompt_for_swap
bool list_rotten
bool prefer_safe_chunks
bool easy_eat_chunks
bool easy_eat_gourmand
bool easy_eat_contaminated
bool default_target
bool autopickup_no_burden
bool note_all_skill_levels
bool note_skill_max
bool note_all_spells
std::string user_note_prefix
int note_hp_percent
bool note_xom_effects
int ood_interesting
int rare_interesting
confirm_level_type easy_confirm
bool easy_quit_item_prompts
confirm_prompt_type allow_self_target
int colour [16]
int background_colour
msg_colour_type channels [NUM_MESSAGE_CHANNELS]
bool darken_beyond_range
int hp_warning
int magic_point_warning
bool clear_messages
bool show_more
bool small_more
unsigned friend_brand
unsigned neutral_brand
bool no_dark_brand
bool macro_meta_entry
int fire_items_start
std::vector< unsigned > fire_order
bool auto_list
bool flush_input [NUM_FLUSH_REASONS]
char_set_type char_set
FixedVector< unsigned,
NUM_DCHAR_TYPES > 
char_table
int num_colours
std::string pizza
int sc_entries
int sc_format
std::vector< std::pair< int,
int > > 
hp_colour
std::vector< std::pair< int,
int > > 
mp_colour
std::vector< std::pair< int,
int > > 
stat_colour
std::string map_file_name
std::vector< std::pair
< text_pattern, bool > > 
force_autopickup
std::vector< text_patternnote_monsters
std::vector< text_patternnote_messages
std::vector< std::pair
< text_pattern, std::string > > 
autoinscriptions
std::vector< text_patternnote_items
std::vector< int > note_skill_levels
bool autoinscribe_artefacts
bool autoinscribe_cursed
bool pickup_thrown
bool pickup_dropped
int travel_delay
int explore_delay
int arena_delay
bool arena_dump_msgs
bool arena_dump_msgs_all
bool arena_list_eq
std::vector< message_filterforce_more_message
int stash_tracking
int tc_reachable
int tc_excluded
int tc_exclude_circle
int tc_dangerous
int tc_disconnected
std::vector< text_patternauto_exclude
int travel_stair_cost
bool show_waypoints
bool classic_item_colours
bool item_colour
unsigned evil_colour
unsigned detected_monster_colour
unsigned detected_item_colour
unsigned status_caption_colour
unsigned heap_brand
unsigned stab_brand
unsigned may_stab_brand
unsigned feature_item_brand
unsigned trap_item_brand
bool trap_prompt
int item_stack_summary_minimum
int explore_stop
int explore_stop_prompt
std::vector< text_patternexplore_stop_pickup_ignore
bool explore_greedy
int explore_item_greed
bool explore_improved
std::vector< sound_mappingsound_mappings
std::vector< colour_mappingmenu_colour_mappings
std::vector
< message_colour_mapping
message_colour_mappings
bool menu_colour_prefix_class
bool menu_colour_shops
std::vector< menu_sort_conditionsort_menus
int dump_kill_places
int dump_message_count
int dump_item_origins
int dump_item_origin_price
bool dump_book_spells
std::vector< std::stringdump_order
bool level_map_title
bool target_unshifted_dirs
int drop_mode
int pickup_mode
bool easy_exit_menu
int assign_item_slot
bool restart_after_game
std::vector< text_patterndrop_filter
FixedArray< bool, NUM_DELAYS,
NUM_AINTERRUPTS > 
activity_interrupts
bool remember_name
bool dos_use_background_intensity
bool use_fake_cursor
bool use_fake_player_cursor
bool show_player_species
int level_map_cursor_step
int kill_map [KC_NCATEGORIES]
bool rest_wait_both
opt_map named_options
newgame_def game


Member Typedef Documentation


Constructor & Destructor Documentation

game_options::game_options (  ) 

Here is the call graph for this function:


Member Function Documentation

void game_options::reset_options (  ) 

Here is the call graph for this function:

void game_options::read_option_line ( const std::string s,
bool  runscripts = false 
)

Here is the call graph for this function:

void game_options::read_options ( InitLineInput il,
bool  runscripts,
bool  clear_aliases = true 
)

Here is the call graph for this function:

void game_options::include ( const std::string file,
bool  resolve,
bool  runscript 
)

Here is the call graph for this function:

void game_options::report_error ( const std::string error  ) 

Here is the call graph for this function:

std::string game_options::resolve_include ( const std::string file,
const char *  type = "" 
)

Here is the call graph for this function:

bool game_options::was_included ( const std::string file  )  const

std::string game_options::resolve_include ( std::string  including_file,
std::string  included_file,
const std::vector< std::string > *  rcdirs = NULL 
) throw (std::string) [static]

Here is the call graph for this function:

int game_options::o_int ( const char *  name,
int  def = 0 
) const

bool game_options::o_bool ( const char *  name,
bool  def = false 
) const

std::string game_options::o_str ( const char *  name,
const char *  def = NULL 
) const

int game_options::o_colour ( const char *  name,
int  def = LIGHTGREY 
) const

Here is the call graph for this function:

void game_options::fixup_options (  ) 

Here is the call graph for this function:


Member Data Documentation

unsigned game_options::cset_override[NUM_CSET][NUM_DCHAR_TYPES]

msg_colour_type game_options::channels[NUM_MESSAGE_CHANNELS]

std::vector<unsigned> game_options::fire_order

bool game_options::flush_input[NUM_FLUSH_REASONS]

FixedVector<unsigned, NUM_DCHAR_TYPES> game_options::char_table

std::vector<std::pair<int, int> > game_options::hp_colour

std::vector<std::pair<int, int> > game_options::mp_colour

std::vector<std::pair<int, int> > game_options::stat_colour

std::vector<std::pair<text_pattern, bool> > game_options::force_autopickup

FixedArray<bool, NUM_DELAYS, NUM_AINTERRUPTS> game_options::activity_interrupts

int game_options::kill_map[KC_NCATEGORIES]


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

Generated on Thu Jan 13 13:33:52 2011 by  doxygen 1.5.6