PlaceTetrominoAction Class

Represents the action of placing a tetromino on a puzzle.

Definition

Namespace: ProjectLCore.GameActions
Assembly: ProjectLCore (in ProjectLCore.dll) Version: 1.0.0+d0f5e2a7a5f4bb0431970f279d2f79d24b15d256
C#
public class PlaceTetrominoAction : GameAction
Inheritance
Object    GameAction    PlaceTetrominoAction

Constructors

PlaceTetrominoAction Initializes a new instance of the PlaceTetrominoAction class.

Properties

Position The position on the puzzle where the player wants to place the tetromino.
PuzzleId The ID of the puzzle on which the player wants to place the tetromino.
Shape The shape of the tetromino the player wants to place.

Methods

Accept Accepts the specified visitor by calling the appropriate method.
(Inherited from GameAction)
AcceptAsync Asynchronously accepts the specified visitor by calling the appropriate method.
(Inherited from GameAction)
ToStringConverts to string. Specifies the shape, puzzle ID and position of the tetromino.
(Overrides ObjectToString)

See Also