com.huguesjohnson.tiamat
Class Character
java.lang.Object
com.huguesjohnson.tiamat.Character
- All Implemented Interfaces:
- Storable
- Direct Known Subclasses:
- NonPlayerCharacter, PlayerCharacter
- public abstract class Character
- extends java.lang.Object
- implements Storable
Character - abstract representation of a character
- Author:
- Hugues Johnson
|
Constructor Summary |
Character()
creates an empty Character |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Character
public Character()
- creates an empty Character
setFullImagePath
public void setFullImagePath(java.lang.String fullImagePath)
getFullImagePath
public java.lang.String getFullImagePath()
getFullImagePathAbsolute
public java.lang.String getFullImagePathAbsolute()
getFullImage
public java.awt.image.BufferedImage getFullImage()
getThumbnailImage
public java.awt.image.BufferedImage getThumbnailImage()
setThumbnailImagePath
public void setThumbnailImagePath(java.lang.String thumbnailImagePath)
getThumbnailImagePath
public java.lang.String getThumbnailImagePath()
getThumbnailImagePathAbsolute
public java.lang.String getThumbnailImagePathAbsolute()
getAttributes
public AttributeCollection getAttributes()
setAttributes
public void setAttributes(AttributeCollection attributes)
getItems
public ItemCollection getItems()
setItems
public void setItems(ItemCollection items)
getSkills
public SkillCollection getSkills()
setSkills
public void setSkills(SkillCollection skills)
getProfile
public StringTable getProfile()
setProfile
public void setProfile(StringTable profile)
getSpritePath
public java.lang.String getSpritePath()
getSpritePathAbsolute
public java.lang.String getSpritePathAbsolute()
setSpritePath
public void setSpritePath(java.lang.String spritePath,
Formatter formatter)
getSprite
public Sprite getSprite()
setAbsoluteDir
public void setAbsoluteDir(java.lang.String absoluteDir)
onDeserialize
public void onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
- The onDeserialize event should be fired after an object is de-serialized.
This allows objects to load transient members, set their working directory, and load Storable members if needed.
- Specified by:
onDeserialize in interface Storable
- Parameters:
formatter - the formatter to use to load any storable membersabsoluteDir - the working directory since all paths stored in the object should be relative