public class ProgrammingCard extends java.lang.Object implements java.lang.Comparable<ProgrammingCard>
Constructor and Description |
---|
ProgrammingCard()
Empty constructor required by KryoNet.
|
ProgrammingCard(int cardPriority,
Action cardAction)
Initializes the priority and the action of the card
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ProgrammingCard programmingCard) |
boolean |
equals(java.lang.Object other) |
Action |
getAction()
Gets the action of the programming card
|
int |
getPriority()
Gets the priority of the programming card
|
java.lang.String |
toString() |
public ProgrammingCard(int cardPriority, Action cardAction)
cardPriority
- the priority of the cardcardAction
- the action of the cardpublic ProgrammingCard()
public int getPriority()
public Action getAction()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int compareTo(ProgrammingCard programmingCard)
compareTo
in interface java.lang.Comparable<ProgrammingCard>