|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
#ifndef GAME_MWWORLD_CELLSTORE_H
|
|
|
|
|
#define GAME_MWWORLD_CELLSTORE_H
|
|
|
|
|
|
|
|
|
|
#include <deque>
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
|
|
|
@ -82,10 +81,11 @@ namespace MWWorld
|
|
|
|
|
int count() const;
|
|
|
|
|
///< Return total number of references, including deleted ones.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void load (const MWWorld::ESMStore &store, std::vector<ESM::ESMReader> &esm);
|
|
|
|
|
///< Load references from content file.
|
|
|
|
|
|
|
|
|
|
void preload (const MWWorld::ESMStore &store, std::vector<ESM::ESMReader> &esm);
|
|
|
|
|
///< Build ID list from content file.
|
|
|
|
|
|
|
|
|
|
/// Call functor (ref) for each reference. functor must return a bool. Returning
|
|
|
|
|
/// false will abort the iteration.
|
|
|
|
@ -118,19 +118,7 @@ namespace MWWorld
|
|
|
|
|
forEachImp (functor, mCreatureLists);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool operator==(const CellStore &cell) {
|
|
|
|
|
return mCell->mName == cell.mCell->mName &&
|
|
|
|
|
mCell->mData.mX == cell.mCell->mData.mX &&
|
|
|
|
|
mCell->mData.mY == cell.mCell->mData.mY;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool operator!=(const CellStore &cell) {
|
|
|
|
|
return !(*this == cell);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool isExterior() const {
|
|
|
|
|
return mCell->isExterior();
|
|
|
|
|
}
|
|
|
|
|
bool isExterior() const;
|
|
|
|
|
|
|
|
|
|
Ptr searchInContainer (const std::string& id);
|
|
|
|
|
|
|
|
|
@ -293,6 +281,9 @@ namespace MWWorld
|
|
|
|
|
{
|
|
|
|
|
return mWeapons;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool operator== (const CellStore& left, const CellStore& right);
|
|
|
|
|
bool operator!= (const CellStore& left, const CellStore& right);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|