summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-22 08:41:20 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-22 08:41:20 +0000
commit1d0f57cbceb778139ca215cc4fcfd1584951f6dd (patch)
treecafd60c944c51fcce778aa5d6912bc548c518339 /crawl-ref/source/monplace.h
parent6f5e187a9e5cd348296dba2fd89d2e206e775a01 (diff)
downloadcrawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.tar.gz
crawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.zip
Merged stone_soup r15:451 into trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.h')
-rw-r--r--crawl-ref/source/monplace.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/crawl-ref/source/monplace.h b/crawl-ref/source/monplace.h
index f2fde75111..5dfb00e4b7 100644
--- a/crawl-ref/source/monplace.h
+++ b/crawl-ref/source/monplace.h
@@ -3,6 +3,8 @@
* Summary: Functions used when placing monsters in the dungeon.
* Written by: Linley Henzell
*
+ * Modified for Crawl Reference by $Author$ on $Date$
+ *
* Change History (most recent first):
*
* <1> -/--/-- LRH Created
@@ -37,7 +39,8 @@
int mons_place( int mon_type, char behaviour, int target, bool summoned,
int px, int py, int level_type = LEVEL_DUNGEON,
int proximity = PROX_ANYWHERE, int extra = 250,
- int dur = 0 );
+ int dur = 0,
+ bool permit_bands = false );
// last updated 12may2000 {dlb}
/* ***********************************************************************
@@ -46,14 +49,14 @@ int mons_place( int mon_type, char behaviour, int target, bool summoned,
* spells2 - spells3 - spells4
* *********************************************************************** */
int create_monster( int cls, int dur, int beha, int cr_x, int cr_y,
- int hitting, int zsec );
+ int hitting, int zsec, bool permit_bands = false );
// last updated 12may2000 {dlb}
/* ***********************************************************************
* called from: misc - monplace - spells3
* *********************************************************************** */
-bool empty_surrounds( int emx, int emy, unsigned char spc_wanted,
+bool empty_surrounds( int emx, int emy, unsigned char spc_wanted, int radius,
bool allow_centre, FixedVector<char, 2>& empty );
@@ -78,4 +81,19 @@ bool place_monster( int &id, int mon_type, int power, char behaviour,
int proximity = PROX_ANYWHERE, int extra = 250,
int dur = 0 );
+monster_type rand_dragon( dragon_class_type type );
+
+/* ***********************************************************************
+ * called from: monplace monstuff
+ * *********************************************************************** */
+void mark_interesting_monst(struct monsters* monster,
+ char behaviour = BEH_SLEEP);
+
+bool grid_compatible(int grid_wanted, int actual_grid, bool generation = false);
+bool monster_habitable_grid(int monster_class, int actual_grid,
+ bool flies = false);
+bool monster_habitable_grid(const monsters *m, int actual_grid);
+bool monster_floundering(const monsters *m);
+bool monster_can_submerge(int monster_class, int grid);
+
#endif // MONPLACE_H