OpenMW
Classes | Public Member Functions | Protected Member Functions | Protected Attributes
MWGui::LocalMapBase Class Reference

#include <mapwindow.hpp>

List of all members.

Classes

struct  MarkerPosition

Public Member Functions

 LocalMapBase ()
virtual ~LocalMapBase ()
void init (MyGUI::ScrollView *widget, MyGUI::ImageBox *compass, OEngine::GUI::Layout *layout, bool mapDragAndDrop=false)
void setCellPrefix (const std::string &prefix)
void setActiveCell (const int x, const int y, bool interior=false)
void setPlayerDir (const float x, const float y)
void setPlayerPos (const float x, const float y)
void toggleFogOfWar ()

Protected Member Functions

void applyFogOfWar ()
void onMarkerFocused (MyGUI::Widget *w1, MyGUI::Widget *w2)
void onMarkerUnfocused (MyGUI::Widget *w1, MyGUI::Widget *w2)
MyGUI::IntPoint getMarkerPosition (float worldX, float worldY, MarkerPosition &markerPos)
virtual void notifyPlayerUpdate ()
virtual void notifyMapChanged ()
void updateMarkers ()
void addDetectionMarkers (int type)

Protected Attributes

int mCurX
int mCurY
bool mInterior
MyGUI::ScrollView * mLocalMap
MyGUI::ImageBox * mCompass
std::string mPrefix
bool mChanged
bool mFogOfWar
std::vector< MyGUI::ImageBox * > mMapWidgets
std::vector< MyGUI::ImageBox * > mFogWidgets
OEngine::GUI::LayoutmLayout
bool mMapDragAndDrop
float mLastPositionX
float mLastPositionY
float mLastDirectionX
float mLastDirectionY

Constructor & Destructor Documentation


Member Function Documentation

void MWGui::LocalMapBase::addDetectionMarkers ( int  type) [protected]
void MWGui::LocalMapBase::applyFogOfWar ( ) [protected]
MyGUI::IntPoint MWGui::LocalMapBase::getMarkerPosition ( float  worldX,
float  worldY,
MarkerPosition markerPos 
) [protected]
void MWGui::LocalMapBase::init ( MyGUI::ScrollView *  widget,
MyGUI::ImageBox *  compass,
OEngine::GUI::Layout layout,
bool  mapDragAndDrop = false 
)
virtual void MWGui::LocalMapBase::notifyMapChanged ( ) [inline, protected, virtual]

Reimplemented in MWGui::MapWindow.

virtual void MWGui::LocalMapBase::notifyPlayerUpdate ( ) [inline, protected, virtual]

Reimplemented in MWGui::MapWindow.

void MWGui::LocalMapBase::onMarkerFocused ( MyGUI::Widget *  w1,
MyGUI::Widget *  w2 
) [protected]
void MWGui::LocalMapBase::onMarkerUnfocused ( MyGUI::Widget *  w1,
MyGUI::Widget *  w2 
) [protected]
void MWGui::LocalMapBase::setActiveCell ( const int  x,
const int  y,
bool  interior = false 
)
void MWGui::LocalMapBase::setCellPrefix ( const std::string &  prefix)
void MWGui::LocalMapBase::setPlayerDir ( const float  x,
const float  y 
)
void MWGui::LocalMapBase::setPlayerPos ( const float  x,
const float  y 
)
void MWGui::LocalMapBase::updateMarkers ( ) [protected]

Member Data Documentation

MyGUI::ImageBox* MWGui::LocalMapBase::mCompass [protected]

Reimplemented in MWGui::HUD.

int MWGui::LocalMapBase::mCurX [protected]
int MWGui::LocalMapBase::mCurY [protected]
std::vector<MyGUI::ImageBox*> MWGui::LocalMapBase::mFogWidgets [protected]
MyGUI::ScrollView* MWGui::LocalMapBase::mLocalMap [protected]
std::vector<MyGUI::ImageBox*> MWGui::LocalMapBase::mMapWidgets [protected]
std::string MWGui::LocalMapBase::mPrefix [protected]

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