Class ASLargeAeroCard
java.lang.Object
megamek.common.alphaStrike.cardDrawer.ASCard
megamek.common.alphaStrike.cardDrawer.ASLargeAeroCard
-
Field Summary
Fields inherited from class megamek.common.alphaStrike.cardDrawer.ASCard
alphaStrikeStatsFont, ARMOR_PIP_SIZE, armorBoxHeight, armorBoxWidth, armorBoxY, armorPipSpace, BACKGROUND_GRAY, baseInfoBoxHeight, blackFont, boldFont, BORDER, BOX_CORNER, BOX_WIDTH_WIDE, chassisFont, DAMAGE_PIP_SIZE, damageBoxHeight, damageBoxY, DARKGRAY, element, fluffHeight, fluffImage, fluffWidth, fluffXCenter, fluffYCenter, headerFont, HEIGHT, hitsTitleConfig, hitsTitleFont, lightFont, modelFont, PRINT_SCALE, specialBoxHeight, specialBoxWidth, specialBoxX, specialBoxY, specialsFont, specialsHeaderConfig, valueConfig, valueFont, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidWrite model, chassis and squad size.getCardImage(int width) Creates and returns an image of the AlphaStrike element's unit card.protected voidInitializes some values for the card.protected voidinitializeFonts(Font lightFont, Font boldFont, Font blackFont) Initializes fonts and configs.protected voidWrite the armor block.protected voidWrite base info.protected voidWrite the ground unit damage block.protected voidWrite the critical hits block.protected voidWrite the point value.protected voidWrite the special ability block.Methods inherited from class megamek.common.alphaStrike.cardDrawer.ASCard
createCard, drawCard, drawDamagePip, getCardImage, getCardImage, paintCardBackground, paintHeat, paintPipLines, paintSpecialTextLines, setFont
-
Constructor Details
-
ASLargeAeroCard
-
-
Method Details
-
getCardImage
Description copied from class:ASCardCreates and returns an image of the AlphaStrike element's unit card. The card is drawn in grayscale standard MUL style. The card is scaled to fit the given width. This method always fully draws the card so it always reflects the current state of the AlphaStrike element.- Overrides:
getCardImagein classASCard- Parameters:
width- The desired width of the card in pixels- Returns:
- The unit card image
-
initializeFonts
Description copied from class:ASCardInitializes fonts and configs. Overridden for some card types.- Overrides:
initializeFontsin classASCard
-
initialize
protected void initialize()Description copied from class:ASCardInitializes some values for the card. Overridden for some card types.- Overrides:
initializein classASCard
-
drawFlipside
-
drawModelChassis
Description copied from class:ASCardWrite model, chassis and squad size. Overridden for some card types.- Overrides:
drawModelChassisin classASCard
-
paintBaseInfo
Description copied from class:ASCardWrite base info. Overridden for some card types.- Overrides:
paintBaseInfoin classASCard
-
paintArmor
Description copied from class:ASCardWrite the armor block. Overridden for some card types.- Overrides:
paintArmorin classASCard
-
paintSpecial
Description copied from class:ASCardWrite the special ability block. Overridden for some card types.- Overrides:
paintSpecialin classASCard
-
paintPointValue
Description copied from class:ASCardWrite the point value. Overridden in Large Aero cards.- Overrides:
paintPointValuein classASCard
-
paintHits
Description copied from class:ASCardWrite the critical hits block. Subclasses override to provide content. -
paintDamage
Description copied from class:ASCardWrite the ground unit damage block. Overridden for some card types.- Overrides:
paintDamagein classASCard
-