org.argosfields.model
Class TransportUnit

java.lang.Object
  extended byorg.argosfields.model.Unit
      extended byorg.argosfields.model.TransportUnit
All Implemented Interfaces:
ITransport
Direct Known Subclasses:
AircraftCarriers, Hovercraft, PersonnelCarriers, TransportPlanes, Troopships, TroopTrain

public abstract class TransportUnit
extends Unit
implements ITransport

TransportUnit.java

Version:
$Revision: 1.1 $ $Date: 2003/10/19 08:33:43 $
Author:
Xavier Cho

Field Summary
 
Fields inherited from class org.argosfields.model.Unit
MAX_RANK, MAX_STRENGTH
 
Constructor Summary
TransportUnit()
           
 
Method Summary
 boolean canLoad(Unit unit)
           
 int getAvailableTransportSlots()
           
abstract  int getMaxUnitWeight()
           
abstract  int getMinUnitWeight()
           
abstract  int getTransportSlots()
           
 int getUnitCount()
           
 Unit[] getUnits()
           
 void load(Unit unit)
           
 Unit unload(int index)
           
 
Methods inherited from class org.argosfields.model.Unit
canTraverse, equals, forName, getBuildCost, getDefensePoint, getFacing, getFireSoundName, getIconIndex, getIconStartIndex, getMoveSoundName, getName, getPlayer, getRank, getStrength, getTerrainFlags, getTypeId, getWeight, hashCode, setFacing, setPlayer, setRank, setStrength, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransportUnit

public TransportUnit()
Method Detail

getTransportSlots

public abstract int getTransportSlots()
Specified by:
getTransportSlots in interface ITransport
See Also:
ITransport.getTransportSlots()

getMinUnitWeight

public abstract int getMinUnitWeight()
Specified by:
getMinUnitWeight in interface ITransport
See Also:
ITransport.getMinUnitWeight()

getMaxUnitWeight

public abstract int getMaxUnitWeight()
Specified by:
getMaxUnitWeight in interface ITransport
See Also:
ITransport.getMaxUnitWeight()

getAvailableTransportSlots

public int getAvailableTransportSlots()
Specified by:
getAvailableTransportSlots in interface ITransport
See Also:
ITransport.getAvailableTransportSlots()

getUnitCount

public int getUnitCount()
Specified by:
getUnitCount in interface ITransport
See Also:
ITransport.getUnitCount()

unload

public Unit unload(int index)
Specified by:
unload in interface ITransport
See Also:
ITransport.unload(int)

load

public void load(Unit unit)
Specified by:
load in interface ITransport
See Also:
ITransport.load(org.argosfields.model.Unit)

canLoad

public boolean canLoad(Unit unit)
Specified by:
canLoad in interface ITransport
See Also:
ITransport.canLoad(org.argosfields.model.Unit)

getUnits

public Unit[] getUnits()
Specified by:
getUnits in interface ITransport
See Also:
ITransport.getUnits()


Copyright © Gnome Korea. All Rights Reserved.