/// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="number">number of the square</param>
 /// <param name="name">name of the square</param>
 public BadInvestmentSquare(Board board, int number, string name)
     : base(board, number, name)
 {
     // nothing extra to be done here
 }
Exemple #2
0
 /// <summary>
 /// Constructor with initialisation parameters.
 /// </summary>
 /// <param name="name">name for this square</param>
 /// <param name="number">number for this square</param>
 public Square(Board board, int number, string name)
 {
     this.board = board;
     this.number = number;
     this.name = name;
 }
 /// <summary>
 /// Parameterless Constructor.
 /// Initialise the board, and the two dice.
 /// Pre:  none
 /// Post: the board and the objects it conatins are initialised.
 /// </summary>
 public HareAndTortoiseGame(Board gameBoard)
 {
     this.board = gameBoard;
     die1 = new Die();
     die2 = new Die();
 }
 /// <summary>
 /// Parameterless Constructor.
 /// Initialise the board, and the two dice.
 /// Pre:  none
 /// Post: the board and the objects it conatins are initialised.
 /// </summary>
 public HareAndTortoiseGame()
 {
     board = new Board();
     die1 = new Die();
     die2 = new Die();
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="number">number of the square</param>
 /// <param name="name">name of the square</param>
 public LotteryWinSquare(Board board, int number, string name)
     : base(board, number, name)
 {
     // nothing extra to be done here
 }