From: ChadF <ch...@us...> - 2007-02-24 23:57:52
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/item In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv18019/src/games/stendhal/server/entity/item Modified Files: Item.java Log Message: Added getQuantity() to Item, so StackableItem is only needed when changing the count. Removed bank slot exclusion code, and replaced with explicit list of slots that are considered "with" the player. Some code cleanups. Index: Item.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/server/entity/item/Item.java,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** Item.java 16 Jan 2007 19:26:28 -0000 1.43 --- Item.java 24 Feb 2007 23:57:38 -0000 1.44 *************** *** 216,219 **** --- 216,230 ---- } + + /** + * Get item count. + * + * @return 1. + */ + public int getQuantity() { + return 1; + } + + /** returns the list of possible slots for this item */ public List<String> getPossibleSlots() { |