Exemplo n.º 1
0
 public Cell(Ocean aOcean, Coordinate offset,
             char image = (char)CellsSymbols.DefaultImage)
 {
     _offset = offset;
     Image   = image;
     _owner  = aOcean;
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public CellsNumerator(Ocean owner)
 {
     _owner  = owner;
     _cellsX = -1;
     _cellsY = -1;
 }
Exemplo n.º 4
0
 public Obstacle(Ocean owner, Coordinate offset)
     : base(owner, offset, (char)CellsSymbols.ObstacleImage)
 {
 }