ScummVM API documentation
debuggable_script.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef DEBUGGABLE_SCRIPT_H_
23#define DEBUGGABLE_SCRIPT_H_
24#include "engines/wintermute/base/scriptables/script.h"
25
26namespace Wintermute {
27class ScriptMonitor;
28class Watch;
29class WatchInstance;
30class DebuggableScEngine;
31
32class DebuggableScript : public ScScript {
33 static const int kDefaultStepDepth = -2;
34 int32 _stepDepth;
35 DebuggableScEngine *_engine;
36 BaseArray<WatchInstance *> _watchInstances;
37 void preInstHook(uint32 inst) override;
38 void postInstHook(uint32 inst) override;
39 void setStepDepth(int depth);
40public:
42 ~DebuggableScript() override;
43 ScValue *resolveName(const Common::String &name);
47 virtual uint dbgGetLine() const;
48 virtual Common::String dbgGetFilename() const;
52 void step();
60 void stepFinish();
61 void updateWatches();
62};
63
64} // End of namespace Wintermute
65
66#endif /* DEBUGGABLE_SCRIPT_H_ */
Definition: str.h:59
Definition: coll_templ.h:345
Definition: base_game.h:79
Definition: debuggable_script_engine.h:93
Definition: debuggable_script.h:32
virtual uint dbgGetLine() const
Definition: script.h:44
Definition: script_value.h:42