OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
referenceinterface.hpp
Go to the documentation of this file.
1 #ifndef MWGUI_REFERENCEINTERFACE_H
2 #define MWGUI_REFERENCEINTERFACE_H
3 
4 #include "../mwworld/ptr.hpp"
5 
6 namespace MWGui
7 {
13  {
14  public:
16  virtual ~ReferenceInterface();
17 
19 
20  virtual void resetReference() { mPtr = MWWorld::Ptr(); mCurrentPlayerCell = NULL; }
21 
22  protected:
23  virtual void onReferenceUnavailable() = 0;
24 
26 
27  private:
29  };
30 }
31 
32 #endif
virtual ~ReferenceInterface()
Definition: referenceinterface.cpp:15
MWWorld::Ptr mPtr
Definition: referenceinterface.hpp:25
Mutable state of a cell.
Definition: cellstore.hpp:53
MWWorld::CellStore * mCurrentPlayerCell
Definition: referenceinterface.hpp:28
void checkReferenceAvailable()
closes the window, if the MW-reference has become unavailable
Definition: referenceinterface.cpp:19
ReferenceInterface()
Definition: referenceinterface.cpp:10
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window acc...
Definition: referenceinterface.hpp:12
Pointer to a LiveCellRef.
Definition: ptr.hpp:19
virtual void onReferenceUnavailable()=0
called when reference has become unavailable
virtual void resetReference()
Definition: referenceinterface.hpp:20