Демонстрируемый код на практических занятиях
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace ClassLib000.Walker
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Пылесос
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class VacuumCleaner
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// координаты
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int X;
|
|
|
|
|
public int Y;
|
|
|
|
|
public ECleanType Mode;
|
|
|
|
|
|
|
|
|
|
internal bool CanGo(CleanSpace cleanSpaceFrom, CleanSpace cleanSpaceTo)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal object GetContent()
|
|
|
|
|
{
|
|
|
|
|
return $"{X};{Y};{(int)Mode}";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|