Class CardSlotUpdate
java.lang.Object
it.polimi.ingsw.model.updatecontainers.CardSlotUpdate
- All Implemented Interfaces:
ModelUpdate
public class CardSlotUpdate extends java.lang.Object implements ModelUpdate
A model update represents an update happened in a
card slot.
Model updates contain information to notify clients or views of an update happened on the model-
Constructor Summary
Constructors Constructor Description CardSlotUpdate(int devCardID, int slotNumber) -
Method Summary
Modifier and Type Method Description intgetDevCardID()returns ID of the card to be placed in the slotintgetSlotNumber()returns the slot number in which to put the cardMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CardSlotUpdate
public CardSlotUpdate(int devCardID, int slotNumber)
-
-
Method Details
-
getDevCardID
public int getDevCardID()returns ID of the card to be placed in the slot- Returns:
- ID of the card to be placed in the slot
-
getSlotNumber
public int getSlotNumber()returns the slot number in which to put the card- Returns:
- the slot number in which to put the card
-