From: Stefan F. <ste...@us...> - 2010-03-28 17:06:04
|
Update of /cvsroot/rails/18xx/rails/ui/swing/hexmap In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17978/rails/ui/swing/hexmap Modified Files: GUIHex.java Log Message: Added MapCorrection Mode and some refactoring on the CorrectionClasses Index: GUIHex.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/ui/swing/hexmap/GUIHex.java,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** GUIHex.java 16 Feb 2010 20:21:59 -0000 1.38 --- GUIHex.java 28 Mar 2010 17:05:55 -0000 1.39 *************** *** 505,508 **** --- 505,512 ---- } } + + public void forcedRotateTile() { + provisionalGUITile.setRotation(provisionalGUITile.getRotation() + 1); + } private Point getTokenCenter(int numTokens, int currentToken, *************** *** 675,678 **** --- 679,690 ---- } + + /** forces the tile to drop */ + public void forcedDropTile(int tileId, int orientation) { + provisionalGUITile = new GUITile(tileId, this); + provisionalGUITile.setRotation(orientation); + provisionalGUITile.setScale(SELECTED_SCALE); + toolTip = "Click to rotate"; + } public void removeTile() { |