Added UnitXrossConverter
This commit is contained in:
parent
84738628af
commit
d97076d436
159 changed files with 9197 additions and 96 deletions
|
|
@ -10,7 +10,7 @@ public class WaterShip {
|
|||
|
||||
private String name;
|
||||
private String engine;
|
||||
private List<WaterShipOcean> shipOceans = new ArrayList<>();
|
||||
private List<WaterShipWarp> warpSeas = new ArrayList<>();
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
|
|
@ -28,17 +28,17 @@ public class WaterShip {
|
|||
this.engine = engine;
|
||||
}
|
||||
|
||||
public List<WaterShipOcean> getShipOceans() {
|
||||
return shipOceans;
|
||||
public List<WaterShipWarp> getWarpSeas() {
|
||||
return warpSeas;
|
||||
}
|
||||
|
||||
public void setShipOcean(List<WaterShipOcean> shipOceans) {
|
||||
for (WaterShipOcean shipOcean:shipOceans) {
|
||||
addShipOcean(shipOcean);
|
||||
public void setWarpSeas(List<WaterShipWarp> shipOceans) {
|
||||
for (WaterShipWarp shipOcean:shipOceans) {
|
||||
addWarpSea(shipOcean);
|
||||
}
|
||||
}
|
||||
|
||||
public void addShipOcean(WaterShipOcean shipSea) {
|
||||
shipOceans.add(shipSea);
|
||||
public void addWarpSea(WaterShipWarp shipSea) {
|
||||
warpSeas.add(shipSea);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue