Files
Gruppe-01-fin/Projekte/mdga/model/src/main/java/pp.mdga/game/Card.java
2024-11-12 17:26:10 +01:00

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;
}
}