OLD | NEW |
| (Empty) |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 part of pop_pop_win.game; | |
5 | |
6 class SquareState { | |
7 static const SquareState hidden = const SquareState._internal("hidden"); | |
8 static const SquareState revealed = const SquareState._internal("revealed"); | |
9 static const SquareState flagged = const SquareState._internal("flagged"); | |
10 static const SquareState bomb = const SquareState._internal("bomb"); | |
11 static const SquareState safe = const SquareState._internal('safe'); | |
12 final String name; | |
13 | |
14 const SquareState._internal(this.name); | |
15 | |
16 String toString() => 'SquareState: $name'; | |
17 } | |
OLD | NEW |