Class LineOfSight.TargetVisibilityChangedEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    LineOfSight

    public static final class LineOfSight.TargetVisibilityChangedEvent
    extends java.util.EventObject
    An event indicating that the target visibility has changed.
    Since:
    100.2.0
    See Also:
    Serialized Form
    • Constructor Detail

      • TargetVisibilityChangedEvent

        public TargetVisibilityChangedEvent​(LineOfSight source,
                                            LineOfSight.TargetVisibility targetVisibility)
        Constructs a TargetVisibilityChangedEvent object.
        Parameters:
        source - the LineOfSight object on which the event initially occurred
        targetVisibility - the target visibility
        Throws:
        java.lang.IllegalArgumentException - if source is null
        Since:
        100.2.0
    • Method Detail

      • getTargetVisibility

        public LineOfSight.TargetVisibility getTargetVisibility()
        Gets the target visibility.
        Returns:
        the target visibility
        Since:
        100.2.0
      • getSource

        public LineOfSight getSource()
        Overrides:
        getSource in class java.util.EventObject