@@ -23,6 +23,7 @@ class Stage;
2323class Variable ;
2424class List ;
2525class Script ;
26+ class Thread ;
2627class ITimer ;
2728class KeyEvent ;
2829class Monitor ;
@@ -58,26 +59,26 @@ class LIBSCRATCHCPP_EXPORT IEngine
5859 virtual void stop () = 0;
5960
6061 /* ! Starts a script with the given top level block as the given Target (a sprite or the stage). */
61- virtual VirtualMachine *startScript (std::shared_ptr<Block> topLevelBlock, Target *) = 0;
62+ virtual Thread *startScript (std::shared_ptr<Block> topLevelBlock, Target *) = 0;
6263
6364 /* ! Starts the scripts of the broadcast with the given index. */
64- virtual void broadcast (int index, VirtualMachine *sender) = 0;
65+ virtual void broadcast (int index, Thread *sender) = 0;
6566
6667 /* ! Starts the scripts of the given broadcast. */
67- virtual void broadcastByPtr (Broadcast *broadcast, VirtualMachine *sender) = 0;
68+ virtual void broadcastByPtr (Broadcast *broadcast, Thread *sender) = 0;
6869
6970 /* ! Starts the "when backdrop switches to" scripts for the given backdrop broadcast. */
70- virtual void startBackdropScripts (Broadcast *broadcast, VirtualMachine *sender) = 0;
71+ virtual void startBackdropScripts (Broadcast *broadcast, Thread *sender) = 0;
7172
7273 /* ! Stops the given script. */
73- virtual void stopScript (VirtualMachine *vm) = 0;
74+ virtual void stopScript (Thread *vm) = 0;
7475
7576 /* !
7677 * Stops all scripts in the given target.
7778 * \param[in] target The Target to stop.
7879 * \param[in] exceptScript Sets this parameter to stop all scripts except the given script.
7980 */
80- virtual void stopTarget (Target *target, VirtualMachine *exceptScript) = 0;
81+ virtual void stopTarget (Target *target, Thread *exceptScript) = 0;
8182
8283 /* ! Calls the "when I start as a clone" blocks of the given sprite. */
8384 virtual void initClone (std::shared_ptr<Sprite> clone) = 0;
@@ -121,7 +122,7 @@ class LIBSCRATCHCPP_EXPORT IEngine
121122 virtual sigslot::signal<> &aboutToRender () = 0;
122123
123124 /* ! Emits when a script is about to stop. */
124- virtual sigslot::signal<VirtualMachine *> &threadAboutToStop () = 0;
125+ virtual sigslot::signal<Thread *> &threadAboutToStop () = 0;
125126
126127 /* ! Emits when the project is stopped by calling stop(). */
127128 virtual sigslot::signal<> &stopped () = 0;
0 commit comments