Class UnitToolTip

java.lang.Object
megamek.client.ui.clientGUI.tooltip.UnitToolTip

public final class UnitToolTip extends Object
  • Method Details

    • lobbyTip

      public static StringBuilder lobbyTip(InGameObject unit, Player localPlayer, MapSettings mapSettings)
    • getEntityTipLobby

      public static StringBuilder getEntityTipLobby(Entity entity, Player localPlayer, MapSettings mapSettings)
      Returns the unit tooltip with values that are relevant in the lobby.
    • getEntityTipGame

      public static StringBuilder getEntityTipGame(Entity entity, Player localPlayer)
      Returns the unit tooltip with values that are relevant in-game.
    • getEntityTipUnitDisplay

      public static StringBuilder getEntityTipUnitDisplay(Entity entity, Player localPlayer)
      Returns the unit tooltip with values that are relevant in-game without the Pilot info.
    • getEntityTipAsTarget

      public static StringBuilder getEntityTipAsTarget(Entity entity, Player localPlayer)
      Returns the unit tooltip with minimal but useful information
    • getEntityTipReport

      public static StringBuilder getEntityTipReport(Entity entity)
      Returns the unit tooltip with minimal but useful information
    • wrapWithHTML

      public static String wrapWithHTML(String text)
    • getTargetTipDetail

      public static String getTargetTipDetail(Targetable target, @Nullable Client client)
    • getTargetTipSummary

      public static String getTargetTipSummary(Targetable target, @Nullable Client client)
    • getTargetTipSummaryEntity

      public static String getTargetTipSummaryEntity(Entity entity, @Nullable Client client)
    • getWeaponList

      public static StringBuilder getWeaponList(Entity entity)
    • createWeaponList

      public static HashMap<String,WeaponInfo> createWeaponList(Entity entity)
      Gather names, counts, Clan/IS
    • getHeatCapacityForDisplay

      public static UnitToolTip.HeatDisplayHelper getHeatCapacityForDisplay(Entity entity)
      returns total heat capacity factoring in normal capacity, water and radical HS
    • getOneLineSummary

      public static String getOneLineSummary(Entity entity)
    • getSensorDesc

      public static String getSensorDesc(Entity e)
    • getDamageLevelDesc

      public static String getDamageLevelDesc(Entity entity, boolean useHtml)