[gee-cvs] gabel/src/net/sf/gabel/forager/client ForagerApplet.java, 1.33, 1.34 ForagerGameWindow.ja
Status: Alpha
Brought to you by:
alllee
|
From: Allen L. <al...@us...> - 2006-08-18 18:22:56
|
Update of /cvsroot/gabel/gabel/src/net/sf/gabel/forager/client In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv3780/src/net/sf/gabel/forager/client Modified Files: ForagerApplet.java ForagerGameWindow.java SubjectView.java Log Message: tweaking dimensions to make the game board a wee bit smaller Index: ForagerGameWindow.java =================================================================== RCS file: /cvsroot/gabel/gabel/src/net/sf/gabel/forager/client/ForagerGameWindow.java,v retrieving revision 1.92 retrieving revision 1.93 diff -C2 -d -r1.92 -r1.93 *** ForagerGameWindow.java 14 Aug 2006 20:35:21 -0000 1.92 --- ForagerGameWindow.java 18 Aug 2006 18:22:46 -0000 1.93 *************** *** 205,210 **** while ((nextRoundOn - System.currentTimeMillis()) > 1000) { long millisToNextRound = nextRoundOn - System.currentTimeMillis(); ! timeLeftLabel.setText("Next Round will begin in " + ! (millisToNextRound / 1000L) + " seconds."); repaint(); try { --- 205,210 ---- while ((nextRoundOn - System.currentTimeMillis()) > 1000) { long millisToNextRound = nextRoundOn - System.currentTimeMillis(); ! timeLeftLabel.setText("Next round in " + ! (millisToNextRound / 1000L) + " s"); repaint(); try { *************** *** 511,514 **** --- 511,517 ---- /* * $Log$ + * Revision 1.93 2006/08/18 18:22:46 alllee + * tweaking dimensions to make the game board a wee bit smaller + * * Revision 1.92 2006/08/14 20:35:21 alllee * adding directions to legacy bunnified forager experiment Index: ForagerApplet.java =================================================================== RCS file: /cvsroot/gabel/gabel/src/net/sf/gabel/forager/client/ForagerApplet.java,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** ForagerApplet.java 14 Aug 2006 18:30:02 -0000 1.33 --- ForagerApplet.java 18 Aug 2006 18:22:46 -0000 1.34 *************** *** 53,56 **** --- 53,58 ---- public void start() { foragerClient.connect(); + requestFocus(); + requestFocusInWindow(); foragerClient.getForagerGameWindow().requestFocusInWindow(); validate(); *************** *** 76,79 **** --- 78,84 ---- /* * $Log$ + * Revision 1.34 2006/08/18 18:22:46 alllee + * tweaking dimensions to make the game board a wee bit smaller + * * Revision 1.33 2006/08/14 18:30:02 alllee * * Fixing SubjectView size issues in bunnified forager Index: SubjectView.java =================================================================== RCS file: /cvsroot/gabel/gabel/src/net/sf/gabel/forager/client/SubjectView.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** SubjectView.java 14 Aug 2006 20:35:21 -0000 1.29 --- SubjectView.java 18 Aug 2006 18:22:46 -0000 1.30 *************** *** 188,201 **** } else if (id.equals(clientId)) { ! if (direction == Direction.DOWN) { return scaledSelfDownImage; } ! else if (direction == Direction.UP) { return scaledSelfUpImage; } ! else if (direction == Direction.LEFT) { return scaledSelfLeftImage; } ! else if (direction == Direction.RIGHT) { return scaledSelfRightImage; } --- 188,202 ---- } else if (id.equals(clientId)) { ! System.err.println("Direction: " + direction); ! if (direction.equals( Direction.DOWN )){ return scaledSelfDownImage; } ! else if (direction.equals( Direction.UP )) { return scaledSelfUpImage; } ! else if (direction.equals( Direction.LEFT )) { return scaledSelfLeftImage; } ! else if (direction.equals( Direction.RIGHT )) { return scaledSelfRightImage; } *************** *** 210,214 **** public void setDirection(Direction direction) { ! this.direction = direction; } } --- 211,217 ---- public void setDirection(Direction direction) { ! if (direction != null) { ! this.direction = direction; ! } } } |