private void ap_HitPoint(Punkt p) { if (p.GetType().ToString().Contains("SpecialPunkt")) { punkteanz += 100; } punkteanz+=10; }
private void FillList() { bool zähler = false; for (int x = 18; x <= 660; x += 40) { if ((x + 22) % 40 == 0) { zähler = true; } else { zähler = false; } for (int y = 18; y <= 380; y += 40) { if (zähler == true || (y + 22) % 40 == 0) { Punkt p = new Punkt(x, y); points.Add(p); } } } points[27] = new SpecialPunkt(points[27].X, points[27].Y); points[55] = new SpecialPunkt(points[55].X, points[55].Y); points.RemoveAt(0); }