assignment6
Class Ship

java.lang.Object
  extended by assignment6.Ship

public class Ship
extends java.lang.Object

Terrain type for home base


Constructor Summary
Ship(java.awt.image.BufferedImage tile, java.lang.String name, char symbol)
           
 
Method Summary
 java.lang.String getName()
           
 int getNTiles()
           
 char getSymbol()
           
 java.awt.image.BufferedImage getTile()
           
 java.awt.image.BufferedImage getTile(int index)
           
 boolean isObstacle()
           
 boolean isShip()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ship

public Ship(java.awt.image.BufferedImage tile,
            java.lang.String name,
            char symbol)
Method Detail

isShip

public boolean isShip()

isObstacle

public boolean isObstacle()

getName

public java.lang.String getName()

getSymbol

public char getSymbol()

getTile

public java.awt.image.BufferedImage getTile(int index)

getNTiles

public int getNTiles()

getTile

public java.awt.image.BufferedImage getTile()