Class ClientPersonalGoalCard
java.lang.Object
it.polimi.ingsw.Client.ClientModel.ClientPersonalGoalCard
- All Implemented Interfaces:
PersonalGoalCardInterface
,Remote
Personal Goal Card (Client)
-
Field Summary
Fields inherited from interface it.polimi.ingsw.Common.PersonalGoalCardInterface
LIMIT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrdinal
(int x, int y) getter methodint
getType()
Getter method for Personal Goal Card
-
Field Details
-
type
@Expose private int type -
pattern
-
-
Constructor Details
-
ClientPersonalGoalCard
public ClientPersonalGoalCard()
-
-
Method Details
-
getType
Getter method for Personal Goal Card- Specified by:
getType
in interfacePersonalGoalCardInterface
- Returns:
- type of the card
- Throws:
RemoteException
- related to RMI
-
getOrdinal
getter method- Specified by:
getOrdinal
in interfacePersonalGoalCardInterface
- Parameters:
x
- coordinatey
- coordinate- Returns:
- ordinal of ObjectCardType or -1 if the card is empty
- Throws:
Exception
- if coordinates are invalid
-