summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-11 14:14:10 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-11 14:14:10 +0000
commit18dac1924da21380570eb193e6a363e0c813c9de (patch)
treedd9659e0a9a5b3127d4736aa3ca6b411ce9f2d90 /crawl-ref/source/travel.h
parentf95c27c96c4fa900e334d269619503410b5d1f78 (diff)
downloadcrawl-ref-18dac1924da21380570eb193e6a363e0c813c9de.tar.gz
crawl-ref-18dac1924da21380570eb193e6a363e0c813c9de.zip
Merged trunk fixes back to 0.2:
- Moth of wrath rage attack. - Pulsating lump mutation attack. - Combat messages for out-of-view monsters fighting monsters in LOS. - Waypoint deletion. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.2@1449 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r--crawl-ref/source/travel.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h
index d60311b07c..eb8f1abd13 100644
--- a/crawl-ref/source/travel.h
+++ b/crawl-ref/source/travel.h
@@ -162,6 +162,13 @@ public:
unsigned short packed_place() const;
std::string describe(bool long_name = false, bool with_number = true) const;
+ void reset()
+ {
+ branch = 0;
+ depth = -1;
+ level_type = LEVEL_DUNGEON;
+ }
+
bool is_valid() const
{
return (branch != -1 && depth != -1) || level_type != LEVEL_DUNGEON;
@@ -234,6 +241,12 @@ struct level_pos
return id.depth > -1 && pos.x != -1 && pos.y != -1;
}
+ void reset()
+ {
+ id.reset();
+ pos = coord_def(-1, -1);
+ }
+
void save(FILE *) const;
void load(FILE *);
};
@@ -404,6 +417,7 @@ public:
void set_level_excludes();
void add_waypoint(int x = -1, int y = -1);
+ void delete_waypoint();
unsigned char is_waypoint(const level_pos &lp) const;
void list_waypoints() const;
void travel_to_waypoint(int number);