public static bool AddCell(int x, int y, Cell c) { if (grid[x, y] != 0) return false; int id = GetID(); cells.Add(id, c); grid[x, y] = id; return true; }
public override bool IsMate(Cell c) { return c is HerbivoreCell; }
public override bool IsFood(Cell c) { return c is PlantCell; }
public override bool IsMate(Cell c) { return c is CarnivoreCell; }
public override bool IsFood(Cell c) { return c is HerbivoreCell; }
public void Push(Cell c) { data[beg++] = c; }
public abstract bool IsMate(Cell c);
public abstract bool IsFood(Cell c);