org.starhope.appius.user
Class GameEquipItem

java.lang.Object
  extended by org.starhope.appius.util.ManagedReferenceHolder
      extended by org.starhope.appius.sql.SQLPeerDatum
          extended by org.starhope.appius.user.InventoryItem
              extended by org.starhope.appius.user.GameEquipItem

public class GameEquipItem
extends InventoryItem

An item which can be equipped by the player in the game world.

Author:
brpocock

Field Summary
 
Fields inherited from class org.starhope.appius.user.InventoryItem
active, id, ownerID, slotNumber, Type_Backpacks, Type_Ceiling, Type_Ceiling_Furniture, Type_Dresses, Type_Ears, Type_Eyes, Type_Floor_Furniture, Type_Flooring, Type_Music, Type_Neck, Type_Orbitz, Type_Pants, Type_Pattern, Type_Pivitz, Type_Shirts, Type_Tops, Type_Wall_Furniture, Type_Wallpaper, typeID
 
Constructor Summary
GameEquipItem()
           
 
Method Summary
protected  void assertValidTypeID(long testTypeID)
          This is an overriding method.
protected  void set(ResultSet rs)
           
 
Methods inherited from class org.starhope.appius.user.InventoryItem
asClothing, asHomeDecorItem, flush, getByID, getByID, getCacheUniqueID, getClassForThisType, getClassForType, getID, getItemClass, getMountPoint, getOwner, getOwnerID, getSlotNumber, getTypeID, getTypesOfClothing, getTypesOfFurniture, getTypesOfStructure, getTypesOfWearables, identifiesAs, isActive, isClothingOnly, isFurniture, isMusic, isPattern, isPivitz, isStructure, isWearable, setActive, setOwner, setOwnerID, setSlotNumber, setTypeID, toJSON, toString
 
Methods inherited from class org.starhope.appius.sql.SQLPeerDatum
changed, findInCache, get, prepare, prepare, saveInCache, set
 
Methods inherited from class org.starhope.appius.util.ManagedReferenceHolder
deref, setRef
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GameEquipItem

public GameEquipItem()
Method Detail

assertValidTypeID

protected void assertValidTypeID(long testTypeID)
                          throws GameLogicException
This is an overriding method.

Specified by:
assertValidTypeID in class InventoryItem
Parameters:
testTypeID - The type ID to be checked
Throws:
GameLogicException - if the type ID is not of the types supported by this class
See Also:
InventoryItem.assertValidTypeID(long)

set

protected void set(ResultSet rs)
            throws SQLException
Specified by:
set in class SQLPeerDatum
Throws:
SQLException - if the database fails somehow
See Also:
SQLPeerDatum.set(java.sql.ResultSet)