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 
26 namespace Wintermute {
27 class ScriptMonitor;
28 class Watch;
29 class WatchInstance;
30 class DebuggableScEngine;
31 
32 class 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);
40 public:
42  ~DebuggableScript() override;
43  ScValue *resolveName(const Common::String &name);
47  virtual uint dbgGetLine() const;
48  virtual Common::String dbgGetFilename() const;
52  void step();
56  void stepContinue();
60  void stepFinish();
61  void updateWatches();
62 };
63 
64 } // End of namespace Wintermute
65 
66 #endif /* DEBUGGABLE_SCRIPT_H_ */
Definition: script.h:44
Definition: base_game.h:76
Definition: script_value.h:42
Definition: str.h:59
Definition: debuggable_script_engine.h:93
Definition: coll_templ.h:63
virtual uint dbgGetLine() const
Definition: debuggable_script.h:32
Definition: achievements_tables.h:27