summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/player.h
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-10-29 01:06:07 -0700
committerMatthew Cline <zelgadis@sourceforge.net>2009-10-29 01:06:07 -0700
commit66d9bbd8356dca3d0b07145d1eea21de2d4789cc (patch)
treedbc78a23e474a38b0927e749442698c6d4b96d55 /crawl-ref/source/player.h
parentaefbb02ff564f3b513476f82d144c7c92b2bbb05 (diff)
downloadcrawl-ref-66d9bbd8356dca3d0b07145d1eea21de2d4789cc.tar.gz
crawl-ref-66d9bbd8356dca3d0b07145d1eea21de2d4789cc.zip
FR 2839627: notify when player has enough gold
The basics of a wish-list/shopping-list. While in a shop the shopping-list can be modified, and the player is notified as soon as they have enough money to buy things on the shopping-list.
Diffstat (limited to 'crawl-ref/source/player.h')
-rw-r--r--crawl-ref/source/player.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h
index 5a19614fca..f9054e4ee8 100644
--- a/crawl-ref/source/player.h
+++ b/crawl-ref/source/player.h
@@ -457,6 +457,10 @@ public:
void exercise(skill_type skill, int qty);
int skill(skill_type skill, bool skill_bump = false) const;
+ bool do_shaft();
+
+ ////////////////////////////////////////////////////////////////
+
PlaceInfo& get_place_info() const ; // Current place info
PlaceInfo& get_place_info(branch_type branch,
level_area_type level_type2) const;
@@ -469,10 +473,13 @@ public:
std::vector<PlaceInfo> get_all_place_info(bool visited_only = false,
bool dungeon_only = false) const;
- bool do_shaft();
-
bool did_escape_death() const;
void reset_escaped_death();
+
+ void add_gold(int delta);
+ void del_gold(int delta);
+ void set_gold(int amount);
+
protected:
void base_moveto(const coord_def &c);
};