Class EntityDestination

    • Constructor Detail

      • EntityDestination

        public EntityDestination​(Entity destination)
    • Method Detail

      • isVisible

        public boolean isVisible()
        Determines whether this destination is visible.
        Specified by:
        isVisible in class AbstractMouseDestination<Entity>
        Returns:
        Whether this destination is visible.
      • handleWalk

        public boolean handleWalk()
        Handles walking portion of event interactions. This is used internally by interact() Default implementation is to just return true, required to override this in any implementations.
        Overrides:
        handleWalk in class AbstractMouseDestination<Entity>
        Returns:
        True if the event succeeded or is not needed in the destination implementation.
      • handleCamera

        public boolean handleCamera()
        Handles camera portion of event interaction. This is used internally by interact().
        Overrides:
        handleCamera in class AbstractMouseDestination<Entity>
        Returns:
        True if the event succeeded.
      • handleCamera

        public boolean handleCamera​(boolean withZoom,
                                    Condition interrupt)
        Handles camera portion of event interaction. This is used internally by interact().
        Overrides:
        handleCamera in class AbstractMouseDestination<Entity>
        Returns:
        True if the event succeeded.
      • contains

        public boolean contains​(java.awt.Point point)
        Description copied from class: AbstractMouseDestination
        Determines if point is contained inside of destination shape.
        Overrides:
        contains in class AbstractMouseDestination<Entity>
        Parameters:
        point - the point which to check.
        Returns:
        true if point is contained inside of shape, otherwise false.