Class Spaceship

java.lang.Object
  |
  +--Unit
        |
        +--Spaceship

public class Spaceship
extends Unit


Field Summary
 
Fields inherited from class Unit
combat, environ, group, groupType, isChar, moved, name, orbit, side, unitType
 
Constructor Summary
Spaceship(java.lang.String name, int cann, int shiel, int maneuv, int maxPass, Charactr own)
           
 
Method Summary
 boolean addPassenger(Charactr newPassenger)
           
 void changeShields(int shieldValMod)
           
static Spaceship get(java.lang.String s)
          get(String) Returns Spaceship matching Name
 int getCannons()
           
 boolean getHasPilot()
           
 int getManeuverRating()
           
 int getMaxPassengers()
           
 java.lang.String getName()
          getName() returns the name (String) of the unit
 int getNumPassengers()
           
 Charactr getOwner()
           
 Charactr[] getPassengers()
           
 Charactr getPilot()
           
 int getShieldValue()
           
static Spaceship[] getSpaceshipInitArray()
          getSpaceshipInitArray Returns Spaceship initialization array
static void init()
           
 void setInPlay(boolean b)
           
 void setPilot(Charactr newPilot)
           
 
Methods inherited from class Unit
getCombat, getEnviron, getGroupType, getMoved, getOrbit, getSide, getUnitType, moveFromOrbitBox, moveFromOrbitBox, moveFromOrbitBox, moveFromOrbitBox, moveFromOrbitBox, moveFromOrbitBox, moveShip, moveTo, moveTo, moveToOrbitBox, moveToOrbitBox, moveToOrbitBox, reactionMove, reactionMove, setEnviron, setGroupType, setOrbit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spaceship

public Spaceship(java.lang.String name,
                 int cann,
                 int shiel,
                 int maneuv,
                 int maxPass,
                 Charactr own)
Method Detail

get

public static Spaceship get(java.lang.String s)
get(String) Returns Spaceship matching Name


getSpaceshipInitArray

public static Spaceship[] getSpaceshipInitArray()
getSpaceshipInitArray Returns Spaceship initialization array


getName

public java.lang.String getName()
Description copied from class: Unit
getName() returns the name (String) of the unit

Overrides:
getName in class Unit

getCannons

public int getCannons()

getShieldValue

public int getShieldValue()

getManeuverRating

public int getManeuverRating()

getMaxPassengers

public int getMaxPassengers()

getPilot

public Charactr getPilot()

getOwner

public Charactr getOwner()

getHasPilot

public boolean getHasPilot()

getPassengers

public Charactr[] getPassengers()

getNumPassengers

public int getNumPassengers()

setPilot

public void setPilot(Charactr newPilot)

changeShields

public void changeShields(int shieldValMod)

setInPlay

public void setInPlay(boolean b)

addPassenger

public boolean addPassenger(Charactr newPassenger)

init

public static void init()