ChangeTetrominoAction Class

Represents the action of changing a tetromino for a different one.

Definition

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

Constructors

ChangeTetrominoAction Initializes a new instance of the ChangeTetrominoAction class.

Properties

NewTetromino The tetromino the player is taking from the shared reserve.
OldTetromino The tetromino the player is returning to the shared reserve.

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 old and new tetrominos.
(Overrides ObjectToString)

See Also