spacewar
Class Pilot

java.lang.Object
  |
  +--spacewar.Pilot
Direct Known Subclasses:
Player, Robot

abstract class Pilot
extends java.lang.Object

Pilot is the abstract superclass of Player and Robot.


Field Summary
protected  Ship ship
          
 
Constructor Summary
(package private) Pilot(Game g, int n)
          
 
Method Summary
(package private)  Game getGame()
          
(package private)  int getNumber()
          
(package private)  Ship getShip()
          
(package private)  void setShip(Ship s)
          
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ship

protected Ship ship
Constructor Detail

Pilot

Pilot(Game g,
      int n)
Method Detail

getGame

Game getGame()

getNumber

int getNumber()

getShip

Ship getShip()

setShip

void setShip(Ship s)