public Block(IBlockPosition bp) { Initialize(bp); }
public IBlockPosition Move(Direction direction) { tempposition = this.Position; return this.Position = GetNextPosition(direction); }
private void Initialize(IBlockPosition bp) { this.Control = new Label(); this.Control.Height = Height; this.Control.Width = Width; this.Control.BackColor = Color.Black; this.Position = bp; //this.Control.Text = (Id++).ToString(); //this.Control.ForeColor = Color.Red; }