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


Inner Class Summary
(package private)  class AirTrans.Cargo
           
 
Field Summary
(package private)  AirTrans.Cargo slot1
          Cargo slot 1
(package private)  AirTrans.Cargo slot2
          Cargo slot 2
(package private)  AirTrans.Cargo slot3
          Cargo slot 3
(package private)  AirTrans.Cargo slot4
          Cargo slot 4
(package private) static javax.swing.ImageIcon unitIcon
           
 
Fields inherited from class Unit
armor, attacked, cost, firepower, forest, health, maxHealth, moved, movementRange, nextUnit, number, passableTerrain, posx, posy, prevx, prevy, type, unitIcon, water
 
Constructor Summary
AirTrans()
           
 
Method Summary
 boolean addCargo(Unit u)
          add a unit to cargo if space available
 void dropOffCargo(Unit u)
          drop off a unit from cargo
 AirTrans.Cargo getCargoSlot(int i)
          get the particular Cargo slot
 boolean hasCargo()
          returns whether or not something is in the cargo bays
 
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
 

Field Detail

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
Constructor Detail

AirTrans

public AirTrans()
Method Detail

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