public Aquarium() { FishList = new Fish[0]; AlgaList = new Alga[0]; AttackHerb = null; AttackCarn = null; ReproduceFish = null; ReproduceAlga = null; Report = new List <string>(); }
public void AddAlga(int newAge, int newPV) //Add algas to the aquarium { Alga newAlga = new Alga(newAge, newPV); AddToArray(newAlga); }
protected void Eat(Alga victim) // eat the alga { victim.GetDamage(2); // inflicts damage to victim this.GetHeal(3); // gets PV from eating ReportToAqua(this.name + " ate alga"); }