com.empireclassic.Remote
Class Ship
java.lang.Object
com.empireclassic.Remote.Ship
- All Implemented Interfaces:
- java.lang.Comparable
- Direct Known Subclasses:
- MyShip, YourShip
public abstract class Ship
- extends java.lang.Object
- implements java.lang.Comparable
- Author:
- chas
Constructor Summary |
Ship()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shipNum
protected int shipNum
loc
protected WorldCoord loc
type
protected ShipType type
speed
protected double speed
submerged
protected boolean submerged
Ship
public Ship()
getHeading
public abstract double getHeading()
getShipNum
public int getShipNum()
getLoc
public WorldCoord getLoc()
getType
public ShipType getType()
isSubmerged
public boolean isSubmerged()
formatName
public java.lang.String formatName()
getSpeed
public double getSpeed()
getOwner
public abstract int getOwner()
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interface java.lang.Comparable