assignment6
Class Ship
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Ship
public Ship(java.awt.image.BufferedImage tile,
java.lang.String name,
char symbol)
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()