From: Erik V. <ev...@us...> - 2009-12-26 12:47:02
|
Update of /cvsroot/rails/18xx/rails/game In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv6688/rails/game Modified Files: Bonus.java Log Message: Added 2 chars of name to View string if no locations exist Index: Bonus.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/Bonus.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Bonus.java 31 Oct 2009 17:08:27 -0000 1.2 --- Bonus.java 26 Dec 2009 12:46:52 -0000 1.3 *************** *** 45,51 **** } ! public String getLocationNameString() { ! if (locations == null || locations.isEmpty()) return ""; StringBuffer b = new StringBuffer(); --- 45,53 ---- } ! public String getIdForView() { ! if (locations == null || locations.isEmpty()) { ! return name.substring(0, 2); ! } StringBuffer b = new StringBuffer(); *************** *** 100,104 **** public String toString() { return "Bonus "+name+" hex=" ! + getLocationNameString() + " value=" + value; } --- 102,106 ---- public String toString() { return "Bonus "+name+" hex=" ! + getIdForView() + " value=" + value; } |