public Cell(Ocean aOcean, Coordinate offset, char image = (char)CellsSymbols.DefaultImage) { _offset = offset; Image = image; _owner = aOcean; }
static void Main(string[] args) { FieldBorders field = new FieldBorders(Constants.MAX_ROWS + 2, Constants.MAX_COLS + 2, 0, 0); UI.PrintField(field); Ocean aOcean = new Ocean(new Coordinate(field.LeftTopAngle.X + 1, field.LeftTopAngle.Y + 1) /*,5, 15, 3, 3, 3*/); aOcean.Run(1000); Console.ReadKey(); }
public CellsNumerator(Ocean owner) { _owner = owner; _cellsX = -1; _cellsY = -1; }
public Obstacle(Ocean owner, Coordinate offset) : base(owner, offset, (char)CellsSymbols.ObstacleImage) { }