Package it.polimi.ingsw.model
Interface EndGameObservable
- All Known Implementing Classes:
CardSlots,DevelopCardDeck,LorenzoTrack,Track
public interface EndGameObservable
It's used together with
EndGameObserver to notify of the end of the game-
Method Summary
Modifier and Type Method Description voidaddToEndGameObserverList(EndGameObserver observerToAdd)add an observer to a list of observersvoidnotifyForEndGame(boolean onySinglePlayer)notify the endgame observers that the game is in the endgame statevoidremoveFromEndGameObserverList(EndGameObserver observerToRemove)remove an observer from a list of observers
-
Method Details
-
addToEndGameObserverList
add an observer to a list of observers- Parameters:
observerToAdd- the observer to add
-
removeFromEndGameObserverList
remove an observer from a list of observers- Parameters:
observerToRemove- the observer to remove
-
notifyForEndGame
void notifyForEndGame(boolean onySinglePlayer)notify the endgame observers that the game is in the endgame state- Parameters:
onySinglePlayer- true the game must end only if it is in single player
-