diff options
Diffstat (limited to 'aux/set')
| -rw-r--r-- | aux/set/Aside.java | 8 | ||||
| -rw-r--r-- | aux/set/Hand.java | 2 | 
2 files changed, 5 insertions, 5 deletions
diff --git a/aux/set/Aside.java b/aux/set/Aside.java index c58932c..2a3b530 100644 --- a/aux/set/Aside.java +++ b/aux/set/Aside.java @@ -10,24 +10,24 @@ public class Aside {      public enum Type {Chi,Peng,aGang,mGang,jGang};      private Type type; -    private Card rep; +    private Card[] rep;      private int from; -    public Aside(Card rep,Type type,int from) +    public Aside(Card[] rep,Type type,int from)      {          this.rep=rep;          this.type=type;          this.from=from;      } -    public Aside(Card rep,Type type) +    public Aside(Card[] rep,Type type)      {          this.rep=rep;          this.type=type;          this.from= 0;      } -    public Card getRep() { +    public Card[] getRep() {          return rep;      } diff --git a/aux/set/Hand.java b/aux/set/Hand.java index cf5767e..a66944f 100644 --- a/aux/set/Hand.java +++ b/aux/set/Hand.java @@ -70,7 +70,7 @@ public class Hand extends Set {      public boolean jiaGangAble(Card card)      {          for (Aside i:asides) -        if (i.getType()== Aside.Type.Peng && card.getStdId() == i.getRep().getStdId()) +        if (i.getType()== Aside.Type.Peng && card.getStdId() == i.getRep()[0].getStdId())              return true;          return false;      }  | 
