diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-09-06 06:33:57 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-09-05 12:56:13 +0200 |
commit | 31adfd48395f3c74daad1f72b874f497020481a7 (patch) | |
tree | d7733b7e157fa13c4af485ed7c51b3f97c6b1a72 /crawl-ref/source/mon-grow.cc | |
parent | a49e4492fc269271c7809d2caeb1e4d80bb0b7bf (diff) | |
download | crawl-ref-31adfd48395f3c74daad1f72b874f497020481a7.tar.gz crawl-ref-31adfd48395f3c74daad1f72b874f497020481a7.zip |
Rename class "monsters" to "monster".
Diffstat (limited to 'crawl-ref/source/mon-grow.cc')
-rw-r--r-- | crawl-ref/source/mon-grow.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/mon-grow.cc b/crawl-ref/source/mon-grow.cc index 42a6645e85..734f4eacf8 100644 --- a/crawl-ref/source/mon-grow.cc +++ b/crawl-ref/source/mon-grow.cc @@ -102,7 +102,7 @@ static const monster_level_up *_monster_level_up_target(monster_type type, return (NULL); } -void monsters::upgrade_type(monster_type after, bool adjust_hd, +void monster::upgrade_type(monster_type after, bool adjust_hd, bool adjust_hp) { const monsterentry *orig = get_monster_data(type); @@ -110,7 +110,7 @@ void monsters::upgrade_type(monster_type after, bool adjust_hd, type = after; // Initialise a dummy monster to save work. - monsters dummy; + monster dummy; dummy.type = after; define_monster(&dummy); @@ -147,7 +147,7 @@ void monsters::upgrade_type(monster_type after, bool adjust_hd, uglything_upgrade(); } -bool monsters::level_up_change() +bool monster::level_up_change() { if (const monster_level_up *lup = _monster_level_up_target(static_cast<monster_type>(type), hit_dice)) @@ -158,7 +158,7 @@ bool monsters::level_up_change() return (false); } -bool monsters::level_up() +bool monster::level_up() { if (hit_dice >= MAX_MONS_HD) return (false); @@ -190,7 +190,7 @@ bool monsters::level_up() return (true); } -void monsters::init_experience() +void monster::init_experience() { if (experience || !alive()) return; @@ -198,7 +198,7 @@ void monsters::init_experience() experience = mexplevs[std::min(hit_dice, MAX_MONS_HD)]; } -bool monsters::gain_exp(int exp) +bool monster::gain_exp(int exp) { if (!alive()) return (false); @@ -221,7 +221,7 @@ bool monsters::gain_exp(int exp) experience += exp; - const monsters mcopy(*this); + const monster mcopy(*this); int levels_gained = 0; // Monsters can gain a maximum of two levels from one kill. while (hit_dice < MAX_MONS_HD |