Compass Entity
class CompassEntity(val meepMeep: MeepMeep, colorScheme: ColorScheme, width: Double, height: Double, pos: Vector2d) : ThemedEntity, MouseMotionListener
Represents a compass entity in the MeepMeep simulation.
Constructors
Link copied to clipboard
constructor(meepMeep: MeepMeep, colorScheme: ColorScheme, width: Double, height: Double, pos: Vector2d)
Properties
Functions
Link copied to clipboard
Unused mouse dragged event handler.
Link copied to clipboard
Handles mouse moved events to animate the compass opacity.
Link copied to clipboard
Renders the compass on the given graphics context.
Link copied to clipboard
Sets the dimensions of the canvas.
Link copied to clipboard
Switches the image used by the compass entity. This function is to be used through MeepMeep.setCompassImage, not directly.
Link copied to clipboard
Switches the color scheme of the compass.