public bool RemoveF(CGameObject gb) { if (Field[gb.iX][gb.iY].Contains(gb)) { Field[gb.iX][gb.iY].Remove(gb); return(true); } return(false); }
void Scale(List <CGameObject> list) { for (int f = 0; f < list.Count; f++) { CGameObject GB = list[f]; if (GB.Type != "Wall" && GB.Fase != null) { double v = GamePlay.Scale.Scale / GB.Fase.Width; GB.Fase.Width = GB.Fase.Height = GamePlay.Scale.Scale; GB.X = Convert.ToInt32(GB.X * v); GB.Y = Convert.ToInt32(GB.Y * v); Canvas.SetLeft(GB.Fase, GB.X); Canvas.SetTop(GB.Fase, GB.Y); } } }
public void AddF(CGameObject gb) { Field[gb.iX][gb.iY].Add(gb); }