Puzzle Constructor

Initializes a new instance of the Puzzle class.

Definition

Namespace: ProjectLCore.GamePieces
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public Puzzle(
	BinaryImage image,
	int rewardScore,
	TetrominoShape rewardTetromino,
	bool isBlack,
	uint puzzleNumber
)

Parameters

image  BinaryImage
The binary image representing the puzzle.
rewardScore  Int32
The score the player will receive for completing the puzzle.
rewardTetromino  TetrominoShape
The tetromino the player will receive for completing the puzzle.
isBlack  Boolean
Indicates whether the puzzle is black or white
puzzleNumber  UInt32
The order number of this puzzle. The file containing the graphics for this puzzle should have the name color-number.png where color is black or white and number is puzzleNumber.

See Also