-
Notifications
You must be signed in to change notification settings - Fork 27
/
gm_debug.h
84 lines (67 loc) · 2.35 KB
/
gm_debug.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
//////////////////////////////////////////////////////////////////////
// Yet Another Tibia Client
//////////////////////////////////////////////////////////////////////
//
//////////////////////////////////////////////////////////////////////
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//////////////////////////////////////////////////////////////////////
#ifndef __GM_DEBUG_H
#define __GM_DEBUG_H
#include <GLICT/container.h>
#include <GLICT/button.h>
#include <GLICT/window.h>
#include <GLICT/textbox.h>
#include "gamemode.h"
#include "sprite.h"
#include "thingui.h"
#include "choicegrid.h"
#include "popup.h"
#include "automap.h"
class GM_Debug : public GameMode
{
public:
GM_Debug();
~GM_Debug();
void updateScene();
void renderScene();
void mouseEvent (SDL_Event&);
void keyPress (int key);
void msgBox (const char* mbox, const char* title, glictContainer *focusondismiss = NULL);
static void MBOnDismiss(glictPos* pos, glictContainer* caller);
private:
static void ButtonOnClick(glictPos* relmousepos, glictContainer* callerclass);
static void ExitOnClick(glictPos* relmousepos, glictContainer* callerclass);
static void UpdateOnClick(glictPos* relmousepos, glictContainer* callerclass);
static void UpdateMapOnClick(glictPos* relmousepos, glictContainer* callerclass);
glictContainer desktop;
glictButton btnButton;
glictButton btnExit;
glictTextbox txtSprite;
glictTextbox txtItem;
glictButton btnUpdate;
glictTextbox txtLocX, txtLocY, txtLocZ;
glictButton btnUpdateMap;
Sprite* background;
Sprite* spr;
ThingUI* thing;
Popup* popup;
bool killpopup;
Sprite* map[4];
int mapw, maph, px, py, pz, mapcount;
std::string mapfns[4];
Automap a;
ChoiceGrid grid;
};
#endif