public Food(int FieldHeight, int FieldWidth) { maxX = FieldWidth; maxY = FieldHeight; fieldSize = maxX * maxY; rand = new Random(); pos = new Element(); }
static void PrintFood(Element pos) { Console.SetCursorPosition(pos.X, pos.Y); Console.Write(Conf.FoodSymbol); }