public Speciman TakeSpecimanAt(Point2D PT) { Speciman Search = null; foreach (Speciman S in _Specimans) { if (S.Location.Equals(PT)) { Search = S; } } if (Search != null) { _Specimans.Remove(Search); } return(Search); }
public void DrillDown() { if (_wear > 100) { Random rnd = new Random(); if (rnd.Next(1, 5) == 1) { return; } } Speciman search = PGC.TakeSpecimanAt(GameMain.newPoint2D(Prover.Location.X, Prover.Location.Y)); if (search != null) { Prover.AddSpeciman(search); _wear += 5; } else { _wear += 10; } }
public void AddSpeciman(Speciman spec) { _specimans.Add(spec); spec.UtterlyFound(); }