Example #1
0
    public void CreateSimulatedGridOriginal()
    {
        _simulatedGridOriginal = new SimulatedBlock[_setting.GridWidth, _setting.GridHeight];

        for (int y = 0; y < _setting.GridHeight; y++)
        {
            for (int x = 0; x < _setting.GridWidth; x++)
            {
                if (_grid[x, y] != null)
                {
                    _simulatedGridOriginal[x, y] = new SimulatedBlock(_grid[x, y]);
                }
            }
        }

        _simulatedGrid = new SimulatedBlock[_setting.GridWidth, _setting.GridHeight];

        CopyOriginalToSimulatedGrid();

        if (_grid.CurrentGroup == null)
        {
            return;
        }
        _simulatedGroup = new SimulatedGroup();
        _simulatedGroup.Simulate(_grid.CurrentGroup);
    }
Example #2
0
 public void CreateSimulatedGroup()
 {
     simulatedGroup = new SimulatedGroup();
     group.SetLocation(setting.BlockSpawnPoint);
 }