From 479384d6bfeea0c225af829cbc1cac730d87c844 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 19 Jun 2011 00:14:27 +0200 Subject: Correctly show invalid sets git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@471 72836036-5685-4462-b002-a69064685172 --- mock/jrummikub/model/MockTable.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mock/jrummikub/model/MockTable.java') diff --git a/mock/jrummikub/model/MockTable.java b/mock/jrummikub/model/MockTable.java index 295321c..77652a6 100644 --- a/mock/jrummikub/model/MockTable.java +++ b/mock/jrummikub/model/MockTable.java @@ -69,4 +69,15 @@ public class MockTable implements ITable { return sets.size(); } + @Override + public boolean contains(StoneSet object) { + for (Pair set : sets) { + if (set.getFirst() == object) { + return true; + } + } + + return false; + } + } -- cgit v1.2.3