summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/store.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-09-06 06:33:57 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-09-05 12:56:13 +0200
commit31adfd48395f3c74daad1f72b874f497020481a7 (patch)
treed7733b7e157fa13c4af485ed7c51b3f97c6b1a72 /crawl-ref/source/store.cc
parenta49e4492fc269271c7809d2caeb1e4d80bb0b7bf (diff)
downloadcrawl-ref-31adfd48395f3c74daad1f72b874f497020481a7.tar.gz
crawl-ref-31adfd48395f3c74daad1f72b874f497020481a7.zip
Rename class "monsters" to "monster".
Diffstat (limited to 'crawl-ref/source/store.cc')
-rw-r--r--crawl-ref/source/store.cc22
1 files changed, 11 insertions, 11 deletions
diff --git a/crawl-ref/source/store.cc b/crawl-ref/source/store.cc
index d92312dd21..d1ca966932 100644
--- a/crawl-ref/source/store.cc
+++ b/crawl-ref/source/store.cc
@@ -110,8 +110,8 @@ CrawlStoreValue::CrawlStoreValue(const CrawlStoreValue &other)
case SV_MONST:
{
- monsters* mon;
- mon = new monsters(*static_cast<monsters*>(other.val.ptr));
+ monster* mon;
+ mon = new monster(*static_cast<monster* >(other.val.ptr));
val.ptr = static_cast<void*>(mon);
break;
}
@@ -227,7 +227,7 @@ CrawlStoreValue::CrawlStoreValue(const level_pos &_val)
get_level_pos() = _val;
}
-CrawlStoreValue::CrawlStoreValue(const monsters &_val)
+CrawlStoreValue::CrawlStoreValue(const monster& _val)
: type(SV_MONST), flags(SFLAG_UNSET)
{
val.ptr = NULL;
@@ -336,7 +336,7 @@ void CrawlStoreValue::unset(bool force)
case SV_MONST:
{
- monsters* mon = static_cast<monsters*>(val.ptr);
+ monster* mon = static_cast<monster* >(val.ptr);
delete mon;
val.ptr = NULL;
break;
@@ -541,7 +541,7 @@ void CrawlStoreValue::write(writer &th) const
case SV_MONST:
{
- monsters* mon = static_cast<monsters*>(val.ptr);
+ monster* mon = static_cast<monster* >(val.ptr);
marshallMonster(th, *mon);
break;
}
@@ -653,9 +653,9 @@ void CrawlStoreValue::read(reader &th)
case SV_MONST:
{
- monsters mon;
+ monster mon;
unmarshallMonster(th, mon);
- val.ptr = (void*) new monsters(mon);
+ val.ptr = (void*) new monster(mon);
break;
}
@@ -839,9 +839,9 @@ level_pos &CrawlStoreValue::get_level_pos()
GET_VAL_PTR(SV_LEV_POS, level_pos*, new level_pos());
}
-monsters &CrawlStoreValue::get_monster()
+monster &CrawlStoreValue::get_monster()
{
- GET_VAL_PTR(SV_MONST, monsters*, new monsters());
+ GET_VAL_PTR(SV_MONST, monster* , new monster());
}
dlua_chunk &CrawlStoreValue::get_lua()
@@ -963,7 +963,7 @@ CrawlStoreValue::operator CrawlVector&() { return get_vector(); }
CrawlStoreValue::operator item_def&() { return get_item(); }
CrawlStoreValue::operator level_id&() { return get_level_id(); }
CrawlStoreValue::operator level_pos&() { return get_level_pos(); }
-CrawlStoreValue::operator monsters&() { return get_monster(); }
+CrawlStoreValue::operator monster& () { return get_monster(); }
CrawlStoreValue::operator dlua_chunk&() { return get_lua(); }
///////////////////////////
@@ -1107,7 +1107,7 @@ CrawlStoreValue &CrawlStoreValue::operator = (const level_pos &_val)
return (*this);
}
-CrawlStoreValue &CrawlStoreValue::operator = (const monsters &_val)
+CrawlStoreValue &CrawlStoreValue::operator = (const monster& _val)
{
get_monster() = _val;
return (*this);