BotEntity

open class BotEntity(val meepMeep: MeepMeep, width: Double, height: Double, var pose: Pose2d, colorScheme: ColorScheme, opacity: Double) : ThemedEntity

Represents a bot entity in the MeepMeep simulation.

Inheritors

Constructors

Link copied to clipboard
constructor(meepMeep: MeepMeep, width: Double, height: Double, pose: Pose2d, colorScheme: ColorScheme, opacity: Double)

Properties

Link copied to clipboard
open override val meepMeep: MeepMeep

The MeepMeep instance.

Link copied to clipboard
var pose: Pose2d

The pose of the bot.

Link copied to clipboard
open override val tag: String

Tag for the bot entity.

Link copied to clipboard
open override var zIndex: Int

Z-index for rendering order.

Functions

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

Renders the bot 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
fun setDimensions(width: Double, height: Double): BotEntity

Sets the dimensions of the bot.

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

Switches the color scheme of the bot.

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

Updates the bot entity.