Package com.mg105.interface_adapters
Class WinDisplay
java.lang.Object
com.mg105.interface_adapters.WinDisplay
- All Implemented Interfaces:
PropertyChangeListener
,EventListener
Decides when to show game win screen
-
Constructor Summary
ConstructorDescriptionWinDisplay
(Toggler toggler, RoomGetterInterface roomGetter, ReplayGenerator replayGenerator) Construction for the WinDisplay interface adapter -
Method Summary
Modifier and TypeMethodDescriptionvoid
This method gets called when a bound property is changed.
-
Constructor Details
-
WinDisplay
Construction for the WinDisplay interface adapter- Parameters:
toggler
- toggles the win screenroomGetter
- gets the current room of the playerreplayGenerator
- generates a replay
-
-
Method Details
-
propertyChange
This method gets called when a bound property is changed.- Specified by:
propertyChange
in interfacePropertyChangeListener
- Parameters:
evt
- A PropertyChangeEvent object describing the event source and the property that has changed.
-