diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-27 03:27:26 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-27 03:28:33 +0100 |
commit | acaa14cd0e82de32f1a8f76e54405023eb0b1973 (patch) | |
tree | 44be8e7c2fd611b36cdca082da22925f91515e59 /crawl-ref/source/travel.h | |
parent | f848a81e607b8b674e10040b899c68901662a310 (diff) | |
download | crawl-ref-acaa14cd0e82de32f1a8f76e54405023eb0b1973.tar.gz crawl-ref-acaa14cd0e82de32f1a8f76e54405023eb0b1973.zip |
Move most exclusion code from travel.cc to exclude.cc.
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r-- | crawl-ref/source/travel.h | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index cfc8f95c9a..3dcf059577 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -8,6 +8,7 @@ #include "externs.h" +#include "exclude.h" #include "los.h" #include <stdio.h> @@ -60,23 +61,14 @@ void initialise_travel(); void init_travel_terrain_check(bool check_race_equip = true); void stop_running(void); void travel_init_new_level(); -void cycle_exclude_radius(const coord_def &p); -void del_exclude(const coord_def &p); -void set_exclude(const coord_def &p, int radius = LOS_RADIUS, - bool autoexcl = false, bool vaultexcl = false); -void maybe_remove_autoexclusion(const coord_def &p); -std::string get_exclusion_desc(); -void clear_excludes(); unsigned char is_waypoint(const coord_def &p); -bool is_exclude_root(const coord_def &p); command_type direction_to_command(char x, char y); bool is_resting(void); #ifdef CLUA_BINDINGS const char *trap_name(const coord_def &p); #endif void explore_pickup_event(int did_pickup, int tried_pickup); -bool is_excluded(const coord_def &p); bool feat_is_traversable(dungeon_feature_type feat); bool is_unknown_stair(const coord_def &p, dungeon_feature_type remembered_feat = NUM_REAL_FEATURES); @@ -350,29 +342,6 @@ public: bool can_travel() const { return (type == PHYSICAL); } }; -void init_exclusion_los(); -void update_exclusion_los(std::vector<coord_def> changed); - -struct travel_exclude -{ - coord_def pos; // exclusion centre - int radius; // exclusion radius - los_def los; // los from exclusion centre - bool uptodate; // Is los up to date? - bool autoex; // Was set automatically. - monster_type mon; // Monster around which exclusion is centered. - bool vault; // Is this exclusion set by a vault? - - travel_exclude(const coord_def &p, int r = LOS_RADIUS, - bool autoex = false, monster_type mons = MONS_NO_MONSTER, - bool vault = false); - - int radius_sq() const; - void set_los(); - bool in_bounds(const coord_def& p) const; - bool affects(const coord_def& p) const; -}; - // Information on a level that interlevel travel needs. struct LevelInfo { |