public MainWindow() { Instance = GameInstance.Inst; Instance.PropertyChanged += instance_PropertyChanged; InitializeComponent(); this.Instance.SpritesChanged += AllSprites_CollectionChanged; cp = new ControlPanel(); cp.Show(); Instance.Reset(); Instance.TimeStarted += Instance_TimeStarted; cp.NewGameLoaded += cp_NewGameLoaded; openLastGame(); }
internal bool IsObstructed(GameInstance.CollisionType obst) { return this.obstructions.Contains(obst); }
public void AddObstruction(GameInstance.CollisionType obst) { if (!this.obstructions.Contains(obst)) { this.obstructions.Add(obst); } }