From 0460f86052ddc8fa624983484b1161da2c04b5e6 Mon Sep 17 00:00:00 2001 From: Viktor Lidholt Date: Mon, 17 Aug 2015 09:23:13 -0700 Subject: [PATCH] Adds a new ActionDelay class to sprites --- examples/game/lib/action.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/game/lib/action.dart b/examples/game/lib/action.dart index 733281a132b..ceabdad6608 100644 --- a/examples/game/lib/action.dart +++ b/examples/game/lib/action.dart @@ -295,6 +295,13 @@ class ActionGroup extends ActionInterval { } } +/// An action that doesn't perform any other task than taking time. This action +/// is typically used in a sequence to space out other events. +class ActionDelay extends ActionInterval { + /// Creates a new action with the specified [delay] + ActionDelay(double delay) : super(delay); +} + /// An action that doesn't have a duration. If this class is overridden to /// create custom instant actions, only the [fire] method should be overriden. abstract class ActionInstant extends Action {