summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-23 09:53:35 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-23 09:53:35 +0000
commitf99e05e0fe9978367c71ed097e18cbac86998c81 (patch)
tree49f6374d513f5344d33ec220c10a80730becc2a2 /crawl-ref/source/monplace.cc
parent639bda974405b152b7655657a8a4af441888d74c (diff)
downloadcrawl-ref-f99e05e0fe9978367c71ed097e18cbac86998c81.tar.gz
crawl-ref-f99e05e0fe9978367c71ed097e18cbac86998c81.zip
Some more card implementations (resists in Helm, demon summoning.)
More type-safety. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1624 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r--crawl-ref/source/monplace.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index 955e7776c4..35149b333a 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -38,7 +38,7 @@
static int band_member(band_type band, int power);
static band_type choose_band( int mon_type, int power, int &band_size );
-static int place_monster_aux(int mon_type, char behaviour, int target,
+static int place_monster_aux(int mon_type, beh_type behaviour, int target,
int px, int py, int power, int extra, bool first_band_member,
int dur = 0);
@@ -141,7 +141,7 @@ static bool need_moderate_ood(int lev_mons)
&& one_chance_in(50));
}
-bool place_monster(int &id, int mon_type, int power, char behaviour,
+bool place_monster(int &id, int mon_type, int power, beh_type behaviour,
int target, bool summoned, int px, int py, bool allow_bands,
proximity_type proximity, int extra, int dur,
const dgn_region_list &forbidden)
@@ -445,7 +445,7 @@ bool place_monster(int &id, int mon_type, int power, char behaviour,
return (true);
}
-static int place_monster_aux( int mon_type, char behaviour, int target,
+static int place_monster_aux( int mon_type, beh_type behaviour, int target,
int px, int py, int power, int extra,
bool first_band_member, int dur )
{
@@ -1165,7 +1165,7 @@ static int ood_limit() {
return Options.ood_interesting;
}
-void mark_interesting_monst(struct monsters* monster, char behaviour)
+void mark_interesting_monst(struct monsters* monster, beh_type behaviour)
{
bool interesting = false;
@@ -1202,7 +1202,7 @@ void mark_interesting_monst(struct monsters* monster, char behaviour)
// PUBLIC FUNCTION -- mons_place().
-int mons_place( int mon_type, char behaviour, int target, bool summoned,
+int mons_place( int mon_type, beh_type behaviour, int target, bool summoned,
int px, int py, int level_type, proximity_type proximity,
int extra, int dur, bool permit_bands )
{
@@ -1351,7 +1351,7 @@ bool player_angers_monster(monsters *creation)
return (false);
}
-int create_monster( int cls, int dur, int beha, int cr_x, int cr_y,
+int create_monster( int cls, int dur, beh_type beha, int cr_x, int cr_y,
int hitting, int zsec, bool permit_bands,
bool force_place, bool force_behaviour )
{