summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mgen_data.h
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2010-10-03 19:46:42 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2010-10-03 19:46:42 -0500
commit8e86797cee8ec2a401f7de934464b1cdfc3221db (patch)
treeddebfbff44cf9e9bb668a3d0671faee871d24687 /crawl-ref/source/mgen_data.h
parente82723e3edb6a529274b039f9c8e18f859369172 (diff)
downloadcrawl-ref-8e86797cee8ec2a401f7de934464b1cdfc3221db.tar.gz
crawl-ref-8e86797cee8ec2a401f7de934464b1cdfc3221db.zip
In the mgen_data class, rename the initializer variables for clarity.
Instead of monflags for 32-bit MG_ flags and mflags for 64-bit MF_ flags, which are rather confusable, they're now genflags and extflags.
Diffstat (limited to 'crawl-ref/source/mgen_data.h')
-rw-r--r--crawl-ref/source/mgen_data.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/mgen_data.h b/crawl-ref/source/mgen_data.h
index 0a41f8627d..8fbf7b83a9 100644
--- a/crawl-ref/source/mgen_data.h
+++ b/crawl-ref/source/mgen_data.h
@@ -122,7 +122,7 @@ struct mgen_data
int st = 0,
const coord_def &p = coord_def(-1, -1),
unsigned short mfoe = MHITNOT,
- unsigned monflags = 0,
+ unsigned genflags = 0,
god_type which_god = GOD_NO_GOD,
monster_type base = MONS_NO_MONSTER,
int monnumber = 0,
@@ -131,16 +131,16 @@ struct mgen_data
proximity_type prox = PROX_ANYWHERE,
level_area_type ltype = you.level_type,
int mhd = 0, int mhp = 0,
- uint64_t mflags = 0,
+ uint64_t extflags = 0,
std::string monname = "",
std::string nas = "")
: cls(mt), base_type(base), behaviour(beh), summoner(sner),
abjuration_duration(abj), summon_type(st), pos(p),
- preferred_grid_feature(DNGN_UNSEEN), foe(mfoe), flags(monflags),
+ preferred_grid_feature(DNGN_UNSEEN), foe(mfoe), flags(genflags),
god(which_god), number(monnumber), colour(moncolour),
power(monpower), proximity(prox), level_type(ltype), map_mask(0),
- hd(mhd), hp(mhp), extra_flags(mflags), mname(monname),
+ hd(mhd), hp(mhp), extra_flags(extflags), mname(monname),
non_actor_summoner(nas), props()
{
ASSERT(summon_type == 0 || (abj >= 1 && abj <= 6)
@@ -159,9 +159,9 @@ struct mgen_data
static mgen_data sleeper_at(monster_type what,
const coord_def &where,
- unsigned nflags = 0)
+ unsigned genflags = 0)
{
- return mgen_data(what, BEH_SLEEP, 0, 0, 0, where, MHITNOT, nflags);
+ return mgen_data(what, BEH_SLEEP, 0, 0, 0, where, MHITNOT, genflags);
}
static mgen_data hostile_at(monster_type mt,
@@ -170,14 +170,14 @@ struct mgen_data
int abj = 0,
int st = 0,
const coord_def &p = coord_def(-1, -1),
- unsigned monflags = 0,
+ unsigned genflags = 0,
god_type ngod = GOD_NO_GOD,
monster_type base = MONS_NO_MONSTER)
{
return mgen_data(mt, BEH_HOSTILE, 0, abj, st, p,
alert ? MHITYOU : MHITNOT,
- monflags, ngod, base, 0, BLACK, you.absdepth0,
+ genflags, ngod, base, 0, BLACK, you.absdepth0,
PROX_ANYWHERE, you.level_type, 0, 0, 0, "", nsummoner);
}
};