projects
/
fleet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added support for copying moves
[fleet.git]
/
src
/
edu
/
berkeley
/
fleet
/
HaltShip.java
1
package edu.berkeley.fleet;
2
3
import java.util.*;
4
import java.io.*;
5
6
public class HaltShip extends Ship {
7
8
Inbox in = new Inbox("in");
9
10
public HaltShip(Fleet fleet, String name) {
11
super(fleet, name);
12
}
13
14
public void service() {
15
if (!in.empty())
16
fleet.halt = true;
17
}
18
19
}