float AnalizeDescriptor(IUniverse universe, int x, int y) { int desc = universe.GetObjectDescriptor(x, y); if (desc == 0)//empty { return(0); } else if (desc == descriptor)//friend { return(genome.GetFriendly()); } else if (desc < 0)//food { return(genome.GetHunger()); } else//enemy { if (GetAge() >= ConstsUniverse.CellAge_AdultCell) { return(genome.GetAggression()); } else { return(ConstsUniverse.CellGenome_Child_Aggression); } } }