moved observer attachment

This commit is contained in:
Maxmtg
2013-05-27 09:56:37 +00:00
parent 828cf74c15
commit e5a2685a57
2 changed files with 2 additions and 1 deletions

View File

@@ -384,7 +384,7 @@ public enum FControl {
// models shall notify controllers of changes
game.getGameLog().addObserver(CLog.SINGLETON_INSTANCE);
// some observers were set in CMatchUI.initMatch
// Listen to DuelOutcome event to show ViewWinLose

View File

@@ -49,6 +49,7 @@ public enum CLog implements ICDoc, Observer {
*/
public void setModel(GameLog gameLog) {
model = gameLog;
model.addObserver(this);
}
/* (non-Javadoc)