Browse Source

Add WasteStack

feature_solitaer_Geber-_WasteStack
Alexander Hartung 3 years ago
parent
commit
e5832eac49
  1. 6
      src/main/java/solitaer/GeberStack.java
  2. 21
      src/main/java/solitaer/WasteStack.java

6
src/main/java/solitaer/GeberStack.java

@ -4,12 +4,16 @@ public class GeberStack extends BaseStack {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public GeberStack(int _x, int _y) {
private WasteStack wasteStack;
public GeberStack(int _x, int _y, WasteStack _waste) {
super(false); super(false);
super.setLocation(_x, _y); super.setLocation(_x, _y);
super.setSize(IMAGE_WIDTH, STACK_HIGHT); super.setSize(IMAGE_WIDTH, STACK_HIGHT);
super.setOpaque(false); super.setOpaque(false);
super.setLayout(null); super.setLayout(null);
this.wasteStack = _waste;
} }
@Override @Override

21
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;
}
}
Loading…
Cancel
Save