35 lines
674 B
Java
35 lines
674 B
Java
package pp.mdga.game;
|
|
/**
|
|
* This class is used to create a card
|
|
*/
|
|
public class Card {
|
|
private BonusCard type;
|
|
|
|
/**
|
|
* This constructor is used to create a new card
|
|
*
|
|
* @param type the type of the card
|
|
*/
|
|
public Card(BonusCard type) {
|
|
this.type = type;
|
|
}
|
|
|
|
/**
|
|
* This method is used to get the type of the card
|
|
*
|
|
* @return the type of the card
|
|
*/
|
|
public BonusCard getType() {
|
|
return type;
|
|
}
|
|
|
|
/**
|
|
* This method is used to set the type of the card
|
|
*
|
|
* @param type the new type of the card
|
|
*/
|
|
public void setType(BonusCard type) {
|
|
this.type = type;
|
|
}
|
|
}
|