-
Notifications
You must be signed in to change notification settings - Fork 4
/
CDebug.h
92 lines (86 loc) · 2.42 KB
/
CDebug.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// Copyright (C) 2009 - 2021 Marc Vester (XaserLE)
// Copyright (C) 2009 - 2021 Settlers Freaks <sf-team at siedler25.org>
//
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include "defines.h"
class CFont;
class CWindow;
class CMap;
struct bobMAP;
class CDebug
{
private:
// callback fuction that is constructing the Debugger-Object
void (*dbgCallback_)(int);
// debugger window
CWindow* dbgWnd;
// text for FrameCounter
CFont* FrameCounterText;
// text for Frames per Second
CFont* FramesPerSecText;
// text for msWait (milliseconds to wait --> SDL_Delay())
CFont* msWaitText;
// text for Registered Menus
CFont* RegisteredMenusText;
// text for Registered Windows
CFont* RegisteredWindowsText;
// text for Registered Callbacks
CFont* RegisteredCallbacksText;
CFont* DisplayRectText;
// text for mouse cursor data
CFont* MouseText;
// text for map name
CFont* MapNameText;
// text for map width and height
CFont* MapSizeText;
// text for map author
CFont* MapAuthorText;
// text for map type
CFont* MapTypeText;
// text for map players
CFont* MapPlayerText;
// text for position of cursor (position means the number of the triangle/vertex)
CFont* VertexText;
// text for data at the vertex the cursor is on
CFont* VertexDataText;
// text for vector at the vertex the cursor is on
CFont* VertexVectorText;
// text for vector at the triangle below the vertex the cursor is on
CFont* FlatVectorText;
// texts for map data at the vertex the cursor is on
CFont* rsuTextureText;
CFont* usdTextureText;
CFont* roadText;
CFont* objectTypeText;
CFont* objectInfoText;
CFont* animalText;
CFont* unknown1Text;
CFont* buildText;
CFont* unknown2Text;
CFont* unknown3Text;
CFont* resourceText;
CFont* shadingText;
CFont* unknown5Text;
CFont* editorModeText;
FontSize fontsize;
// temporary pointer to Map-Object
CMap* MapObj;
// temporary pointer to map
bobMAP* map;
// enumeration for messages sent to the debugger
enum
{
WNDQUIT = 1, // debugger window closed
INCREMENT_MSWAIT,
DECREMENT_MSWAIT,
SETZERO_MSWAIT
};
public:
// Constructor, Destructor
CDebug(void dbgCallback_(int), int quitParam);
~CDebug();
// Methods
void sendParam(int Param);
void actualizeData();
};