Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: WaypointMoveComponent

[15:7] extends: Component

Wraps FXGL's WaypointMoveComponent (com.almasb.fxgl.dsl.components.WaypointMoveComponent), which walks the entity through a sequence of Point2D waypoints at a fixed speed.

Methods

  • WaypointMoveComponent (double Speed = 100.0)

    Creates a new WaypointMoveComponent with no waypoints. Call move() to set the path.

    • @p Speed is the move speed in pixels per second.
  • adopt (object Ajo)

    Wraps an existing WaypointMoveComponent AussomJavaObject.

  • getSpeed ()

  • setSpeed (double V)

  • move (list Coords)

    Replaces the waypoint list with the given coordinates. Coordinates are interleaved (x0, y0, x1, y1, ...).

    • @p Coords is a list of doubles in interleaved x,y pairs.
    • @r this object
  • atDestinationProperty ()

    Returns the ReadOnlyBooleanProperty for at-destination signal.