Package it.polimi.ingsw.eriantys.model
Enum Class AssistantCard
- All Implemented Interfaces:
Serializable
,Comparable<AssistantCard>
,Constable
An enumeration which defines the assistant cards inside a
Player
's deck.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
movement()
The number graphically written in the top-right corner of the card.int
value()
The number graphically written in the top-left corner of the card.static AssistantCard
Returns the enum constant of this class with the specified name.static AssistantCard[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CHEETAH
-
OSTRICH
-
CAT
-
EAGLE
-
FOX
-
LIZARD
-
OCTOPUS
-
DOG
-
ELEPHANT
-
TURTLE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public int value()The number graphically written in the top-left corner of the card.- Returns:
- the value of the given
AssistantCard
object
-
movement
public int movement()The number graphically written in the top-right corner of the card.- Returns:
- the quantity of movements that Mother Nature may perform by playing the given
AssistantCard
object
-