OpenMW
|
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window accesses an NPC, or Container window accesses a Container these classes have to be automatically closed if the reference becomes unavailable make sure that checkReferenceAvailable() is called every frame and that onReferenceUnavailable() has been overridden More...
#include <referenceinterface.hpp>
Public Member Functions | |
ReferenceInterface () | |
virtual | ~ReferenceInterface () |
void | checkReferenceAvailable () |
closes the window, if the MW-reference has become unavailable | |
Protected Member Functions | |
virtual void | onReferenceUnavailable ()=0 |
called when reference has become unavailable | |
Protected Attributes | |
MWWorld::Ptr | mPtr |
Private Attributes | |
MWWorld::CellStore * | mCurrentPlayerCell |
this class is intended for GUI interfaces that access an MW-Reference for example dialogue window accesses an NPC, or Container window accesses a Container these classes have to be automatically closed if the reference becomes unavailable make sure that checkReferenceAvailable() is called every frame and that onReferenceUnavailable() has been overridden
MWGui::ReferenceInterface::~ReferenceInterface | ( | ) | [virtual] |
closes the window, if the MW-reference has become unavailable
virtual void MWGui::ReferenceInterface::onReferenceUnavailable | ( | ) | [protected, pure virtual] |
called when reference has become unavailable
Implemented in MWGui::DialogueWindow, MWGui::SpellCreationDialog, MWGui::TradeWindow, MWGui::ContainerWindow, MWGui::Console, MWGui::TravelWindow, MWGui::CompanionWindow, MWGui::SpellBuyingWindow, MWGui::EnchantingDialog, and MWGui::TrainingWindow.
MWWorld::Ptr MWGui::ReferenceInterface::mPtr [protected] |