Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 internal bool IsObstructed(GameInstance.CollisionType obst)
 {
     return this.obstructions.Contains(obst);
 }
Esempio n. 3
0
 public void AddObstruction(GameInstance.CollisionType obst)
 {
     if (!this.obstructions.Contains(obst)) {
         this.obstructions.Add(obst);
     }
 }