OLD | NEW |
1 part of dartcombatlib; | |
2 | |
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
4 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
6 | 4 |
7 /** A local player (API known to the main isolate when creating players). */ | 5 /** A local player (API known to the main isolate when creating players). */ |
8 interface Player default PlayerImpl { | 6 interface Player default PlayerImpl { |
9 | 7 |
10 Player(); | 8 Player(); |
11 | 9 |
12 final Future<SendPort> portToPlayer; | 10 final Future<SendPort> portToPlayer; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 98 |
101 /** message indicating that the enemy is ready to play. */ | 99 /** message indicating that the enemy is ready to play. */ |
102 static const ENEMY_IS_READY = 3; | 100 static const ENEMY_IS_READY = 3; |
103 | 101 |
104 /** message describing a shoot action. */ | 102 /** message describing a shoot action. */ |
105 static const SHOOT = 4; | 103 static const SHOOT = 4; |
106 | 104 |
107 /** message to set up a test port, used to make tests non-flaky. */ | 105 /** message to set up a test port, used to make tests non-flaky. */ |
108 static const SET_PORT_FOR_TEST = 5; | 106 static const SET_PORT_FOR_TEST = 5; |
109 } | 107 } |
OLD | NEW |