OpenMW
Public Types | Public Member Functions | Public Attributes | Private Member Functions
MWWorld::CellStore Class Reference

A storage struct for one single cell reference. More...

#include <cellstore.hpp>

List of all members.

Public Types

enum  State { State_Unloaded, State_Preloaded, State_Loaded }

Public Member Functions

 CellStore (const ESM::Cell *cell_)
void load (const MWWorld::ESMStore &store, std::vector< ESM::ESMReader > &esm)
void preload (const MWWorld::ESMStore &store, std::vector< ESM::ESMReader > &esm)
template<class Functor >
bool forEach (Functor &functor)
bool operator== (const CellStore &cell)
bool operator!= (const CellStore &cell)
bool isExterior () const
Ptr searchInContainer (const std::string &id)

Public Attributes

const ESM::Cell * mCell
State mState
std::vector< std::string > mIds
float mWaterLevel
CellRefList< ESM::Activator > mActivators
CellRefList< ESM::Potion > mPotions
CellRefList< ESM::Apparatus > mAppas
CellRefList< ESM::Armor > mArmors
CellRefList< ESM::Book > mBooks
CellRefList< ESM::Clothing > mClothes
CellRefList< ESM::Container > mContainers
CellRefList< ESM::Creature > mCreatures
CellRefList< ESM::Door > mDoors
CellRefList< ESM::Ingredient > mIngreds
CellRefList< ESM::CreatureLevList > mCreatureLists
CellRefList< ESM::ItemLevList > mItemLists
CellRefList< ESM::Light > mLights
CellRefList< ESM::Lockpick > mLockpicks
CellRefList< ESM::Miscellaneous > mMiscItems
CellRefList< ESM::NPC > mNpcs
CellRefList< ESM::Probe > mProbes
CellRefList< ESM::Repair > mRepairs
CellRefList< ESM::Static > mStatics
CellRefList< ESM::Weapon > mWeapons

Private Member Functions

template<class Functor , class List >
bool forEachImp (Functor &functor, List &list)
void listRefs (const MWWorld::ESMStore &store, std::vector< ESM::ESMReader > &esm)
 Run through references and store IDs.
void loadRefs (const MWWorld::ESMStore &store, std::vector< ESM::ESMReader > &esm)

Detailed Description

A storage struct for one single cell reference.


Member Enumeration Documentation

Enumerator:
State_Unloaded 
State_Preloaded 
State_Loaded 

Constructor & Destructor Documentation


Member Function Documentation

template<class Functor >
bool MWWorld::CellStore::forEach ( Functor &  functor) [inline]

Call functor (ref) for each reference. functor must return a bool. Returning false will abort the iteration.

Returns:
Iteration completed?
template<class Functor , class List >
bool MWWorld::CellStore::forEachImp ( Functor &  functor,
List &  list 
) [inline, private]
bool MWWorld::CellStore::isExterior ( ) const [inline]
void MWWorld::CellStore::listRefs ( const MWWorld::ESMStore &  store,
std::vector< ESM::ESMReader > &  esm 
) [private]

Run through references and store IDs.

void MWWorld::CellStore::load ( const MWWorld::ESMStore &  store,
std::vector< ESM::ESMReader > &  esm 
)
void MWWorld::CellStore::loadRefs ( const MWWorld::ESMStore &  store,
std::vector< ESM::ESMReader > &  esm 
) [private]
bool MWWorld::CellStore::operator!= ( const CellStore &  cell) [inline]
bool MWWorld::CellStore::operator== ( const CellStore &  cell) [inline]
void MWWorld::CellStore::preload ( const MWWorld::ESMStore &  store,
std::vector< ESM::ESMReader > &  esm 
)
Ptr MWWorld::CellStore::searchInContainer ( const std::string &  id)

Member Data Documentation

std::vector<std::string> MWWorld::CellStore::mIds

The documentation for this class was generated from the following files: