OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
MWGui::SpellModel Class Reference

Model that lists all usable powers, spells and enchanted items for an actor. More...

#include <spellmodel.hpp>

Collaboration diagram for MWGui::SpellModel:

Public Types

typedef int ModelIndex
 

Public Member Functions

 SpellModel (const MWWorld::Ptr &actor, const std::string &filter)
 
 SpellModel (const MWWorld::Ptr &actor)
 
void update ()
 
Spell getItem (ModelIndex index) const
 throws for invalid index More...
 
size_t getItemCount () const
 

Private Attributes

MWWorld::Ptr mActor
 
std::vector< SpellmSpells
 
std::string mFilter
 

Detailed Description

Model that lists all usable powers, spells and enchanted items for an actor.

Member Typedef Documentation

Constructor & Destructor Documentation

MWGui::SpellModel::SpellModel ( const MWWorld::Ptr actor,
const std::string &  filter 
)
MWGui::SpellModel::SpellModel ( const MWWorld::Ptr actor)

Member Function Documentation

Spell MWGui::SpellModel::getItem ( ModelIndex  index) const

throws for invalid index

Here is the caller graph for this function:

size_t MWGui::SpellModel::getItemCount ( ) const

Here is the caller graph for this function:

void MWGui::SpellModel::update ( )

Here is the call graph for this function:

Member Data Documentation

MWWorld::Ptr MWGui::SpellModel::mActor
private
std::string MWGui::SpellModel::mFilter
private
std::vector<Spell> MWGui::SpellModel::mSpells
private

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