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

Unified Diff: samples/pop_pop_win/lib/src/stage/board_element.dart

Issue 786443002: Delete pop-pop-win from the repo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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
Index: samples/pop_pop_win/lib/src/stage/board_element.dart
diff --git a/samples/pop_pop_win/lib/src/stage/board_element.dart b/samples/pop_pop_win/lib/src/stage/board_element.dart
deleted file mode 100644
index 18f6ba150683b39968cf1080a7412e04b1eed785..0000000000000000000000000000000000000000
--- a/samples/pop_pop_win/lib/src/stage/board_element.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-library pop_pop_win.stage.board_element;
-
-import 'package:bot/bot.dart' show Array2d;
-import 'package:stagexl/stagexl.dart';
-
-import 'package:pop_pop_win/src/game.dart';
-import 'game_element.dart';
-import 'square_element.dart';
-
-class BoardElement extends Sprite {
- Array2d<SquareElement> _elements;
-
- BoardElement(GameElement gameElement) {
- addTo(gameElement);
-
- _elements = new Array2d<SquareElement>(game.field.width, game.field.height);
-
- num scaledSize = SquareElement.SIZE * _boardScale;
- for (int i = 0; i < _elements.length; i++) {
- var coords = _elements.getCoordinate(i);
- var se = new SquareElement(coords.item1, coords.item2)
- ..x = coords.item1 * scaledSize
- ..y = coords.item2 * scaledSize
- ..scaleX = _boardScale
- ..scaleY = _boardScale
- ..addTo(this);
-
- _elements[i] = se;
- se.updateState();
- }
-
- }
-
- GameElement get gameElement => parent;
- num get _boardScale => gameElement.boardScale;
- num get _boardSize => gameElement.boardSize;
- Array2d<SquareElement> get squares => _elements;
- Game get game => gameElement.game;
- Stage get _stage => gameElement.manager.stage;
-
- TextureAtlas get opaqueAtlas =>
- gameElement.resourceManager.getTextureAtlas('opaque');
-}
« no previous file with comments | « samples/pop_pop_win/lib/src/stage.dart ('k') | samples/pop_pop_win/lib/src/stage/game_background_element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698