public GamePresenter(IWantToBeNotifiedOfGameTimeElapsedEvents view) { _view = view; _gameLoop.Register(_world); _gameLoop.Register(_view); _goodGuy = new GoodGuy(_world); CreateDummyLevel(_world, _goodGuy); _gameLoop.Register(_goodGuy); _gameLoop.Start(); }
public void Register(IWantToBeNotifiedOfGameTimeElapsedEvents registree) { _listeners.Add(registree); }