summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-12-25 22:52:22 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-12-26 12:52:29 +0100
commit0da678df97314b19afc1fc883fbc6173917326a9 (patch)
tree67d25713a3a088296ebd68f414a68004e1ba2045 /crawl-ref/source/cloud.h
parent93ca19a0b9935ae57b3089b6b4f866ee9350885b (diff)
downloadcrawl-ref-0da678df97314b19afc1fc883fbc6173917326a9.tar.gz
crawl-ref-0da678df97314b19afc1fc883fbc6173917326a9.zip
Store the blame when clouds are placed.
The kill type and kill category are still needed only because we currently lose blame data when the agent dies or moves off-level.
Diffstat (limited to 'crawl-ref/source/cloud.h')
-rw-r--r--crawl-ref/source/cloud.h29
1 files changed, 6 insertions, 23 deletions
diff --git a/crawl-ref/source/cloud.h b/crawl-ref/source/cloud.h
index 65a78529e0..fce181ac72 100644
--- a/crawl-ref/source/cloud.h
+++ b/crawl-ref/source/cloud.h
@@ -37,30 +37,13 @@ void move_cloud_to(coord_def src, coord_def dest);
void swap_clouds(coord_def p1, coord_def p2);
void check_place_cloud(cloud_type cl_type, const coord_def& p, int lifetime,
- kill_category whose, int spread_rate = -1,
- int colour = -1, std::string name = "",
- std::string tile = "");
-void check_place_cloud(cloud_type cl_type, const coord_def& p, int lifetime,
- killer_type killer, int spread_rate = -1,
- int colour = -1, std::string name = "",
- std::string tile = "");
-void check_place_cloud(cloud_type cl_type, const coord_def& p, int lifetime,
- kill_category whose, killer_type killer,
- int spread_rate = -1,
- int colour = -1, std::string name = "",
- std::string tile = "");
-void place_cloud(cloud_type cl_type, const coord_def& ctarget,
- int cl_range, kill_category whose, int spread_rate = -1,
- int colour = -1, std::string name = "",
- std::string tile = "");
-void place_cloud(cloud_type cl_type, const coord_def& ctarget,
- int cl_range, killer_type killer, int spread_rate = -1,
- int colour = -1, std::string name = "",
- std::string tile = "");
+ const actor *agent, int spread_rate = -1,
+ int colour = -1,
+ std::string name = "", std::string tile = "");
void place_cloud(cloud_type cl_type, const coord_def& ctarget,
- int cl_range, kill_category whose, killer_type killer,
- int spread_rate = -1, int colour = -1, std::string name = "",
- std::string tile = "");
+ int cl_range, const actor *agent,
+ int spread_rate = -1, int colour = -1, std::string name = "",
+ std::string tile = "");
void manage_clouds(void);