Class Descriptions

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


Constructor Summary
Descriptions()
           
 
Method Summary
static java.lang.String extractShipType(java.lang.String desc)
           
static java.lang.String getNextShipName()
           
static java.lang.String getShipAdjective()
           
static int getShipLength(java.lang.String desc)
           
static java.lang.String getShipLocation()
           
static java.lang.String getShipType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Descriptions

public Descriptions()
Method Detail

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)