Class Spaceship
java.lang.Object
|
+--Unit
|
+--Spaceship
- public class Spaceship
- extends Unit
|
Constructor Summary |
Spaceship(java.lang.String name,
int cann,
int shiel,
int maneuv,
int maxPass,
Charactr own)
|
| 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 |
Spaceship
public Spaceship(java.lang.String name,
int cann,
int shiel,
int maneuv,
int maxPass,
Charactr own)
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()