Class AirTrans
java.lang.Object
|
+--Unit
|
+--AirTrans
- class AirTrans
- extends Unit
The unit that Represents an Air Transport
Default statistics are: health - 150, armor - 90, firepower - 0, movement range - 6, type - "Air Transport"
Special Ability: the ability to carry up to 2 soldiers, 1 super soldier, 1 tank and 1 missle launcher
Fields inherited from class Unit |
armor,
attacked,
cost,
firepower,
forest,
health,
maxHealth,
moved,
movementRange,
nextUnit,
number,
passableTerrain,
posx,
posy,
prevx,
prevy,
type,
unitIcon,
water |
Methods inherited from class Unit |
addPassableTerrain,
getArmor,
getCost,
getFirePower,
getHealth,
getIcon,
getMaxHealth,
getMovementRange,
getNext,
getNumber,
getOldX,
getOldY,
getPositionX,
getPositionY,
getType,
hasAttacked,
hasMoved,
isPassable,
setAttacked,
setHealth,
setIcon,
setMoved,
setNext,
setNumber,
setPositionX,
setPositionY,
takeDamage |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
unitIcon
static javax.swing.ImageIcon unitIcon
slot1
AirTrans.Cargo slot1
- Cargo slot 1
slot2
AirTrans.Cargo slot2
- Cargo slot 2
slot3
AirTrans.Cargo slot3
- Cargo slot 3
slot4
AirTrans.Cargo slot4
- Cargo slot 4
AirTrans
public AirTrans()
addCargo
public boolean addCargo(Unit u)
- add a unit to cargo if space available
getCargoSlot
public AirTrans.Cargo getCargoSlot(int i)
- get the particular Cargo slot
dropOffCargo
public void dropOffCargo(Unit u)
- drop off a unit from cargo
hasCargo
public boolean hasCargo()
- returns whether or not something is in the cargo bays