Class UnitToolTip
java.lang.Object
megamek.client.ui.clientGUI.tooltip.UnitToolTip
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HashMap<String, WeaponInfo> createWeaponList(Entity entity) Gather names, counts, Clan/ISstatic StringgetDamageLevelDesc(Entity entity, boolean useHtml) static StringBuildergetEntityTipAsTarget(Entity entity, Player localPlayer) Returns the unit tooltip with minimal but useful informationstatic StringBuildergetEntityTipGame(Entity entity, Player localPlayer) Returns the unit tooltip with values that are relevant in-game.static StringBuildergetEntityTipLobby(Entity entity, Player localPlayer, MapSettings mapSettings) Returns the unit tooltip with values that are relevant in the lobby.static StringBuildergetEntityTipReport(Entity entity) Returns the unit tooltip with minimal but useful informationstatic StringBuildergetEntityTipUnitDisplay(Entity entity, Player localPlayer) Returns the unit tooltip with values that are relevant in-game without the Pilot info.getHeatCapacityForDisplay(Entity entity) returns total heat capacity factoring in normal capacity, water and radical HSstatic StringgetOneLineSummary(Entity entity) static Stringstatic StringgetTargetTipDetail(Targetable target, Client client) static StringgetTargetTipSummary(Targetable target, Client client) static StringgetTargetTipSummaryEntity(Entity entity, Client client) static StringBuildergetWeaponList(Entity entity) static StringBuilderlobbyTip(InGameObject unit, Player localPlayer, MapSettings mapSettings) static StringwrapWithHTML(String text)
-
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
Returns the unit tooltip with values that are relevant in-game. -
getEntityTipUnitDisplay
Returns the unit tooltip with values that are relevant in-game without the Pilot info. -
getEntityTipAsTarget
Returns the unit tooltip with minimal but useful information -
getEntityTipReport
Returns the unit tooltip with minimal but useful information -
wrapWithHTML
-
getTargetTipDetail
-
getTargetTipSummary
-
getTargetTipSummaryEntity
-
getWeaponList
-
createWeaponList
Gather names, counts, Clan/IS -
getHeatCapacityForDisplay
returns total heat capacity factoring in normal capacity, water and radical HS -
getOneLineSummary
-
getSensorDesc
-
getDamageLevelDesc
-