MarkerIndicatorEntity

class MarkerIndicatorEntity(val meepMeep: MeepMeep, colorScheme: ColorScheme, pos: Pose2d, callback: MarkerCallback, val time: Double) : ThemedEntity

Entity representing a marker in the MeepMeep simulation.

Constructors

Link copied to clipboard
constructor(meepMeep: MeepMeep, colorScheme: ColorScheme, pos: Pose2d, callback: MarkerCallback, time: Double)

Properties

Link copied to clipboard
open override val meepMeep: MeepMeep

The MeepMeep instance.

Link copied to clipboard
open override val tag: String

Tag for the marker entity.

Link copied to clipboard

The time at which the marker is reached.

Link copied to clipboard
open override var zIndex: Int

Z-index for rendering order.

Functions

Link copied to clipboard
fun passed()

Marks the indicator as passed and triggers the callback.

Link copied to clipboard
open override fun render(gfx: Graphics2D, canvasWidth: Int, canvasHeight: Int)

Renders the marker on the given graphics context.

Link copied to clipboard
fun reset()

Resets the marker indicator to its initial state.

Link copied to clipboard
open override fun setCanvasDimensions(canvasWidth: Double, canvasHeight: Double)

Sets the dimensions of the canvas.

Link copied to clipboard
open override fun switchScheme(scheme: ColorScheme)

Switches the color scheme of the marker.

Link copied to clipboard
open override fun update(deltaTime: Long)

Updates the MarkerIndicator entity.