|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--dBattNav.dNave.Nave | +--dBattNav.dNave.Portaerei
classe Portaerei per la gestione di una nave portaerei nel piano
Coppia
,
Nave
,
BattNav
Field Summary | |
private boolean |
pista
|
Fields inherited from class dBattNav.dNave.Nave |
|
Constructor Summary | |
Portaerei(dBattNav.dCoppia.Coppia c,
int l)
costruttore di inizializzazione |
Method Summary | |
boolean |
controllo()
metodo che controlla se la portaerei è affondata |
java.lang.String |
fuoco(dBattNav.dCoppia.Coppia c)
fuoco ritorna l'esito di un colpo |
dBattNav.dCoppia.Coppia |
getCoords()
getCoords restituisce le coordinate della componente iniziale della nave |
int |
getL()
getL restituisce la lunghezza della portaerei |
boolean[] |
getStatus()
getStatus restituisce il vettore degli stati delle componenti della nave |
int |
getX()
getX restituisce la coordinata x della componente iniziale della nave |
int |
getY()
getY restituisce la coordinata x della componente iniziale della nave |
java.lang.String |
toString()
toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean pista
Constructor Detail |
public Portaerei(dBattNav.dCoppia.Coppia c, int l)
c
- coppia di coordinate della componente inizialeMethod Detail |
public java.lang.String fuoco(dBattNav.dCoppia.Coppia c)
fuoco
in class Nave
public boolean controllo()
controllo
in class Nave
public int getX()
getX
in class Nave
public int getY()
getY
in class Nave
public int getL()
getL
in class Nave
public dBattNav.dCoppia.Coppia getCoords()
getCoords
in class Nave
public boolean[] getStatus()
getStatus
in class Nave
public java.lang.String toString()
toString
in class Nave
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |