/// <summary> /// Tries to poo. /// </summary> /// <returns> /// The resulting poo, if successful. <c>null</c> otherwise. /// </returns> /// <param name='rand'> /// Random number generator to be used. /// </param> /// <remarks> /// This highly complex process may file if there is no free /// tile beside the animal. If successful, the poo is placed on /// a random neighbouring tile. /// </remarks> public PooEntity TryPoo() { Tile pooTile = Tile.FindRandomEmptyNeighbour(); if (null != pooTile) { var poo = new PooEntity(); poo.Tile = pooTile; return(poo); } return(null); }
public void RemovePoo(PooEntity poo) { _pooList.Remove(poo); }
public void AddPoo(PooEntity poo) { _pooList.Add(poo); }