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

#include <mapwindow.hpp>

Inheritance diagram for MWGui::LocalMapBase:
Collaboration diagram for MWGui::LocalMapBase:

Classes

struct  MarkerUserData
 

Public Member Functions

 LocalMapBase (CustomMarkerCollection &markers, MWRender::LocalMap *localMapRender, bool fogOfWarEnabled=true)
 
virtual ~LocalMapBase ()
 
void init (MyGUI::ScrollView *widget, MyGUI::ImageBox *compass, int mapWidgetSize, int cellDistance)
 
void setCellPrefix (const std::string &prefix)
 
void setActiveCell (const int x, const int y, bool interior=false)
 
void requestMapRender (const MWWorld::CellStore *cell)
 
void setPlayerDir (const float x, const float y)
 
void setPlayerPos (int cellX, int cellY, const float nx, const float ny)
 
void onFrame (float dt)
 
bool toggleFogOfWar ()
 

Protected Types

typedef std::vector
< boost::shared_ptr
< MyGUI::ITexture > > 
TextureVector
 

Protected Member Functions

virtual void updateCustomMarkers ()
 
void applyFogOfWar ()
 
MyGUI::IntPoint getMarkerPosition (float worldX, float worldY, MarkerUserData &markerPos)
 
virtual void notifyPlayerUpdate ()
 
virtual void notifyMapChanged ()
 
virtual void customMarkerCreated (MyGUI::Widget *marker)
 
virtual void doorMarkerCreated (MyGUI::Widget *marker)
 
void updateMagicMarkers ()
 
void addDetectionMarkers (int type)
 
void redraw ()
 

Protected Attributes

MWRender::LocalMapmLocalMapRender
 
int mCurX
 
int mCurY
 
bool mInterior
 
MyGUI::ScrollView * mLocalMap
 
MyGUI::ImageBox * mCompass
 
std::string mPrefix
 
bool mChanged
 
bool mFogOfWarToggled
 
bool mFogOfWarEnabled
 
int mMapWidgetSize
 
int mNumCells
 
int mCellDistance
 
CustomMarkerCollectionmCustomMarkers
 
std::vector< MyGUI::ImageBox * > mMapWidgets
 
std::vector< MyGUI::ImageBox * > mFogWidgets
 
TextureVector mMapTextures
 
TextureVector mFogTextures
 
std::vector< MyGUI::Widget * > mDoorMarkerWidgets
 
std::vector< MyGUI::Widget * > mMagicMarkerWidgets
 
std::vector< MyGUI::Widget * > mCustomMarkerWidgets
 
float mMarkerUpdateTimer
 
float mLastDirectionX
 
float mLastDirectionY
 

Private Member Functions

void updateDoorMarkers ()
 

Private Attributes

bool mNeedDoorMarkersUpdate
 

Member Typedef Documentation

typedef std::vector<boost::shared_ptr<MyGUI::ITexture> > MWGui::LocalMapBase::TextureVector
protected

Constructor & Destructor Documentation

MWGui::LocalMapBase::LocalMapBase ( CustomMarkerCollection markers,
MWRender::LocalMap localMapRender,
bool  fogOfWarEnabled = true 
)

Here is the call graph for this function:

MWGui::LocalMapBase::~LocalMapBase ( )
virtual

Here is the call graph for this function:

Member Function Documentation

void MWGui::LocalMapBase::addDetectionMarkers ( int  type)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::applyFogOfWar ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void MWGui::LocalMapBase::customMarkerCreated ( MyGUI::Widget *  marker)
inlineprotectedvirtual

Reimplemented in MWGui::MapWindow, and MWGui::HUD.

Here is the caller graph for this function:

virtual void MWGui::LocalMapBase::doorMarkerCreated ( MyGUI::Widget *  marker)
inlineprotectedvirtual

Reimplemented in MWGui::MapWindow, and MWGui::HUD.

Here is the caller graph for this function:

MyGUI::IntPoint MWGui::LocalMapBase::getMarkerPosition ( float  worldX,
float  worldY,
MarkerUserData markerPos 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::init ( MyGUI::ScrollView *  widget,
MyGUI::ImageBox *  compass,
int  mapWidgetSize,
int  cellDistance 
)

Here is the caller graph for this function:

virtual void MWGui::LocalMapBase::notifyMapChanged ( )
inlineprotectedvirtual
virtual void MWGui::LocalMapBase::notifyPlayerUpdate ( )
inlineprotectedvirtual

Reimplemented in MWGui::MapWindow.

Here is the caller graph for this function:

void MWGui::LocalMapBase::onFrame ( float  dt)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::redraw ( )
protected

Here is the caller graph for this function:

void MWGui::LocalMapBase::requestMapRender ( const MWWorld::CellStore cell)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::setActiveCell ( const int  x,
const int  y,
bool  interior = false 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::setCellPrefix ( const std::string &  prefix)

Here is the caller graph for this function:

void MWGui::LocalMapBase::setPlayerDir ( const float  x,
const float  y 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::setPlayerPos ( int  cellX,
int  cellY,
const float  nx,
const float  ny 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool MWGui::LocalMapBase::toggleFogOfWar ( )

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::updateCustomMarkers ( )
protectedvirtual

Reimplemented in MWGui::MapWindow.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::updateDoorMarkers ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::LocalMapBase::updateMagicMarkers ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int MWGui::LocalMapBase::mCellDistance
protected
bool MWGui::LocalMapBase::mChanged
protected
MyGUI::ImageBox* MWGui::LocalMapBase::mCompass
protected
int MWGui::LocalMapBase::mCurX
protected
int MWGui::LocalMapBase::mCurY
protected
CustomMarkerCollection& MWGui::LocalMapBase::mCustomMarkers
protected
std::vector<MyGUI::Widget*> MWGui::LocalMapBase::mCustomMarkerWidgets
protected
std::vector<MyGUI::Widget*> MWGui::LocalMapBase::mDoorMarkerWidgets
protected
bool MWGui::LocalMapBase::mFogOfWarEnabled
protected
bool MWGui::LocalMapBase::mFogOfWarToggled
protected
TextureVector MWGui::LocalMapBase::mFogTextures
protected
std::vector<MyGUI::ImageBox*> MWGui::LocalMapBase::mFogWidgets
protected
bool MWGui::LocalMapBase::mInterior
protected
float MWGui::LocalMapBase::mLastDirectionX
protected
float MWGui::LocalMapBase::mLastDirectionY
protected
MyGUI::ScrollView* MWGui::LocalMapBase::mLocalMap
protected
MWRender::LocalMap* MWGui::LocalMapBase::mLocalMapRender
protected
std::vector<MyGUI::Widget*> MWGui::LocalMapBase::mMagicMarkerWidgets
protected
TextureVector MWGui::LocalMapBase::mMapTextures
protected
std::vector<MyGUI::ImageBox*> MWGui::LocalMapBase::mMapWidgets
protected
int MWGui::LocalMapBase::mMapWidgetSize
protected
float MWGui::LocalMapBase::mMarkerUpdateTimer
protected
bool MWGui::LocalMapBase::mNeedDoorMarkersUpdate
private
int MWGui::LocalMapBase::mNumCells
protected
std::string MWGui::LocalMapBase::mPrefix
protected

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