ProjectLCore.GameActions.Verification Namespace

 

Classes

ActionVerifier Verifies the validity of actions made by a player in the context of the current game state.
BasicTetrominoNotInSharedReserveFail The player tried to take a basic tetromino but there are none left in the shared reserve. This failure can be produced by the TakeBasicTetrominoAction. ///
CannotPlaceTetrominoFail The player tried to place a tetromino into a puzzle, but the tetromino cannot be placed there. This failure can be produced by the PlaceTetrominoAction or MasterAction.
EmptyRowRecycleFail The player tried to recycle an empty row. This failure can be produced by the RecycleAction.
InvalidActionDuringFinishingTouchesFail The player used an invalid action when CurrentGamePhase was FinishingTouches. The only allowed actions are PlaceTetrominoAction and EndFinishingTouchesAction.
InvalidEndFinishingTouchesActionUseFail The player used the EndFinishingTouchesAction during a different phase than FinishingTouches.
InvalidTetrominoConfigurationFail The player tried to place a tetromino, but the given configuration doesn't match its shape. This failure can be produced by the PlaceTetrominoAction or MasterAction.
InvalidTetrominoChangeFail The player tried to change an old tetromino for a new one, but this trade is not possible. This includes the scenario when the new tetromino is the same as the old one. This failure can be produced by the ChangeTetrominoAction.
MasterActionAlreadyUsedFail The player has already used the MasterAction in this turn.
MasterActionNotEnoughTetrominosFail The player doesn't have enough tetrominos needed by a MasterAction.
MasterActionUniquePlacementFail The player tried to place two tetrominos into the same puzzle using the MasterAction.
NumberOfRecycledPuzzlesMismatchFail The player tried to recycle a puzzle row, but the number of puzzles to recycle doesn't match the number of puzzles in the row. This failure can be produced by the RecycleAction.
PlayerAlreadyHasMaxPuzzlesFail Initializes a new instance of the PlayerAlreadyHasMaxPuzzlesFail class.
PlayerAlreadyTookBlackPuzzleInEndOfTheGameFail The player tried to take a second black puzzle in the same turn during EndOfTheGame. This failure can be produced by the TakePuzzleAction.
PlayerDoesntHavePuzzleFail The player tried to place a tetromino into the puzzle with ID Id, but the player doesn't have a puzzle with this ID. This failure can be produced by the PlaceTetrominoAction or MasterAction.
PuzzleDeckIsEmptyFail The player specified TopBlack or TopWhite but the corresponding deck is empty. This failure can be produced by the TakePuzzleAction.
PuzzleIdIsNullFail The player specified Normal but PuzzleId was . This failure can be produced by the TakePuzzleAction.
PuzzleNotAvailableFail The player tried to take the puzzle with ID Id, but no available puzzle has this ID. This failure can be produced by the TakePuzzleAction.
PuzzleNotInRowFail The player tried to recycle a puzzle row, but no puzzle in the row has the Id specified in the Order. This failure can be produced by the RecycleAction.
TetrominoNotInPersonalSupplyFail The player tried to use a tetromino but doesn't have any of this shape in their personal supply. This failure can be produced by the ChangeTetrominoAction, PlaceTetrominoAction or MasterAction.
VerificationFailure Represents a failed verification of a GameAction by a ActionVerifier. Derived classes should provide a description of the failure in the Message property.
VerificationResult Represents the result of a verification of a GameAction by a ActionVerifier.
VerificationSuccess Represents a successful verification of a GameAction by a ActionVerifier.