TurnIndicatorEntity

class TurnIndicatorEntity(val meepMeep: MeepMeep, colorScheme: ColorScheme, pos: Vector2d, startAngle: Double, endAngle: Double) : ThemedEntity

Constructors

Link copied to clipboard
constructor(meepMeep: MeepMeep, colorScheme: ColorScheme, pos: Vector2d, startAngle: Double, endAngle: Double)

Properties

Link copied to clipboard
open override val meepMeep: MeepMeep

The MeepMeep instance associated with the entity.

Link copied to clipboard
open override val tag: String

The tag for the turn indicator entity.

Link copied to clipboard
open override var zIndex: Int

The z-index of the turn indicator entity.

Functions

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

Renders the turn indicator on the given graphics context.

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 turn indicator.

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

Updates the turn indicator entity.