public InvadersViewModel() { Scale = 1; _model.ShipChanged += ModelShipChangedEventHandler; _model.ShotMoved += ModelShotMovedEventHandler; _model.StarChanged += ModelStarChangedEventHandler; _timer.Interval = TimeSpan.FromMilliseconds(66); _timer.Tick += TimerTickEventHandler; _model.EndGame(); }
public InvadersViewModel() { _model = new InvadersModel(); Scale = 1; PopulateSprites(); _timer.Interval = TimeSpan.FromMilliseconds(100); _timer.Tick += timer_Tick; _timer.Start(); _model.StarChanged += StarChangedHandler; _model.ShipChanged += ShipChangedHandler; _model.ShotMoved += ShotMovedHandler; _model.EndGame(); }
private void EndGame() { _model.EndGame(); }
public void EndGame() { _model.EndGame(); }