From 1d0f57cbceb778139ca215cc4fcfd1584951f6dd Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 22 Nov 2006 08:41:20 +0000 Subject: Merged stone_soup r15:451 into trunk. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/view.h | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/view.h') diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h index b36ff18551..26d17ada8c 100644 --- a/crawl-ref/source/view.h +++ b/crawl-ref/source/view.h @@ -3,6 +3,8 @@ * Summary: Misc function used to render the dungeon. * Written by: Linley Henzell * + * Modified for Crawl Reference by $Author$ on $Date$ + * * Change History (most recent first): * * <2> 9/29/99 BCR Added the BORDER_COLOR define @@ -16,10 +18,13 @@ #include "externs.h" - #define BORDER_COLOR BROWN +void init_char_table(char_set_type set); +void init_feature_table( void ); + int get_number_of_lines(void); +int get_number_of_cols(void); /* *********************************************************************** * called from: dump_screenshot - chardump @@ -69,14 +74,14 @@ void magic_mapping(int map_radius, int proportion); * called from: acr - effects - it_use2 - it_use3 - item_use - spell - * spells - spells3 - spells4 * *********************************************************************** */ -void noisy( int loudness, int nois_x, int nois_y ); +bool noisy( int loudness, int nois_x, int nois_y, const char *msg = NULL ); // last updated 12may2000 {dlb} /* *********************************************************************** * called from: acr - spells3 * *********************************************************************** */ -void show_map( FixedVector& spec_place ); +void show_map( FixedVector& spec_place, bool travel_mode ); // last updated 12may2000 {dlb} @@ -108,4 +113,36 @@ void clear_map(); bool is_feature(int feature, int x, int y); +void set_envmap_char( int x, int y, unsigned char chr ); +void set_envmap_detected_item(int x, int y, bool detected = true); +void set_envmap_detected_mons(int x, int y, bool detected = true); +bool is_envmap_detected_item(int x, int y); +bool is_envmap_detected_mons(int x, int y); +void set_terrain_mapped( int x, int y ); +void set_terrain_seen( int x, int y ); +bool is_terrain_known( int x, int y ); +bool is_terrain_seen( int x, int y ); + +void clear_feature_overrides(); +void add_feature_override(const std::string &text); +void clear_cset_overrides(); +void add_cset_override(char_set_type set, const std::string &overrides); + +bool see_grid( int grx, int gry ); + +std::string screenshot(bool fullscreen = false); + +unsigned char get_sightmap_char(int feature); +unsigned char get_magicmap_char(int feature); + +void viewwindow(bool draw_it, bool do_updates); + +bool find_ray( int sourcex, int sourcey, int targetx, int targety, + bool allow_fallback, ray_def& ray ); + +#if defined(WIN32CONSOLE) || defined(DOS) +unsigned short dos_brand( unsigned short colour, + unsigned brand = CHATTR_REVERSE); +#endif + #endif -- cgit v1.2.3-54-g00ecf