public interface BoardGameObserver<LOCATION>
Modifier and Type | Method and Description |
---|---|
void |
pieceMovedEvent(LOCATION from,
LOCATION to)
the update method for pieces moved from location 'from' to location 'to'.
|
void |
propChangeEvent(java.lang.String keyOfChangedProp)
the update method for props changed.
|
void pieceMovedEvent(LOCATION from, LOCATION to)
from
- the LOCATION that a piece has moved fromto
- the LOCATION that a piece has moved tovoid propChangeEvent(java.lang.String keyOfChangedProp)
keyOfChangedProp
- a string key identifying the game domain object that has changed.
This key must be identical to that assigned in the FigureFactory'sFrom the book: Flexible, Reliable Software, © CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark