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 GameState { | |
7 static const GameState reset = const GameState._internal("reset"); | |
8 static const GameState started = const GameState._internal("started"); | |
9 static const GameState won = const GameState._internal("won"); | |
10 static const GameState lost = const GameState._internal("lost"); | |
11 final String name; | |
12 | |
13 const GameState._internal(this.name); | |
14 | |
15 String toString() => 'GameState: $name'; | |
16 } | |
OLD | NEW |