Beispiel #1
0
 public HearthstoneEventObserver(IHearthstoneFactory factory)
 {
     this.factory = factory;
     currentState = new HearthInternalStateOff(this);
     fileObserver = new FileObserver("C:\\Program Files (x86)\\Hearthstone\\Logs\\Power.log", true);
     new Timer(TimeSpan.FromSeconds(10), DelayedObserving).Start();
 }
 public HearthInternalStateGameInProgress(HearthstoneEventObserver eventObserver) : base(eventObserver)
 {
     this.factory = eventObserver.factory;
     eventObserver.Observe(new NewGame(eventObserver.currentGame));
 }
 public HearthInternalStateGameInProgress(HearthstoneEventObserver eventObserver)
     : base(eventObserver)
 {
     this.factory = eventObserver.factory;
     eventObserver.Observe(new NewGame(eventObserver.currentGame));
 }