From: Miguel A. B. L. <ari...@us...> - 2005-11-16 18:28:47
|
Update of /cvsroot/arianne/marauroa/src/marauroa/common/game In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6147/src/marauroa/common/game Modified Files: RPSlot.java Log Message: Made private the new methods to avoid confusion. get(int ) and remove(int ) exposes private implementation details and can even be confused with position in the slot. Index: RPSlot.java =================================================================== RCS file: /cvsroot/arianne/marauroa/src/marauroa/common/game/RPSlot.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** RPSlot.java 16 Nov 2005 16:06:08 -0000 1.15 --- RPSlot.java 16 Nov 2005 18:28:37 -0000 1.16 *************** *** 215,219 **** /** Gets the object from the slot */ ! public RPObject get(int objectId) throws RPObjectNotFoundException { try --- 215,219 ---- /** Gets the object from the slot */ ! private RPObject get(int objectId) throws RPObjectNotFoundException { try *************** *** 243,247 **** /** This method removes the object from the slot */ ! public RPObject remove(int objectId) throws RPObjectNotFoundException { try --- 243,247 ---- /** This method removes the object from the slot */ ! private RPObject remove(int objectId) throws RPObjectNotFoundException { try |