merge the new developmentbranch into the test branch #39

Closed
j23f0712 wants to merge 431 commits from development2 into dev/test
171 changed files with 3570 additions and 1723 deletions
Showing only changes of commit 6894802c00 - Show all commits

View File

@@ -0,0 +1,27 @@
package pp.mdga.game.card;
import pp.mdga.game.BonusCard;
import pp.mdga.visitor.Visitor;
/**
* This class represents the hidden power card of this application.
*/
public class HiddenCard extends PowerCard {
/**
* Constructor.
*/
public HiddenCard() {
this.card = BonusCard.HIDDEN;
}
/**
* This method will be used to call the visit method of the given visitor parameter and pass a PowerCard object.
*
* @param visitor as the visitor which will differentiates between all types of power card types as a Visitor
* interface.
*/
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
}

View File

@@ -0,0 +1,26 @@
package pp.mdga.game.card;
import pp.mdga.game.BonusCard;
import pp.mdga.visitor.Visitor;
/**
* This class represents the shield power card of this application.
*/
public class ShieldCard extends PowerCard {
/**
* Constructor.
*/
public ShieldCard() {
this.card = BonusCard.SHIELD;
}
/**
* This method will be used to call the visit method of the given visitor parameter and pass a PowerCard object.
*
* @param visitor as the visitor which will differentiates between all types of power card types as a Visitor
* interface.
*/
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
}

View File

@@ -0,0 +1,27 @@
package pp.mdga.game.card;
import pp.mdga.game.BonusCard;
import pp.mdga.visitor.Visitor;
/**
* This class represents the swap power card of this application.
*/
public class SwapCard extends PowerCard {
/**
* Constructor.
*/
public SwapCard() {
this.card = BonusCard.SWAP;
}
/**
* This method will be used to call the visit method of the given visitor parameter and pass a PowerCard object.
*
* @param visitor as the visitor which will differentiates between all types of power card types as a Visitor
* interface.
*/
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
}

View File

@@ -0,0 +1,27 @@
package pp.mdga.game.card;
import pp.mdga.game.BonusCard;
import pp.mdga.visitor.Visitor;
/**
* This class represents the turbo power card of this application.
*/
public class TurboCard extends PowerCard {
/**
* Constructor.
*/
public TurboCard() {
this.card = BonusCard.TURBO;
}
/**
* This method will be used to call the visit method of the given visitor parameter and pass a PowerCard object.
*
* @param visitor as the visitor which will differentiates between all types of power card types as a Visitor
* interface.
*/
@Override
public void accept(Visitor visitor) {
visitor.visit(this);
}
}