public Game1() { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; grid = new Grid(this, 4, 10); aimPosition = new Vector3(5.0f * Grid.baseSize, 0.0f, 5.0f * Grid.baseSize); }
protected Grid grid; //Parent grid,which has to contain: public int width, height; public Block[] blocks; #endregion Fields #region Constructors public Block(Grid grid) { this.grid = grid; }
public StraightBlock(Grid grid) : base(grid) { //Nothing to do here lol. }
public TriBlock(Grid grid) : base(grid) { //... }
public SquigglyBlock(Grid grid) : base(grid) { //... }
public SquareBlock(Grid grid) : base(grid) { //... }
public LBlock(Grid grid) : base(grid) { //... }