@@ -144,6 +144,9 @@ class LIBSCRATCHCPP_EXPORT IEngine
144
144
/* ! Sets the maximum number of clones (use -1 or any negative number to disable the limit). */
145
145
virtual void setCloneLimit (int limit) = 0;
146
146
147
+ /* ! Returns the current number of clones. */
148
+ virtual int cloneCount () const = 0;
149
+
147
150
/* ! Returns true if sprite fencing is enabled. */
148
151
virtual bool spriteFencingEnabled () const = 0;
149
152
@@ -244,6 +247,21 @@ class LIBSCRATCHCPP_EXPORT IEngine
244
247
*/
245
248
virtual int findTarget (const std::string &targetName) const = 0;
246
249
250
+ /* ! Moves the given sprite to the front layer. */
251
+ virtual void moveSpriteToFront (Sprite *sprite) = 0;
252
+
253
+ /* ! Moves the given sprite to the back layer. */
254
+ virtual void moveSpriteToBack (Sprite *sprite) = 0;
255
+
256
+ /* ! Moves the given sprite forward a number of layers. */
257
+ virtual void moveSpriteForwardLayers (Sprite *sprite, int layers) = 0;
258
+
259
+ /* ! Moves the given sprite backward a number of layers. */
260
+ virtual void moveSpriteBackwardLayers (Sprite *sprite, int layers) = 0;
261
+
262
+ /* ! Moves the given sprite behind some other sprite. */
263
+ virtual void moveSpriteBehindOther (Sprite *sprite, Sprite *other) = 0;
264
+
247
265
/* ! Returns the Stage. */
248
266
virtual Stage *stage () const = 0;
249
267
0 commit comments