protected override void GiveBirth() { Point place = GetFreePlace(X, Y); ContainingAquarium.ObjectCreatingIn(new HerbivoreFish(ContainingAquarium, place.x, place.y, (new Random()).Next(2) == 1, 0, 100), place.x, place.y); CurrentPregnancy = 0; return; }
protected void Expand() { AquariumObject[,] territory = ContainingAquarium.Territory; try { Point place = GetFreePlace(X, Y); ContainingAquarium.ObjectCreatingIn(new Seaweed(ContainingAquarium, place.x, place.y, 0), place.x, place.y); } catch { } finally { CurrentPeriodOfGrowth = 0; } }