00001
00002
00003
00004
00005
00006
00007
00008 #ifndef VIEW_H
00009 #define VIEW_H
00010
00011 #include "externs.h"
00012 #include "show.h"
00013
00014 void init_monsters_seens();
00015
00016 bool mons_near(const monster* mons);
00017 bool mon_enemies_around(const monster* mons);
00018 void seen_monsters_react();
00019
00020 void find_features(const std::vector<coord_def>& features,
00021 wchar_t feature, std::vector<coord_def> *found);
00022
00023 bool magic_mapping(int map_radius, int proportion, bool suppress_msg,
00024 bool force = false, bool deterministic = false,
00025 bool circular = false,
00026 coord_def origin = coord_def(-1, -1));
00027 void reautomap_level();
00028 void fully_map_level();
00029
00030 bool is_feature(wchar_t feature, const coord_def& where);
00031
00032 void clear_feature_overrides();
00033 void add_feature_override(const std::string &text);
00034
00035 std::string screenshot(bool fullscreen = false);
00036
00037 bool view_update();
00038 void view_update_at(const coord_def &pos);
00039 void flash_view(uint8_t colour = BLACK);
00040 void flash_view_delay(uint8_t colour = BLACK, int delay = 150);
00041 #ifndef USE_TILE
00042 void flash_monster_colour(const monster* mon, uint8_t fmc_colour,
00043 int fmc_delay);
00044 #endif
00045
00046 void viewwindow(bool show_updates = true);
00047 void update_monsters_in_view();
00048 void handle_seen_interrupt(monster* mons,
00049 std::vector<std::string>* msgs_buf = NULL);
00050 void flush_comes_into_view();
00051
00052 void toggle_show_terrain();
00053 void reset_show_terrain();
00054
00055 void handle_terminal_resize(bool redraw = true);
00056
00057 #endif