Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(830)

Unified Diff: sky/sdk/example/game/lib/action.dart

Issue 1223543004: Adds better explosions, shield, and game over (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/sdk/example/game/lib/game_demo.dart » ('j') | sky/sdk/example/game/lib/game_demo.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/sdk/example/game/lib/action.dart
diff --git a/sky/sdk/example/game/lib/action.dart b/sky/sdk/example/game/lib/action.dart
index f0763c02c01bd09d23b335c1f60d7455d95d6dbd..70c25bf12d2bef41c2ac6d2dda57390db396d641 100644
--- a/sky/sdk/example/game/lib/action.dart
+++ b/sky/sdk/example/game/lib/action.dart
@@ -1,6 +1,6 @@
part of sprites;
-typedef void PointSetter(Point point);
+typedef void ActionCallback();
abstract class Action {
bool _finished = false;
@@ -123,7 +123,7 @@ abstract class ActionInstant extends Action {
}
class ActionCallFunction extends ActionInstant {
- Function _function;
+ ActionCallback _function;
ActionCallFunction(this._function);
@@ -132,10 +132,10 @@ class ActionCallFunction extends ActionInstant {
}
}
-class ActionRemoveFromParent extends ActionInstant {
+class ActionRemoveNode extends ActionInstant {
Node _node;
- ActionRemoveFromParent(this._node);
+ ActionRemoveNode(this._node);
void fire() {
_node.removeFromParent();
« no previous file with comments | « no previous file | sky/sdk/example/game/lib/game_demo.dart » ('j') | sky/sdk/example/game/lib/game_demo.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698