com.mekmaker.designer
Class TotalWarfareBattleMechDesigner

java.lang.Object
  extended by com.mekmaker.common.AbstractEntity
      extended by com.mekmaker.common.AbstractDesigner
          extended by com.mekmaker.designer.TotalWarfareBattleMechDesigner

public class TotalWarfareBattleMechDesigner
extends AbstractDesigner


Field Summary
static int SECTION_CT
           
static int SECTION_HD
           
static int SECTION_LA
           
static int SECTION_LL
           
static int SECTION_LT
           
static int SECTION_RA
           
static int SECTION_RL
           
static int SECTION_RT
           
 
Fields inherited from class com.mekmaker.common.AbstractDesigner
overviewJPanel
 
Fields inherited from class com.mekmaker.common.AbstractEntity
name, tonnage
 
Constructor Summary
TotalWarfareBattleMechDesigner()
          Creates a new instance of BattleMechDesigner
 
Method Summary
 void addArmor(int section)
           
 void addArmor(int section, boolean rear)
           
 int getAdditionalHeatSinkCount()
           
 ArmorTypes getArmorType()
           
 float getArmorWeight()
           
 float getAvailableTonnage()
          tally total tonnage available
 int getBaseHeatSinkCount()
           
 CockpitTypes getCockpitType()
           
 java.lang.String getDescription()
           
 int getEngineRating()
           
 EngineTypes getEngineType()
           
 float getEngineWeight()
           
 GyroTypes getGyroType()
           
 float getGyroWeight()
           
 int getHeatSinkCount()
           
 int getHeatSinkHeatDissipation()
           
 int getHeatSinkSlotsRequiredCount()
           
 HeatSinkTypes getHeatSinkType()
           
 float getHeatSinkWeight()
           
 int getIntegralHeatSinkCount()
           
 InternalStructureTypes getInternalStructureType()
           
 float getInternalStructureWeight()
           
 float getJumpJetWeight()
           
 int getJumpMP()
           
 java.lang.String getMainType()
           
 MotiveTypes getMotiveType()
           
 int getRunMP()
           
 Section getSection(int section)
           
 java.lang.String[] getSectionNames()
           
 java.lang.String getSubType()
           
 TechnologyBases getTechnologyBase()
           
 float getUsedTonnage()
          tally tonnage used
 int getWalkMP()
           
 boolean isUsingImprovedJumpJets()
           
 void removeArmor(int section)
           
 void removeArmor(int section, boolean rear)
           
 void setAdditionalHeatSinks(int count)
           
 void setArmorType(int type)
           
 void setCockpitType(int type)
           
 void setEngineType(int type)
           
 void setGyroType(int type)
           
 void setHeatSinkType(int type)
           
 void setInternalStructureType(int type)
          set internal structure type
 void setJumpMP(int jumpMP)
           
 void setMotiveType(int type)
           
 void setTechnologyBase(int tech)
          Sets the technology base and tries to reapply all other type settings.
 void setTonnage(float tonnage)
           
protected  AbstractDesignerJPanel setupOverviewJPanel()
           
 void setUseImprovedJumpJets(boolean onoff)
           
 void setWalkMP(int walkMP)
           
 boolean updateStatusBar()
          clears the status bar - returns true if there is a status bar
 
Methods inherited from class com.mekmaker.common.AbstractDesigner
addTreeNode, getOverviewJPanel, getTreeNodes
 
Methods inherited from class com.mekmaker.common.AbstractEntity
getName, getTonnage, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SECTION_HD

public static final int SECTION_HD
See Also:
Constant Field Values

SECTION_LA

public static final int SECTION_LA
See Also:
Constant Field Values

SECTION_RA

public static final int SECTION_RA
See Also:
Constant Field Values

SECTION_LT

public static final int SECTION_LT
See Also:
Constant Field Values

SECTION_CT

public static final int SECTION_CT
See Also:
Constant Field Values

SECTION_RT

public static final int SECTION_RT
See Also:
Constant Field Values

SECTION_LL

public static final int SECTION_LL
See Also:
Constant Field Values

SECTION_RL

public static final int SECTION_RL
See Also:
Constant Field Values
Constructor Detail

TotalWarfareBattleMechDesigner

public TotalWarfareBattleMechDesigner()
Creates a new instance of BattleMechDesigner

Method Detail

getMainType

public java.lang.String getMainType()
Specified by:
getMainType in class AbstractDesigner

getSubType

public java.lang.String getSubType()
Specified by:
getSubType in class AbstractDesigner

setupOverviewJPanel

protected AbstractDesignerJPanel setupOverviewJPanel()
Specified by:
setupOverviewJPanel in class AbstractDesigner

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class AbstractDesigner

updateStatusBar

public boolean updateStatusBar()
Description copied from class: AbstractDesigner
clears the status bar - returns true if there is a status bar

Overrides:
updateStatusBar in class AbstractDesigner

setTonnage

public void setTonnage(float tonnage)
Overrides:
setTonnage in class AbstractEntity

getSection

public Section getSection(int section)

getArmorType

public ArmorTypes getArmorType()

getArmorWeight

public float getArmorWeight()

setArmorType

public void setArmorType(int type)

addArmor

public void addArmor(int section)

addArmor

public void addArmor(int section,
                     boolean rear)

removeArmor

public void removeArmor(int section,
                        boolean rear)

removeArmor

public void removeArmor(int section)

getSectionNames

public java.lang.String[] getSectionNames()

getMotiveType

public MotiveTypes getMotiveType()

setMotiveType

public void setMotiveType(int type)

setWalkMP

public void setWalkMP(int walkMP)

setGyroType

public void setGyroType(int type)

setEngineType

public void setEngineType(int type)

getEngineRating

public int getEngineRating()

getEngineWeight

public float getEngineWeight()

getWalkMP

public int getWalkMP()

getRunMP

public int getRunMP()

getGyroWeight

public float getGyroWeight()

setTechnologyBase

public void setTechnologyBase(int tech)
Sets the technology base and tries to reapply all other type settings.


setInternalStructureType

public void setInternalStructureType(int type)
set internal structure type


setCockpitType

public void setCockpitType(int type)

getInternalStructureWeight

public float getInternalStructureWeight()

getAvailableTonnage

public float getAvailableTonnage()
tally total tonnage available


getUsedTonnage

public float getUsedTonnage()
tally tonnage used


getInternalStructureType

public InternalStructureTypes getInternalStructureType()

getTechnologyBase

public TechnologyBases getTechnologyBase()

getEngineType

public EngineTypes getEngineType()

getGyroType

public GyroTypes getGyroType()

getCockpitType

public CockpitTypes getCockpitType()

setJumpMP

public void setJumpMP(int jumpMP)

setUseImprovedJumpJets

public void setUseImprovedJumpJets(boolean onoff)

isUsingImprovedJumpJets

public boolean isUsingImprovedJumpJets()

getJumpMP

public int getJumpMP()

getJumpJetWeight

public float getJumpJetWeight()

setAdditionalHeatSinks

public void setAdditionalHeatSinks(int count)

getAdditionalHeatSinkCount

public int getAdditionalHeatSinkCount()

getHeatSinkWeight

public float getHeatSinkWeight()

getHeatSinkCount

public int getHeatSinkCount()

getBaseHeatSinkCount

public int getBaseHeatSinkCount()

getIntegralHeatSinkCount

public int getIntegralHeatSinkCount()

getHeatSinkSlotsRequiredCount

public int getHeatSinkSlotsRequiredCount()

setHeatSinkType

public void setHeatSinkType(int type)

getHeatSinkType

public HeatSinkTypes getHeatSinkType()

getHeatSinkHeatDissipation

public int getHeatSinkHeatDissipation()