SailingRenderUtil
Static utility class for rendering boat hull overlays.
ClassRLPlugins API
public class SailingRenderUtilProvides methods to outline the ship's hull in its current rotation.
Members
Static methods
- voidrenderBoatCenter(Graphics2D, Color)
Renders the boat's center point as a marker.
- voidrenderBoatCollisionDebug(Graphics2D)
DEBUG: Renders boat collision data with diagnostic info.
- voidrenderPlayerBoatComplete(Graphics2D)
Renders both hull and deck together with default colors.
- voidrenderPlayerBoatDeck(Graphics2D)
Renders the player's boat deck (walkable areas) with default colors.
- voidrenderPlayerBoatDeck(Graphics2D, Color, Color, Stroke)
Renders the player's boat deck (walkable areas) with custom colors.
- voidrenderPlayerBoatHull(Graphics2D)
Renders the player's boat hull outline with default colors.
- voidrenderPlayerBoatHull(Graphics2D, Color, Color, Stroke)
Renders the player's boat hull outline with custom colors.
- voidrenderWorldPointTile(Graphics2D, WorldPoint, Color)
Renders a specific WorldPoint as a single tile outline.
renderBoatCenter(Graphics2D, Color)static
public static void renderBoatCenter(Graphics2D graphics, Color color)Renders the boat's center point as a marker.
Useful for debugging boat positioning.
Parameters
graphics- The Graphics2D context.
color- The color for the center marker.
renderBoatCollisionDebug(Graphics2D)static
public static void renderBoatCollisionDebug(Graphics2D graphics)DEBUG: Renders boat collision data with diagnostic info.
Shows raw boat-local coordinates before transformation to help debug offset issues.
Parameters
graphics- The Graphics2D context.
renderPlayerBoatComplete(Graphics2D)static
public static void renderPlayerBoatComplete(Graphics2D graphics)Renders both hull and deck together with default colors.
Hull in orange, deck in green.
Parameters
graphics- The Graphics2D context.
renderPlayerBoatDeck(Graphics2D)static
public static void renderPlayerBoatDeck(Graphics2D graphics)Renders the player's boat deck (walkable areas) with default colors.
Deck tiles are shown in green, representing where you can walk on the boat.
Parameters
graphics- The Graphics2D context.
renderPlayerBoatDeck(Graphics2D, Color, Color, Stroke)static
public static void renderPlayerBoatDeck(Graphics2D graphics, Color outlineColor, Color fillColor, Stroke stroke)Renders the player's boat deck (walkable areas) with custom colors.
Parameters
graphics- The Graphics2D context.
outlineColor- The color for the deck outline.
fillColor- The fill color (use alpha for transparency).
stroke- The stroke style for the outline.
renderPlayerBoatHull(Graphics2D)static
public static void renderPlayerBoatHull(Graphics2D graphics)Renders the player's boat hull outline with default colors.
Hull tiles are shown in orange, representing the collision footprint.
Parameters
graphics- The Graphics2D context.
renderPlayerBoatHull(Graphics2D, Color, Color, Stroke)static
public static void renderPlayerBoatHull(Graphics2D graphics, Color outlineColor, Color fillColor, Stroke stroke)Renders the player's boat hull outline with custom colors.
The hull is automatically rotated based on the boat's current orientation.
Parameters
graphics- The Graphics2D context.
outlineColor- The color for the hull outline.
fillColor- The fill color (use alpha for transparency).
stroke- The stroke style for the outline.
renderWorldPointTile(Graphics2D, WorldPoint, Color)static
public static void renderWorldPointTile(Graphics2D graphics, WorldPoint point, Color color)Renders a specific WorldPoint as a single tile outline.
Useful for highlighting specific positions relative to the boat.
Parameters
graphics- The Graphics2D context.
point- The world point to render.
color- The outline color.
Also allowed
Every class has these, as in plain Java.
equals, toString