mechanics.statuses.items
Class HoldItemData

java.lang.Object
  extended by mechanics.statuses.items.HoldItemData

public class HoldItemData
extends java.lang.Object


Constructor Summary
HoldItemData()
           
 
Method Summary
 void addExclusiveItem(java.lang.String name, java.lang.String pokemon)
          Add an exclusive item to a pokemon.
 boolean canUseItem(java.lang.String species, java.lang.String item)
          Return whether the named species can use a particular item.
 java.util.SortedSet getItemSet(java.lang.String species)
          Get an item set corresponding to the named species.
 void loadItemData(java.io.InputStream input)
          Read item data in from an arbitrary input stream.
 void removeExclusiveItem(java.lang.String name, java.lang.String pokemon)
          Remove an exclusive item from a pokemon.
 void saveItemData(java.io.OutputStream output)
          Write item data to an arbitrary output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HoldItemData

public HoldItemData()
Method Detail

canUseItem

public boolean canUseItem(java.lang.String species,
                          java.lang.String item)
Return whether the named species can use a particular item.


getItemSet

public java.util.SortedSet getItemSet(java.lang.String species)
Get an item set corresponding to the named species.


saveItemData

public void saveItemData(java.io.OutputStream output)
                  throws java.io.IOException
Write item data to an arbitrary output stream.

Throws:
java.io.IOException

loadItemData

public void loadItemData(java.io.InputStream input)
                  throws java.io.IOException,
                         java.io.FileNotFoundException
Read item data in from an arbitrary input stream. To be only only by the client - does not initialise for battles!

Throws:
java.io.IOException
java.io.FileNotFoundException

removeExclusiveItem

public void removeExclusiveItem(java.lang.String name,
                                java.lang.String pokemon)
Remove an exclusive item from a pokemon.


addExclusiveItem

public void addExclusiveItem(java.lang.String name,
                             java.lang.String pokemon)
Add an exclusive item to a pokemon.