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

A single item stack managed by an item model. More...

#include <itemmodel.hpp>

Collaboration diagram for MWGui::ItemStack:

Public Types

enum  Type { Type_Barter, Type_Equipped, Type_Normal }
 
enum  Flags { Flag_Enchanted = (1<<0), Flag_Bound = (1<<1) }
 

Public Member Functions

 ItemStack (const MWWorld::Ptr &base, ItemModel *creator, size_t count)
 
 ItemStack ()
 
bool stacks (const ItemStack &other)
 like operator==, only without checking mType More...
 

Public Attributes

Type mType
 
int mFlags
 
ItemModelmCreator
 
size_t mCount
 
MWWorld::Ptr mBase
 

Detailed Description

A single item stack managed by an item model.

Member Enumeration Documentation

Enumerator
Flag_Enchanted 
Flag_Bound 
Enumerator
Type_Barter 
Type_Equipped 
Type_Normal 

Constructor & Destructor Documentation

MWGui::ItemStack::ItemStack ( const MWWorld::Ptr base,
ItemModel creator,
size_t  count 
)

Here is the call graph for this function:

MWGui::ItemStack::ItemStack ( )

Member Function Documentation

bool MWGui::ItemStack::stacks ( const ItemStack other)

like operator==, only without checking mType

Here is the call graph for this function:

Member Data Documentation

MWWorld::Ptr MWGui::ItemStack::mBase
size_t MWGui::ItemStack::mCount
ItemModel* MWGui::ItemStack::mCreator
int MWGui::ItemStack::mFlags
Type MWGui::ItemStack::mType

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