ManaPlus
Public Member Functions | Private Attributes | Friends
MapDebugTab Class Reference

#include <mapdebugtab.h>

Inheritance diagram for MapDebugTab:
DebugTab Container BasicContainer2 BasicContainer Widget WidgetDeathListener Widget2

Public Member Functions

 MapDebugTab (const Widget2 *const widget)
 
void logic ()
 
- Public Member Functions inherited from DebugTab
void resize (const int x, const int y)
 
- Public Member Functions inherited from Container
 Container (const Widget2 *const widget)
 
 ~Container ()
 
bool safeRemove (Widget *const widget)
 
void removeControls ()
 
- Public Member Functions inherited from BasicContainer2
 BasicContainer2 (const Widget2 *const widget)
 
 ~BasicContainer2 ()
 
void setOpaque (Opaque opaque)
 
bool isOpaque () const
 
virtual void add (Widget *const widget)
 
void addXY (Widget *const widget, const int x, const int y)
 
void draw (Graphics *const graphics)
 
void safeDraw (Graphics *const graphics)
 
- Public Member Functions inherited from BasicContainer
 BasicContainer (const Widget2 *const widget)
 
 ~BasicContainer ()
 
void showWidgetPart (Widget *const widget, const Rect &area)
 
void moveToTop (Widget *const widget)
 
void moveToBottom (Widget *const widget)
 
Rect getChildrenArea ()
 
void focusNext ()
 
void focusPrevious ()
 
void setFocusHandler (FocusHandler *const focusHandler)
 
void setInternalFocusHandler (FocusHandler *const focusHandler)
 
WidgetgetWidgetAt (int x, int y)
 
void death (const Event &event)
 
WidgetfindFirstWidget (const std::set< Widget * > &list)
 
void add (Widget *const widget)
 
virtual void remove (Widget *const widget)
 
virtual void clear ()
 
- Public Member Functions inherited from Widget
 Widget (const Widget2 *const widget)
 
 ~Widget ()
 
virtual void drawFrame (Graphics *graphics)
 
virtual void safeDrawFrame (Graphics *graphics)
 
void setFrameSize (const unsigned int frameSize)
 
unsigned int getFrameSize () const
 
WidgetgetParent () const
 
void setWidth (const int width)
 
int getWidth () const
 
void setHeight (const int height)
 
int getHeight () const
 
void setSize (const int width, const int height)
 
void setX (const int x)
 
int getX () const
 
void setY (const int y)
 
int getY () const
 
void setPosition (const int x, const int y)
 
void setDimension (const Rect &dimension)
 
const RectgetDimension () const
 
void setFocusable (const bool focusable)
 
bool isFocusable () const
 
virtual bool isFocused () const
 
void setEnabled (const bool enabled)
 
bool isEnabled () const
 
void setVisible (Visible visible)
 
bool isVisible () const
 
void setBaseColor (const Color &color)
 
const ColorgetBaseColor () const
 
void setForegroundColor (const Color &color)
 
const ColorgetForegroundColor () const
 
void setBackgroundColor (const Color &color)
 
const ColorgetBackgroundColor () const
 
virtual void requestFocus ()
 
virtual void requestMoveToTop ()
 
virtual void requestMoveToBottom ()
 
FocusHandlergetFocusHandler ()
 
void addActionListener (ActionListener *const actionListener)
 
void removeActionListener (ActionListener *const actionListener)
 
void addDeathListener (WidgetDeathListener *const deathListener)
 
void removeDeathListener (WidgetDeathListener *const deathListener)
 
void addMouseListener (MouseListener *const mouseListener)
 
void removeMouseListener (MouseListener *const mouseListener)
 
void addKeyListener (KeyListener *const keyListener)
 
void removeKeyListener (KeyListener *const keyListener)
 
void addFocusListener (FocusListener *const focusListener)
 
void removeFocusListener (FocusListener *const focusListener)
 
void addWidgetListener (WidgetListener *const widgetListener)
 
void removeWidgetListener (WidgetListener *const widgetListener)
 
void setActionEventId (const std::string &actionEventId)
 
const std::string & getActionEventId () const
 
virtual void getAbsolutePosition (int &x, int &y) const
 
virtual void setParent (Widget *parent)
 
FontgetFont () const
 
void setFont (Font *const font)
 
virtual void fontChanged ()
 
bool isTabInEnabled () const
 
void setTabInEnabled (const bool enabled)
 
bool isTabOutEnabled () const
 
void setTabOutEnabled (const bool enabled)
 
void requestModalFocus ()
 
virtual void requestModalMouseInputFocus ()
 
virtual void releaseModalFocus ()
 
virtual void releaseModalMouseInputFocus ()
 
virtual bool isModalFocused () const
 
virtual bool isModalMouseInputFocused () const
 
const std::list< MouseListener * > & getMouseListeners () const A_CONST
 
const std::list< KeyListener * > & getKeyListeners () const A_CONST
 
const std::list< FocusListener * > & getFocusListeners () const A_CONST
 
virtual FocusHandlergetInternalFocusHandler ()
 
void setInternalFocusHandler (FocusHandler *const internalFocusHandler)
 
void setId (const std::string &id)
 
const std::string & getId () const
 
virtual void showPart (const Rect &rectangle)
 
bool isAllowLogic () const
 
void setMouseConsume (const bool b)
 
bool isMouseConsume () const
 
void setRedraw (const bool b)
 
virtual bool isSelectable () const
 
void setSelectable (const bool selectable)
 
void windowResized ()
 
virtual void postInit ()
 
- Public Member Functions inherited from Widget2
virtual ~Widget2 ()
 
const ColorgetThemeColor (const ThemeColorIdT type, const unsigned int alpha) const A_INLINE
 
const ColorgetThemeCharColor (const signed char c, bool &valid) const A_INLINE
 
virtual void setWidget2 (const Widget2 *const widget)
 
void setPalette (int palette)
 
void checkPalette ()
 
void setForegroundColor2 (const Color &color)
 
WidgetgetWindow () const
 
virtual void setWindow (Widget *const window)
 
- Public Member Functions inherited from WidgetDeathListener
virtual ~WidgetDeathListener ()
 

Private Attributes

LabelmMusicFileLabel
 
LabelmMapLabel
 
LabelmMapNameLabel
 
LabelmMinimapLabel
 
LabelmTileMouseLabel
 
LabelmParticleCountLabel
 
LabelmMapActorCountLabel
 
LabelmMapAtlasCountLabel
 
LabelmXYLabel
 
LabelmTexturesLabel
 
time_t mUpdateTime
 
LabelmFPSLabel
 
std::string mFPSText
 

Friends

class DebugWindow
 

Additional Inherited Members

- Static Public Member Functions inherited from Widget
static void setGlobalFont (Font *const font)
 
static FontgetGloablFont ()
 
static void cleanGlobalFont ()
 
static bool widgetExists (const Widget *const widget)
 
static void distributeWindowResizeEvent ()
 
static WidgetcallPostInit (Widget *const widget)
 
- Data Fields inherited from Widget
Visible mVisible
 
- Protected Types inherited from BasicContainer
typedef std::vector< Widget * > WidgetList
 
typedef WidgetList::iterator WidgetListIterator
 
typedef WidgetList::const_iterator WidgetListConstIterator
 
typedef WidgetList::reverse_iterator WidgetListReverseIterator
 
typedef WidgetList::const_reverse_iterator WidgetListCReverseIterator
 
- Protected Types inherited from Widget
typedef std::list< MouseListener * > MouseListenerList
 
typedef MouseListenerList::iterator MouseListenerIterator
 
typedef std::list< KeyListener * > KeyListenerList
 
typedef KeyListenerList::iterator KeyListenerIterator
 
typedef std::list< ActionListener * > ActionListenerList
 
typedef ActionListenerList::iterator ActionListenerIterator
 
typedef std::list< WidgetDeathListener * > WidgetDeathListenerList
 
typedef WidgetDeathListenerList::iterator WidgetDeathListenerIterator
 
typedef std::list< FocusListener * > FocusListenerList
 
typedef FocusListenerList::iterator FocusListenerIterator
 
typedef std::list< WidgetListener * > WidgetListenerList
 
typedef WidgetListenerList::iterator WidgetListenerIterator
 
- Protected Member Functions inherited from DebugTab
 DebugTab (const Widget2 *const widget)
 
- Protected Member Functions inherited from BasicContainer
virtual void drawChildren (Graphics *const graphics)
 
virtual void safeDrawChildren (Graphics *const graphics)
 
virtual void logicChildren ()
 
- Protected Member Functions inherited from Widget
void distributeActionEvent ()
 
void distributeResizedEvent ()
 
void distributeMovedEvent ()
 
void distributeHiddenEvent ()
 
void distributeShownEvent ()
 
- Protected Member Functions inherited from Widget2
 Widget2 (const Widget2 *const widget)
 
- Protected Member Functions inherited from WidgetDeathListener
 WidgetDeathListener ()
 
- Protected Attributes inherited from BasicContainer2
Opaque mOpaque
 
- Protected Attributes inherited from BasicContainer
WidgetList mWidgets
 
WidgetList mLogicWidgets
 
- Protected Attributes inherited from Widget
MouseListenerList mMouseListeners
 
KeyListenerList mKeyListeners
 
ActionListenerList mActionListeners
 
WidgetDeathListenerList mDeathListeners
 
FocusListenerList mFocusListeners
 
WidgetListenerList mWidgetListeners
 
Color mForegroundColor
 
Color mBackgroundColor
 
Color mBaseColor
 
Rect mDimension
 
std::string mActionEventId
 
std::string mId
 
FocusHandlermFocusHandler
 
FocusHandlermInternalFocusHandler
 
WidgetmParent
 
FontmCurrentFont
 
unsigned int mFrameSize
 
bool mFocusable
 
bool mTabIn
 
bool mTabOut
 
bool mEnabled
 
bool mAllowLogic
 
bool mMouseConsume
 
bool mRedraw
 
bool mSelectable
 
- Protected Attributes inherited from Widget2
int mPaletteOffset
 
WidgetmWindow
 
Color mForegroundColor2
 
- Static Protected Attributes inherited from Widget
static FontmGlobalFont = 0
 

Detailed Description

Definition at line 31 of file mapdebugtab.h.

Constructor & Destructor Documentation

◆ MapDebugTab()

MapDebugTab::MapDebugTab ( const Widget2 *const  widget)
explicit

Definition at line 50 of file mapdebugtab.cpp.

50  :
51  DebugTab(widget),
52  // TRANSLATORS: debug window label
53  mMusicFileLabel(new Label(this, _("Music:"))),
54  // TRANSLATORS: debug window label
55  mMapLabel(new Label(this, _("Map:"))),
56  // TRANSLATORS: debug window label
57  mMapNameLabel(new Label(this, _("Map name:"))),
58  // TRANSLATORS: debug window label
59  mMinimapLabel(new Label(this, _("Minimap:"))),
60  mTileMouseLabel(new Label(this, strprintf("%s (%d, %d)",
61  // TRANSLATORS: debug window label
62  _("Cursor:"), 0, 0))),
63  mParticleCountLabel(new Label(this, strprintf("%s %d",
64  // TRANSLATORS: debug window label
65  _("Particle count:"), 88888))),
66  mMapActorCountLabel(new Label(this, strprintf("%s %d",
67  // TRANSLATORS: debug window label
68  _("Map actors count:"), 88888))),
69 #ifdef USE_OPENGL
70  mMapAtlasCountLabel(new Label(this, strprintf("%s %d",
71  // TRANSLATORS: debug window label
72  _("Map atlas count:"), 88888))),
73 #endif // USE_OPENGL
74  // TRANSLATORS: debug window label
75  mXYLabel(new Label(this, strprintf("%s (?,?)", _("Player Position:")))),
76  mTexturesLabel(nullptr),
77  mUpdateTime(0),
78 #ifdef DEBUG_DRAW_CALLS
79  mDrawCallsLabel(new Label(this, strprintf("%s %s",
80  // TRANSLATORS: debug window label
81  _("Draw calls:"), "?"))),
82 #endif // DEBUG_DRAW_CALLS
83 #ifdef DEBUG_BIND_TEXTURE
84  mBindsLabel(new Label(this, strprintf("%s %s",
85  // TRANSLATORS: debug window label
86  _("Texture binds:"), "?"))),
87 #endif // DEBUG_BIND_TEXTURE
88  // TRANSLATORS: debug window label, frames per second
89  mFPSLabel(new Label(this, strprintf(_("%d FPS"), 0))),
90  mFPSText()
91 {
92  LayoutHelper h(this);
93  ContainerPlacer place = h.getPlacer(0, 0);
94 
95 #ifdef USE_OPENGL
96  switch (imageHelper->useOpenGL())
97  {
98  case RENDER_SOFTWARE:
99  // TRANSLATORS: debug window label
100  mFPSText = _("%d FPS (Software)");
101  break;
103  case RENDER_NULL:
104  case RENDER_LAST:
105  default:
106  // TRANSLATORS: debug window label
107  mFPSText = _("%d FPS (normal OpenGL)");
108  break;
109  case RENDER_SAFE_OPENGL:
110  // TRANSLATORS: debug window label
111  mFPSText = _("%d FPS (safe OpenGL)");
112  break;
113  case RENDER_GLES_OPENGL:
114  // TRANSLATORS: debug window label
115  mFPSText = _("%d FPS (mobile OpenGL ES)");
116  break;
117  case RENDER_GLES2_OPENGL:
118  // TRANSLATORS: debug window label
119  mFPSText = _("%d FPS (mobile OpenGL ES 2)");
120  break;
122  // TRANSLATORS: debug window label
123  mFPSText = _("%d FPS (modern OpenGL)");
124  break;
125  case RENDER_SDL2_DEFAULT:
126  // TRANSLATORS: debug window label
127  mFPSText = _("%d FPS (SDL2 default)");
128  break;
129  }
130 #else // USE_OPENGL
131 
132  // TRANSLATORS: debug window label
133  mFPSText = _("%d FPS (Software)");
134 #endif // USE_OPENGL
135 
136  place(0, 0, mFPSLabel, 2, 1);
137  place(0, 1, mMusicFileLabel, 2, 1);
138  place(0, 2, mMapLabel, 2, 1);
139  place(0, 3, mMapNameLabel, 2, 1);
140  place(0, 4, mMinimapLabel, 2, 1);
141  place(0, 5, mXYLabel, 2, 1);
142  place(0, 6, mTileMouseLabel, 2, 1);
143  place(0, 7, mParticleCountLabel, 2, 1);
144  place(0, 8, mMapActorCountLabel, 2, 1);
145 #ifdef USE_OPENGL
146  place(0, 9, mMapAtlasCountLabel, 2, 1);
147 #if defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS) \
148  || defined(DEBUG_BIND_TEXTURE)
149  int n = 10;
150 #endif // defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS)
151  // || defined(DEBUG_BIND_TEXTURE)
152 #ifdef DEBUG_OPENGL_LEAKS
153  mTexturesLabel = new Label(this, strprintf("%s %s",
154  // TRANSLATORS: debug window label
155  _("Textures count:"), "?"));
156  place(0, n, mTexturesLabel, 2, 1);
157  n ++;
158 #endif // DEBUG_OPENGL_LEAKS
159 #ifdef DEBUG_DRAW_CALLS
160  place(0, n, mDrawCallsLabel, 2, 1);
161  n ++;
162 #endif // DEBUG_DRAW_CALLS
163 #ifdef DEBUG_BIND_TEXTURE
164  place(0, n, mBindsLabel, 2, 1);
165 #endif // DEBUG_BIND_TEXTURE
166 #endif // USE_OPENGL
167 
168  place.getCell().matchColWidth(0, 0);
169  place = h.getPlacer(0, 1);
170  setDimension(Rect(0, 0, 600, 300));
171 }
LayoutCell & getCell()
DebugTab(const Widget2 *const widget)
Definition: debugtab.h:44
virtual RenderType useOpenGL() const
Definition: imagehelper.h:107
Definition: label.h:91
void matchColWidth(const int n1, const int n2)
Definition: layoutcell.cpp:118
Label * mMapLabel
Definition: mapdebugtab.h:44
Label * mMapNameLabel
Definition: mapdebugtab.h:45
Label * mXYLabel
Definition: mapdebugtab.h:53
Label * mFPSLabel
Definition: mapdebugtab.h:63
time_t mUpdateTime
Definition: mapdebugtab.h:55
Label * mMapActorCountLabel
Definition: mapdebugtab.h:49
Label * mMinimapLabel
Definition: mapdebugtab.h:46
Label * mMapAtlasCountLabel
Definition: mapdebugtab.h:51
Label * mMusicFileLabel
Definition: mapdebugtab.h:43
std::string mFPSText
Definition: mapdebugtab.h:64
Label * mParticleCountLabel
Definition: mapdebugtab.h:48
Label * mTexturesLabel
Definition: mapdebugtab.h:54
Label * mTileMouseLabel
Definition: mapdebugtab.h:47
Definition: rect.h:74
void setDimension(const Rect &dimension)
Definition: widget.cpp:169
#define _(s)
Definition: gettext.h:35
ImageHelper * imageHelper
Definition: imagehelper.cpp:44
@ RENDER_SAFE_OPENGL
Definition: rendertype.h:29
@ RENDER_GLES2_OPENGL
Definition: rendertype.h:33
@ RENDER_GLES_OPENGL
Definition: rendertype.h:30
@ RENDER_MODERN_OPENGL
Definition: rendertype.h:32
@ RENDER_LAST
Definition: rendertype.h:35
@ RENDER_NORMAL_OPENGL
Definition: rendertype.h:28
@ RENDER_SDL2_DEFAULT
Definition: rendertype.h:31
@ RENDER_NULL
Definition: rendertype.h:34
@ RENDER_SOFTWARE
Definition: rendertype.h:27
std::string strprintf(const char *const format,...)

References _, ContainerPlacer::getCell(), LayoutHelper::getPlacer(), imageHelper, LayoutCell::matchColWidth(), mFPSLabel, mFPSText, mMapActorCountLabel, mMapAtlasCountLabel, mMapLabel, mMapNameLabel, mMinimapLabel, mMusicFileLabel, mParticleCountLabel, mTexturesLabel, mTileMouseLabel, mXYLabel, RENDER_GLES2_OPENGL, RENDER_GLES_OPENGL, RENDER_LAST, RENDER_MODERN_OPENGL, RENDER_NORMAL_OPENGL, RENDER_NULL, RENDER_SAFE_OPENGL, RENDER_SDL2_DEFAULT, RENDER_SOFTWARE, Widget::setDimension(), strprintf(), and ImageHelper::useOpenGL().

Member Function Documentation

◆ logic()

void MapDebugTab::logic ( )
virtual

Called for all widgets in the gui each time Gui::logic is called. You can do logic stuff here like playing an animation.

See also
Gui::logic

Reimplemented from DebugTab.

Definition at line 173 of file mapdebugtab.cpp.

174 {
175  BLOCK_START("MapDebugTab::logic")
176  if (localPlayer != nullptr)
177  {
178  // TRANSLATORS: debug window label
179  mXYLabel->setCaption(strprintf("%s (%d, %d)", _("Player Position:"),
181  }
182  else
183  {
184  // TRANSLATORS: debug window label
185  mXYLabel->setCaption(strprintf("%s (?, ?)", _("Player Position:")));
186  }
187 
188  Game *const game = Game::instance();
189  const Map *const map = game != nullptr ? game->getCurrentMap() : nullptr;
190  if (map != nullptr &&
191  viewport != nullptr)
192  {
193  // Get the current mouse position
194  const int mouseTileX = (viewport->mMouseX + viewport->getCameraX())
195  / map->getTileWidth();
196  const int mouseTileY = (viewport->mMouseY + viewport->getCameraY())
197  / map->getTileHeight();
198  mTileMouseLabel->setCaption(strprintf("%s (%d, %d)",
199  // TRANSLATORS: debug window label
200  _("Cursor:"), mouseTileX, mouseTileY));
201 
202  // TRANSLATORS: debug window label
203  mMusicFileLabel->setCaption(strprintf("%s %s", _("Music:"),
204  map->getProperty("music", std::string()).c_str()));
205  // TRANSLATORS: debug window label
206  mMinimapLabel->setCaption(strprintf("%s %s", _("Minimap:"),
207  map->getProperty("minimap", std::string()).c_str()));
208  // TRANSLATORS: debug window label
209  mMapLabel->setCaption(strprintf("%s %s", _("Map:"),
210  map->getProperty("_realfilename", std::string()).c_str()));
211  // TRANSLATORS: debug window label
212  mMapNameLabel->setCaption(strprintf("%s %s", _("Map name:"),
213  map->getProperty("name", std::string()).c_str()));
214 
215  if (mUpdateTime != cur_time)
216  {
218  // TRANSLATORS: debug window label
219  mParticleCountLabel->setCaption(strprintf(_("Particle count: %d"),
221 
223  // TRANSLATORS: debug window label
224  strprintf("%s %d", _("Map actors count:"),
225  map->getActorsCount()));
226 #ifdef USE_OPENGL
228  // TRANSLATORS: debug window label
229  strprintf("%s %d", _("Map atlas count:"),
230  map->getAtlasCount()));
231 #ifdef DEBUG_OPENGL_LEAKS
233  // TRANSLATORS: debug window label
234  _("Textures count:"), textures_count));
235 #endif // DEBUG_OPENGL_LEAKS
236 #ifdef DEBUG_DRAW_CALLS
237  if (mainGraphics)
238  {
239  mDrawCallsLabel->setCaption(strprintf("%s %d",
240  // TRANSLATORS: debug window label
241  _("Draw calls:"), mainGraphics->getDrawCalls()));
242  }
243 #endif // DEBUG_DRAW_CALLS
244 #ifdef DEBUG_BIND_TEXTURE
245  if (mainGraphics)
246  {
247  mBindsLabel->setCaption(strprintf("%s %d",
248  // TRANSLATORS: debug window label
249  _("Texture binds:"), mainGraphics->getBinds()));
250  }
251 #endif // DEBUG_BIND_TEXTURE
252 #endif // USE_OPENGL
253  }
254  }
255  else
256  {
257  // TRANSLATORS: debug window label
258  mTileMouseLabel->setCaption(strprintf("%s (?, ?)", _("Cursor:")));
259  // TRANSLATORS: debug window label
260  mMusicFileLabel->setCaption(strprintf("%s ?", _("Music:")));
261  // TRANSLATORS: debug window label
262  mMinimapLabel->setCaption(strprintf("%s ?", _("Minimap:")));
263  // TRANSLATORS: debug window label
264  mMapLabel->setCaption(strprintf("%s ?", _("Map:")));
265  // TRANSLATORS: debug window label
266  mMapNameLabel->setCaption(strprintf("%s ?", _("Map name:")));
268  // TRANSLATORS: debug window label
269  strprintf("%s ?", _("Map actors count:")));
270 #ifdef USE_OPENGL
272  // TRANSLATORS: debug window label
273  strprintf("%s ?", _("Map atlas count:")));
274 #endif // USE_OPENGL
275  }
276 
279 #ifdef USE_OPENGL
281 #endif // USE_OPENGL
282 
284  BLOCK_END("MapDebugTab::logic")
285 }
volatile time_t cur_time
Definition: timer.cpp:58
int getTileX() const
Definition: being.h:168
int getTileY() const
Definition: being.h:174
Definition: game.h:64
Map * getCurrentMap() const
Definition: game.h:107
static Game * instance()
Definition: game.h:82
void adjustSize()
Definition: label.cpp:200
void setCaption(const std::string &caption)
Definition: label.cpp:264
Definition: map.h:75
int getTileHeight() const
Definition: map.h:184
int getActorsCount() const
Definition: map.h:287
int getTileWidth() const
Definition: map.h:178
int getAtlasCount() const
Definition: map.cpp:1821
static int particleCount
const std::string getProperty(const std::string &name, const std::string &def) const
Definition: properties.h:59
int mMouseX
Definition: viewport.h:154
int getCameraY() const
Definition: viewport.h:121
int getCameraX() const
Definition: viewport.h:115
int mMouseY
Definition: viewport.h:155
int textures_count
Definition: client.cpp:138
Viewport * viewport
Definition: viewport.cpp:36
Graphics * mainGraphics
Definition: graphics.cpp:109
if(!vert) return
LocalPlayer * localPlayer
#define BLOCK_END(name)
Definition: perfomance.h:80
#define BLOCK_START(name)
Definition: perfomance.h:79
volatile int fps
Definition: timer.cpp:54

References _, Label::adjustSize(), BLOCK_END, BLOCK_START, cur_time, fps, Map::getActorsCount(), Map::getAtlasCount(), Viewport::getCameraX(), Viewport::getCameraY(), Game::getCurrentMap(), Properties::getProperty(), Map::getTileHeight(), Map::getTileWidth(), Being::getTileX(), Being::getTileY(), Game::instance(), localPlayer, mainGraphics, mFPSLabel, mFPSText, mMapActorCountLabel, mMapAtlasCountLabel, mMapLabel, mMapNameLabel, mMinimapLabel, Viewport::mMouseX, Viewport::mMouseY, mMusicFileLabel, mParticleCountLabel, mTexturesLabel, mTileMouseLabel, mUpdateTime, mXYLabel, ParticleEngine::particleCount, Label::setCaption(), strprintf(), textures_count, and viewport.

Referenced by DebugWindow::slowLogic().

Friends And Related Function Documentation

◆ DebugWindow

friend class DebugWindow
friend

Definition at line 33 of file mapdebugtab.h.

Field Documentation

◆ mFPSLabel

Label* MapDebugTab::mFPSLabel
private

Definition at line 63 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mFPSText

std::string MapDebugTab::mFPSText
private

Definition at line 64 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mMapActorCountLabel

Label* MapDebugTab::mMapActorCountLabel
private

Definition at line 49 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mMapAtlasCountLabel

Label* MapDebugTab::mMapAtlasCountLabel
private

Definition at line 51 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mMapLabel

Label* MapDebugTab::mMapLabel
private

Definition at line 44 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mMapNameLabel

Label* MapDebugTab::mMapNameLabel
private

Definition at line 45 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mMinimapLabel

Label* MapDebugTab::mMinimapLabel
private

Definition at line 46 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mMusicFileLabel

Label* MapDebugTab::mMusicFileLabel
private

Definition at line 43 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mParticleCountLabel

Label* MapDebugTab::mParticleCountLabel
private

Definition at line 48 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mTexturesLabel

Label* MapDebugTab::mTexturesLabel
private

Definition at line 54 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mTileMouseLabel

Label* MapDebugTab::mTileMouseLabel
private

Definition at line 47 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().

◆ mUpdateTime

time_t MapDebugTab::mUpdateTime
private

Definition at line 55 of file mapdebugtab.h.

Referenced by logic().

◆ mXYLabel

Label* MapDebugTab::mXYLabel
private

Definition at line 53 of file mapdebugtab.h.

Referenced by logic(), and MapDebugTab().


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