org.starhope.appius.user
Class ClothingItem
java.lang.Object
org.starhope.appius.util.ManagedReferenceHolder
org.starhope.appius.sql.SQLPeerDatum
org.starhope.appius.user.InventoryItem
org.starhope.appius.user.ClothingItem
public class ClothingItem
- extends InventoryItem
- Author:
- brpocock
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 |
Methods inherited from class org.starhope.appius.user.InventoryItem |
asClothing, asHomeDecorItem, flush, getByID, getByID, getCacheUniqueID, getClassForThisType, getClassForType, getID, getItemClass, getOwner, getOwnerID, getSlotNumber, getTypeID, getTypesOfClothing, getTypesOfFurniture, getTypesOfStructure, getTypesOfWearables, identifiesAs, isActive, isClothingOnly, isFurniture, isMusic, isPattern, isPivitz, isStructure, isWearable, setActive, setOwner, setOwnerID, setSlotNumber, setTypeID, toJSON |
color
private Colour color
ClothingItem
ClothingItem()
ClothingItem
public ClothingItem(Integer item,
Colour colour,
int slot)
throws GameLogicException,
NotFoundException
- Parameters:
item
- the type of itemcolour
- its colourslot
-
- Throws:
GameLogicException
- if the item isn't clothing
NotFoundException
- if the item can't be found in the
database
getClothingLayerNames
public static String[] getClothingLayerNames()
- get the names of layers/mount points for clothing
- Returns:
- an array of valid names
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)
getColor
public Colour getColor()
- Returns:
- the colour
getMountPoint
public String getMountPoint()
- Overrides:
getMountPoint
in class InventoryItem
- Returns:
- the mount point of the clothing item, or the encoded
string describing the location of a furniture item
- See Also:
InventoryItem.getMountPoint()
isADress
public boolean isADress()
- Returns:
- true, if and only if the item is a dress
isAShirt
public boolean isAShirt()
- Returns:
- true, if and only if the item is a shirt (and not a
dress)
set
protected void set(ResultSet rs)
throws SQLException
- This is an overriding method.
- Specified by:
set
in class SQLPeerDatum
- Throws:
SQLException
- if the database fails somehow- See Also:
SQLPeerDatum.set(java.sql.ResultSet)
setColor
public void setColor(Colour color)
- Parameters:
color
- the colour
toString
public String toString()
- This is an overriding method.
- Overrides:
toString
in class InventoryItem
- See Also:
Object.toString()