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

@ -3,13 +3,17 @@ package solitaer;
public class GeberStack extends BaseStack { public class GeberStack extends BaseStack {
private static final long serialVersionUID = 1L; 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(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