Пример #1
0
 public Tetrimino_T(ITetrisBoard board)
     : base(board, CellColor.Magenta)
 {
     this.anchorPoint = new CellPoint()
     {
         X = 5, Y = 1
     };
 }
Пример #2
0
 public Tetrimino_S(ITetrisBoard board)
     : base(board, CellColor.Green)
 {
     this.anchorPoint = new CellPoint()
     {
         X = 5, Y = 1
     };
 }
Пример #3
0
 public Tetrimino_I(ITetrisBoard board)
     : base(board, CellColor.Cyan)
 {
     this.anchorPoint = new CellPoint()
     {
         X = 5, Y = 2
     };
 }
Пример #4
0
 // c'tor
 public Tetrimino(ITetrisBoard board, CellColor color)
 {
     this.board    = board;
     this.color    = color;
     this.rotation = RotationAngle.Degrees_0;
 }