Example #1
0
 public Block(IBlockPosition bp)
 {
     Initialize(bp);
 }
Example #2
0
 public IBlockPosition Move(Direction direction)
 {
     tempposition = this.Position;
     return this.Position = GetNextPosition(direction);
 }
Example #3
0
 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;
 }