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::CellmCell
State mState
std::vector< std::string > mIds
float mWaterLevel
CellRefList< ESM::ActivatormActivators
CellRefList< ESM::PotionmPotions
CellRefList< ESM::ApparatusmAppas
CellRefList< ESM::ArmormArmors
CellRefList< ESM::BookmBooks
CellRefList< ESM::ClothingmClothes
CellRefList< ESM::ContainermContainers
CellRefList< ESM::CreaturemCreatures
CellRefList< ESM::DoormDoors
CellRefList< ESM::IngredientmIngreds
CellRefList< ESM::CreatureLevListmCreatureLists
CellRefList< ESM::ItemLevListmItemLists
CellRefList< ESM::LightmLights
CellRefList< ESM::LockpickmLockpicks
CellRefList< ESM::MiscellaneousmMiscItems
CellRefList< ESM::NPCmNpcs
CellRefList< ESM::ProbemProbes
CellRefList< ESM::RepairmRepairs
CellRefList< ESM::StaticmStatics
CellRefList< ESM::WeaponmWeapons

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: