com.empireclassic.Remote
Class Ship

java.lang.Object
  extended by 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

Field Summary
protected  WorldCoord loc
           
protected  int shipNum
           
protected  double speed
           
protected  boolean submerged
           
protected  ShipType type
           
 
Constructor Summary
Ship()
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 java.lang.String formatName()
           
abstract  double getHeading()
           
 WorldCoord getLoc()
           
abstract  int getOwner()
           
 int getShipNum()
           
 double getSpeed()
           
 ShipType getType()
           
 boolean isSubmerged()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shipNum

protected int shipNum

loc

protected WorldCoord loc

type

protected ShipType type

speed

protected double speed

submerged

protected boolean submerged
Constructor Detail

Ship

public Ship()
Method Detail

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