Example #1
0
 public Ship(int x, int y, GameBoard.BoardType boardType, bool state)
 {
     this.x = x;
     this.y = y;
     this.boardType = boardType;
     this.SIZE = boardType == GameBoard.BoardType.MAIN_BOARD ? 30 : 13;
     this.State = state ? ShipState.SHIP : ShipState.NOT_SHIP;
     Width = SIZE;
     Height = SIZE;
     BackColor = System.Drawing.Color.Transparent;
 }
Example #2
0
 public Ship(int x, int y, GameBoard.BoardType boardType, bool state)
 {
     this.x         = x;
     this.y         = y;
     this.boardType = boardType;
     this.SIZE      = boardType == GameBoard.BoardType.MAIN_BOARD ? 30 : 13;
     this.State     = state ? ShipState.SHIP : ShipState.NOT_SHIP;
     Width          = SIZE;
     Height         = SIZE;
     BackColor      = System.Drawing.Color.Transparent;
 }