summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-03 14:29:57 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-03 14:29:57 +0200
commitb2d21a7f2d0baa653919cd69bf05d8b7bddf841c (patch)
tree138f72ed7e4fbeaee50054affc8a918e39ea2782 /src/jrummikub
parent745c925494063774eef232492d4852aefbc55133 (diff)
downloadJRummikub-b2d21a7f2d0baa653919cd69bf05d8b7bddf841c.tar
JRummikub-b2d21a7f2d0baa653919cd69bf05d8b7bddf841c.zip
Don't use deprecated Stone constructor
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@72 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub')
-rw-r--r--src/jrummikub/JRummikub.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/jrummikub/JRummikub.java b/src/jrummikub/JRummikub.java
index cf0c73f..7d3ee28 100644
--- a/src/jrummikub/JRummikub.java
+++ b/src/jrummikub/JRummikub.java
@@ -58,14 +58,14 @@ public class JRummikub {
// stones on the board
Map<Stone, Position> stones = new HashMap<Stone, Position>();
- stones.put(new Stone(1, StoneColor.ORANGE, false), new Position(0, 0));
- stones.put(new Stone(10, StoneColor.BLUE, false), new Position(1, 0));
- stones.put(new Stone(9, StoneColor.RED, false), new Position(0.5f, 1));
- stones.put(new Stone(7, StoneColor.BLACK, false), new Position(1.75f, 1));
+ stones.put(new Stone(1, StoneColor.ORANGE), new Position(0, 0));
+ stones.put(new Stone(10, StoneColor.BLUE), new Position(1, 0));
+ stones.put(new Stone(9, StoneColor.RED), new Position(0.5f, 1));
+ stones.put(new Stone(7, StoneColor.BLACK), new Position(1.75f, 1));
- Stone stoneJoker = new Stone(0, StoneColor.RED, true);
+ Stone stoneJoker = new Stone(StoneColor.RED);
stones.put(stoneJoker, new Position(2.5f, 0));
- stones.put(new Stone(0, StoneColor.BLACK, true), new Position(3.5f, 0));
+ stones.put(new Stone(StoneColor.BLACK), new Position(3.5f, 0));
view.getPlayerPanel().getBoard().setStones(stones);
@@ -154,16 +154,16 @@ public class JRummikub {
// stoneSets on the table
Map<StoneSet, Position> stoneSets = new HashMap<StoneSet, Position>();
- stoneSets.put(new StoneSet(new Stone(5, StoneColor.ORANGE, false)),
- new Position(0.5f, 1));
+ stoneSets.put(new StoneSet(new Stone(5, StoneColor.ORANGE)), new Position(
+ 0.5f, 1));
List<Stone> stoneList = new ArrayList<Stone>();
- stoneList.add(new Stone(7, StoneColor.BLACK, false));
- Stone stone8 = new Stone(8, StoneColor.BLACK, false);
+ stoneList.add(new Stone(7, StoneColor.BLACK));
+ Stone stone8 = new Stone(8, StoneColor.BLACK);
stoneList.add(stone8);
- stoneList.add(new Stone(9, StoneColor.BLACK, false));
- stoneList.add(new Stone(10, StoneColor.BLACK, false));
+ stoneList.add(new Stone(9, StoneColor.BLACK));
+ stoneList.add(new Stone(10, StoneColor.BLACK));
stoneSets.put(new StoneSet(stoneList), new Position(3.5f, 4));