Class BMChassisView

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener

public class BMChassisView extends BuildView implements ActionListener, ChangeListener
Construction options and systems for Meks.
See Also:
  • Field Details

  • Constructor Details

    • BMChassisView

      public BMChassisView(megamek.common.ITechManager techManager)
  • Method Details

    • addListener

      public void addListener(MekBuildListener l)
    • removeListener

      public void removeListener(MekBuildListener l)
    • setFromEntity

      public void setFromEntity(megamek.common.Mek mek)
    • setAsCustomization

      public void setAsCustomization()
    • isSuperheavy

      public boolean isSuperheavy()
    • isPrimitive

      public boolean isPrimitive()
    • isIndustrial

      public boolean isIndustrial()
    • getEngineRating

      public int getEngineRating()
    • setEngineRating

      public void setEngineRating(int rating)
    • refresh

      public void refresh()
    • getAvailableEngines

      public List<megamek.common.Engine> getAvailableEngines()
    • getTonnage

      public double getTonnage()
    • setTonnage

      public void setTonnage(double tonnage)
    • isOmni

      public boolean isOmni()
    • setOmni

      public void setOmni(boolean omni)
    • getBaseTypeIndex

      public int getBaseTypeIndex()
    • setBaseTypeIndex

      public void setBaseTypeIndex(int index)
    • getEntityType

      public long getEntityType()
    • getMotiveTypeIndex

      public int getMotiveTypeIndex()
    • setMotiveTypeIndex

      public void setMotiveTypeIndex(int index)
    • getStructure

      public megamek.common.EquipmentType getStructure()
    • setStructureType

      public void setStructureType(megamek.common.EquipmentType structure)
    • setStructureType

      public void setStructureType(String structureName)
    • getEngine

      public megamek.common.Engine getEngine()
    • setEngine

      public void setEngine(megamek.common.Engine engine)
      Select the first engine in the list that matches engine type and flags, ignoring any flags other than Clan. If no match can be found based on type and flags, disregards Clan flag as well.
      Parameters:
      engine - The engine to match
    • getGyroType

      public int getGyroType()
    • setGyroType

      public void setGyroType(int gyro)
    • getCockpitType

      public int getCockpitType()
    • setCockpitType

      public void setCockpitType(int cockpit)
    • getEnhancement

      public megamek.common.EquipmentType getEnhancement()
    • setEnhancement

      public void setEnhancement(megamek.common.EquipmentType enhancement)
    • hasFullHeadEject

      public boolean hasFullHeadEject()
    • setFullHeadEject

      public void setFullHeadEject(boolean eject)
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Specified by:
      stateChanged in interface ChangeListener