# HG changeset patch # User Matti Hamalainen # Date 1296679553 -7200 # Node ID 60a4579a79df64edc6eb1bf44545c450de804ffa # Parent 4a0f8dcdaa3fbf43f776d0648399ff29f27cd380 Moar work. diff -r 4a0f8dcdaa3f -r 60a4579a79df game/Engine.java --- a/game/Engine.java Tue Feb 01 22:38:42 2011 +0200 +++ b/game/Engine.java Wed Feb 02 22:45:53 2011 +0200 @@ -77,6 +77,38 @@ } */ +class IDMWidget +{ + public IDMWidget() + { + } + + public void paint(Graphics2D g) + { + } + + public boolean hit(float x, float y) + { + return false; + } +} + +class IDMButton +{ + public IDMButton(float x, float y, String text) + { + } + + public void paint(Graphics2D g) + { + } + + public boolean hit(float x, float y) + { + return false; + } +} + class GameBoard { public static final int boardSize = 9; @@ -95,7 +127,7 @@ moveX = boardMiddle; moveY = boardMiddle - 1; - movePoint = 0; + movePoint = 5; pieceFinishTurn(); diff -r 4a0f8dcdaa3f -r 60a4579a79df game/Piece.java --- a/game/Piece.java Tue Feb 01 22:38:42 2011 +0200 +++ b/game/Piece.java Wed Feb 02 22:45:53 2011 +0200 @@ -81,7 +81,7 @@ public int getConnection(int in) { - return connections[in]; + return connections[(in + (currRotation * 2)) % 8]; } public void rotate(boolean dir) @@ -120,6 +120,7 @@ public void setActiveConnection(int index) { active[index] = true; + active[connections[index]] = true; activeChanged = true; }