org.starhope.appius.game
Class GameEquipItem

java.lang.Object
  extended by org.starhope.appius.sql.SQLPeerDatum
      extended by org.starhope.appius.game.InventoryItem
          extended by org.starhope.appius.game.GameEquipItem
All Implemented Interfaces:
Serializable

public class GameEquipItem
extends InventoryItem

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

Author:
brpocock
See Also:
Serialized Form

Field Summary
private  String filename
          WRITEME
private static long serialVersionUID
          TODO: document this field (brpocock, Oct 13, 2009) serialVersionUID (long)
private  String title
          WRITEME
 
Fields inherited from class org.starhope.appius.game.InventoryItem
active, CLOTHES, FURNITURE, GAME_EQUIP_ITEM, id, MUSIC, ownerID, PATTERNS, PIVITZ, slotNumber, STATIONERY, STRUCTURE, T_Backpacks, T_Ceiling, T_Ceiling_Furniture, T_Dresses, T_Ears, T_Eyes, T_Floor_Furniture, T_Flooring, T_Game_Equip_Item, T_Music, T_Neck, T_Orbitz, T_Pants, T_Pattern, T_Pet, T_Pivitz, T_Shirts, T_Stationery, T_TootBook_Avatar_BG, T_TootBook_Box_Style, T_TootBook_Icon, T_TootBook_Page_BG, T_TootBook_Title_BG, T_TootBookTheme, T_Tops, T_Vehicle, T_Wall_Furniture, T_Wallpaper, TB_AVATAR_BG, TB_BOX_STYLES, TB_ICON, TB_PAGE_BG, TB_TITLE_BG, type, 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
 
Fields inherited from class org.starhope.appius.sql.SQLPeerDatum
hackyDatabaseConnection
 
Constructor Summary
GameEquipItem()
           
 
Method Summary
protected  void assertValidType(InventoryItemType t)
          TODO: document this method (brpocock, Nov 19, 2009)
 String getFilename()
          WRITEME
 String getTitle()
          WRITEME
protected  void set(ResultSet rs)
           
private  void setFilename(String string)
           
protected  void setFromInventory(ResultSet inv)
          TODO: document this method (brpocock, Nov 19, 2009)
private  void setTitle(String string)
           
 
Methods inherited from class org.starhope.appius.game.InventoryItem
asClothing, asHomeDecorItem, assertValidTypeID, equals, equip, flush, getByID, getByID, getCacheUniqueID, getClassForThisType, getClassForType, getClassForType, getFromInventory, getID, getItemClass, getMountPoint, getOwner, getOwnerID, getSlotNumber, getType, getTypeID, getTypesOfClothingT, getTypesOfFurnitureT, getTypesOfHomeDecorT, getTypesOfStructureT, getTypesOfWearablesT, hasANomen, hashCode, identifiesAs, isActive, isAPet, isClothingOnly, isFurniture, isMusic, isPattern, isPet, isPivitz, isStructure, isVehicle, isWearable, pullFromInventory, setActive, setOwner, setOwnerID, setSlotHarsh, setSlotNumber, setType, setTypeID, toJSON, toString, unequip
 
Methods inherited from class org.starhope.appius.sql.SQLPeerDatum
changed, findInCache, get, prepareX, prepareX, saveInCache, set
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
TODO: document this field (brpocock, Oct 13, 2009) serialVersionUID (long)

See Also:
Constant Field Values

filename

private String filename
WRITEME


title

private String title
WRITEME

Constructor Detail

GameEquipItem

public GameEquipItem()
Method Detail

assertValidType

protected void assertValidType(InventoryItemType t)
                        throws GameLogicException
Description copied from class: InventoryItem
TODO: document this method (brpocock, Nov 19, 2009)

Specified by:
assertValidType in class InventoryItem
Parameters:
t - WRITEME
Throws:
GameLogicException - WRITEME
See Also:
InventoryItem.assertValidType(org.starhope.appius.types.InventoryItemType)

getFilename

public String getFilename()
WRITEME

Returns:
WRITEME

getTitle

public String getTitle()
WRITEME

Returns:
WRITEME

set

protected void set(ResultSet rs)
            throws SQLException
Specified by:
set in class SQLPeerDatum
Parameters:
rs - The result of an SQL query, with the cursor already pointed at the row describing this specific instance of the object.
Throws:
SQLException - if the database fails somehow
See Also:
SQLPeerDatum.set(java.sql.ResultSet)

setFilename

private void setFilename(String string)
Parameters:
string - WRITEME

setFromInventory

protected void setFromInventory(ResultSet inv)
                         throws SQLException
Description copied from class: InventoryItem
TODO: document this method (brpocock, Nov 19, 2009)

Specified by:
setFromInventory in class InventoryItem
Parameters:
inv - WRITEME
Throws:
SQLException - WRITEME
See Also:
InventoryItem.setFromInventory(java.sql.ResultSet)

setTitle

private void setTitle(String string)
Parameters:
string - WRITEME