Class OverheadMessageEvent

    • Constructor Detail

      • OverheadMessageEvent

        public OverheadMessageEvent​(PathingEntity source,
                                    String previous,
                                    String current)
        Constructs a prototypical Event.
        Parameters:
        source - The object on which the Event initially occurred.
        Throws:
        IllegalArgumentException - if source is null.
    • Method Detail

      • getPrevious

        public String getPrevious()
        Returns:
        The previous overhead message, or null if none was active at the time
      • getCurrent

        public String getCurrent()
        Returns:
        The current overhead message, or null if this event is when an overhead message expires