Class WinDisplay

java.lang.Object
com.mg105.interface_adapters.WinDisplay
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class WinDisplay extends Object implements PropertyChangeListener
Decides when to show game win screen
  • Constructor Details

    • WinDisplay

      public WinDisplay(Toggler toggler, RoomGetterInterface roomGetter, ReplayGenerator replayGenerator)
      Construction for the WinDisplay interface adapter
      Parameters:
      toggler - toggles the win screen
      roomGetter - gets the current room of the player
      replayGenerator - generates a replay
  • Method Details

    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      This method gets called when a bound property is changed.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      evt - A PropertyChangeEvent object describing the event source and the property that has changed.