Package it.polimi.ingsw.model.leadercard
Class StorageBehaviour
java.lang.Object
it.polimi.ingsw.model.leadercard.CardBehaviour
it.polimi.ingsw.model.leadercard.StorageBehaviour
public class StorageBehaviour extends CardBehaviour
The CardBehaviour that represents the producing behaviour: a leader card with this behaviour will add a new warehouse level
-
Constructor Summary
Constructors Constructor Description StorageBehaviour(ResourceType storageType) -
Method Summary
Modifier and Type Method Description voidcreateStorage(InterfacePlayerBoard playerboard)adds level to the warehouse of the specified playerBoard so that the leaderCard level becomes usable.ResourceTypegetResToStore()Methods inherited from class it.polimi.ingsw.model.leadercard.CardBehaviour
discount, getOnWhite, getProductionRequirement, getResourceToDiscount, produceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StorageBehaviour
-
-
Method Details
-
createStorage
Description copied from class:CardBehaviouradds level to the warehouse of the specified playerBoard so that the leaderCard level becomes usable. Does nothing if the card doesn't have this ability- Overrides:
createStoragein classCardBehaviour- Parameters:
playerboard- playerBoard in which to add the warehouse level- Throws:
MaxLeaderCardLevelsException- if more than the maximum allowed number of additional levels are added
-
getResToStore
- Overrides:
getResToStorein classCardBehaviour
-