TakePuzzleAction Class

Represents the action of taking a puzzle. Players can take puzzles from the top of the white deck, top of the black deck or a specific puzzle in one of the rows.

Definition

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

Constructors

TakePuzzleAction Initializes a new instance of the TakePuzzleAction class.

Properties

Option From where the player wants to take the puzzle.
PuzzleId The ID of the specific puzzle to take, if Option is Normal. Should be null otherwise.

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)
ToString Converts to string. States the action the player wants to take. E.g. "Take top white puzzle".
(Overrides ObjectToString)

See Also