diff --git a/src/main/java/solitaer/GeberStack.java b/src/main/java/solitaer/GeberStack.java index 2696e62..b3c6e58 100644 --- a/src/main/java/solitaer/GeberStack.java +++ b/src/main/java/solitaer/GeberStack.java @@ -3,13 +3,17 @@ package solitaer; public class GeberStack extends BaseStack { private static final long serialVersionUID = 1L; + + private WasteStack wasteStack; - public GeberStack(int _x, int _y) { + public GeberStack(int _x, int _y, WasteStack _waste) { super(false); super.setLocation(_x, _y); super.setSize(IMAGE_WIDTH, STACK_HIGHT); super.setOpaque(false); super.setLayout(null); + + this.wasteStack = _waste; } @Override diff --git a/src/main/java/solitaer/WasteStack.java b/src/main/java/solitaer/WasteStack.java new file mode 100644 index 0000000..554a936 --- /dev/null +++ b/src/main/java/solitaer/WasteStack.java @@ -0,0 +1,21 @@ +package solitaer; + +public class WasteStack extends BaseStack { + + private static final long serialVersionUID = 1L; + + public WasteStack(int _x, int _y) { + super(false); + super.setLocation(_x, _y); + super.setSize(IMAGE_WIDTH, STACK_HIGHT); + super.setOpaque(false); + super.setLayout(null); + } + + @Override + protected boolean cardCheck(Card _topStack, Card _playerCard) { + // TODO Auto-generated method stub + return false; + } + +}