OpenMW
|
#include <mapwindow.hpp>
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::Layout * | mLayout |
bool | mMapDragAndDrop |
float | mLastPositionX |
float | mLastPositionY |
float | mLastDirectionX |
float | mLastDirectionY |
MWGui::LocalMapBase::~LocalMapBase | ( | ) | [virtual] |
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::toggleFogOfWar | ( | ) |
void MWGui::LocalMapBase::updateMarkers | ( | ) | [protected] |
bool MWGui::LocalMapBase::mChanged [protected] |
MyGUI::ImageBox* MWGui::LocalMapBase::mCompass [protected] |
Reimplemented in MWGui::HUD.
int MWGui::LocalMapBase::mCurX [protected] |
int MWGui::LocalMapBase::mCurY [protected] |
bool MWGui::LocalMapBase::mFogOfWar [protected] |
std::vector<MyGUI::ImageBox*> MWGui::LocalMapBase::mFogWidgets [protected] |
bool MWGui::LocalMapBase::mInterior [protected] |
float MWGui::LocalMapBase::mLastDirectionX [protected] |
float MWGui::LocalMapBase::mLastDirectionY [protected] |
float MWGui::LocalMapBase::mLastPositionX [protected] |
float MWGui::LocalMapBase::mLastPositionY [protected] |
OEngine::GUI::Layout* MWGui::LocalMapBase::mLayout [protected] |
MyGUI::ScrollView* MWGui::LocalMapBase::mLocalMap [protected] |
bool MWGui::LocalMapBase::mMapDragAndDrop [protected] |
std::vector<MyGUI::ImageBox*> MWGui::LocalMapBase::mMapWidgets [protected] |
std::string MWGui::LocalMapBase::mPrefix [protected] |