public void Remove(Slime slime) { slimeList.Remove(slime); }
public void Add(Slime slime) { slimeList.Add(slime); }
private void checkSightCollision(Vijand vijand) { if (vijand != null) { if (vijand.sight.IntersectsWith(hero.colRectangle)) { //SHOOT if (shootTimer == 40) { shootTimer = 0; if (vijand.direction == "right") slimePoint = new Point(vijand.position.X + 50, vijand.position.Y + 10); if (vijand.direction == "left") slimePoint = new Point(vijand.position.X, vijand.position.Y + 10); Slime slime = new Slime(mVideo, slimePoint, slimes, vijand.direction); } else { shootTimer++; } } } }