[mud4j-commit] SF.net SVN: mud4j: [54] trunk/mud4j-core/src/java/net/sf/mud4j/world/item/ Item.java
Status: Pre-Alpha
Brought to you by:
mpurland
From: <mpu...@us...> - 2006-12-24 18:04:01
|
Revision: 54 http://mud4j.svn.sourceforge.net/mud4j/?rev=54&view=rev Author: mpurland Date: 2006-12-24 10:03:59 -0800 (Sun, 24 Dec 2006) Log Message: ----------- Update Item interface with new methods. Modified Paths: -------------- trunk/mud4j-core/src/java/net/sf/mud4j/world/item/Item.java Modified: trunk/mud4j-core/src/java/net/sf/mud4j/world/item/Item.java =================================================================== --- trunk/mud4j-core/src/java/net/sf/mud4j/world/item/Item.java 2006-12-24 17:58:09 UTC (rev 53) +++ trunk/mud4j-core/src/java/net/sf/mud4j/world/item/Item.java 2006-12-24 18:03:59 UTC (rev 54) @@ -16,28 +16,35 @@ package net.sf.mud4j.world.item; +import java.util.List; + import net.sf.mud4j.effect.Effectable; /** - * Game item interface. + * Item interface for allowing different items to be created for a single API. * * @author Matthew Purland - * */ public interface Item extends Effectable { /** - * Get item type of this item. + * Get list of item types for the item. An item should be able to have + * multiple item types. * - * TODO shouldn't an item be able to have many item types? - * - * @return Returns item type for the given item. + * @return Returns list of item types for the given item. */ - public ItemType getType(); - + public List<ItemType> getTypes(); + /** * Get the name of the item. * * @return Returns the name of the item. */ public String getName(); + + /** + * Set the name of the item. + * + * @param newItemName New item name for the item. + */ + public void setName(String newItemName); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |