Interface InfantryTransporter

All Superinterfaces:
Serializable
All Known Implementing Classes:
BattleArmorBay, CargoBay, InfantryBay, InfantryCompartment

public interface InfantryTransporter extends Serializable
Classes that implement this interface have the ability to load, carry, drop, and unload Infantry units in the game. This interface includes a subset of the Bay.java class methods and Transporter interface.
See Also:
  • Method Details

    • canLoad

      default boolean canLoad(Entity unit)
      These methods are required for Infantry unit loading/unloading. In practice, all are provided by Bay() or overridden in transports that can carry infantry.
    • getDroppableUnits

      List<Entity> getDroppableUnits()
    • getLoadedUnits

      Vector<Entity> getLoadedUnits()
    • getUnused

      double getUnused()
    • getUnusedSlots

      double getUnusedSlots()
    • getTransporterType

      String getTransporterType()
    • load

      void load(Entity unit)
    • spaceForUnit

      double spaceForUnit(Entity unit)
    • getCurrentDoors

      default int getCurrentDoors()