Class Descriptions
java.lang.Object
Descriptions
public class Descriptions
- extends java.lang.Object
Contains the name and corresponding lengths of all the types of ships
valid in this game. A type of factory class.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Descriptions
public Descriptions()
getShipAdjective
public static java.lang.String getShipAdjective()
getShipLocation
public static java.lang.String getShipLocation()
getShipType
public static java.lang.String getShipType()
getNextShipName
public static java.lang.String getNextShipName()
extractShipType
public static java.lang.String extractShipType(java.lang.String desc)
getShipLength
public static int getShipLength(java.lang.String desc)