Package it.polimi.ingsw.Controller
Class PlayCharacterCardTest
java.lang.Object
it.polimi.ingsw.Controller.PlayCharacterCardTest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
checkUse()
void
private Controller
Support method used to create a Controller and execute SETUP-PHASEprivate Model
initializeModel
(int coinReserve, int coinPerPlayer, int card) Support method to create a model by using its constructor for debug purposesvoid
void
void
-
Constructor Details
-
PlayCharacterCardTest
public PlayCharacterCardTest()
-
-
Method Details
-
checkUse
- Throws:
Exception
-
initializeModel
Support method to create a model by using its constructor for debug purposes- Parameters:
coinReserve
- coins availablecoinPerPlayer
- amount of coins that every player will havecard
- card that will be available in game- Returns:
- custom model
-
initializeControllerAndPlayAssistantCard
private Controller initializeControllerAndPlayAssistantCard(Model model) throws InputValidationException Support method used to create a Controller and execute SETUP-PHASE- Parameters:
model
- model that will be handled by GameHandler- Returns:
- Controller necessary to execute actions inside tests
- Throws:
InputValidationException
- error related to playAssistantCard actions
-
CharacterCardIndexOutOfBound
- Throws:
Exception
-
duplicateCharacterCardAction
- Throws:
Exception
-
simpleModePlayAttempt
- Throws:
Exception
-
noAssistantCardPlayed
- Throws:
Exception
-
InsufficientBalanceException
- Throws:
Exception
-