|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.tiamat.Character
public abstract class Character
Character - abstract representation of a character
Constructor Summary | |
---|---|
Character()
creates an empty Character |
Method Summary | |
---|---|
AttributeCollection |
getAttributes()
|
java.awt.image.BufferedImage |
getFullImage()
Returns the full-size image for this item, change by setting fullImagePath. |
java.lang.String |
getFullImagePath()
Retuns the relative path to full-size image for this Character. |
java.lang.String |
getFullImagePathAbsolute()
Retuns the absolute path to full-size image for this Character. |
ItemCollection |
getItems()
Returns the Items this Character is carrying. |
StringTable |
getProfile()
Returns the profile (i.e. |
SkillCollection |
getSkills()
Returns this Character's Skills. |
Sprite |
getSprite()
Returns the physical sprite for this Character, change by setting spritePath. |
java.lang.String |
getSpritePath()
Returns the relative path to this Character's Sprite. |
java.lang.String |
getSpritePathAbsolute()
Returns the absolute path to this Character's Sprite. |
java.awt.image.BufferedImage |
getThumbnailImage()
Returns the thumbnail image for this item, what would appear in a menu or dialog, change by setting thumbnailImagePath. |
java.lang.String |
getThumbnailImagePath()
Retuns the relative path to thumbnail image for this Character. |
java.lang.String |
getThumbnailImagePathAbsolute()
Retuns the absolute path to thumbnail image for this Character. |
void |
onDeserialize(Formatter formatter,
java.lang.String absoluteDir)
The onDeserialize event should be fired after an object is de-serialized. |
void |
setAbsoluteDir(java.lang.String absoluteDir)
Sets the absolute working directory for files. |
void |
setAttributes(AttributeCollection attributes)
|
void |
setFullImagePath(java.lang.String fullImagePath)
Sets the relative path to full-size image for this Character, setting this reloads the actual image. |
void |
setItems(ItemCollection items)
Sets the Items this Character is carrying. |
void |
setProfile(StringTable profile)
Sets the profile (i.e. |
void |
setSkills(SkillCollection skills)
Sets this Character's Skills. |
void |
setSpritePath(java.lang.String spritePath,
Formatter formatter)
Sets the path to the Sprite's underlying file, setting this reloads the Sprite. |
void |
setThumbnailImagePath(java.lang.String thumbnailImagePath)
Sets the relative path to thumbnail image for this Character, what would appear in a menu or dialog, setting this reloads the actual image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Character()
Method Detail |
---|
public void setFullImagePath(java.lang.String fullImagePath)
fullImagePath
- The relative path to full-size image for this Character.public java.lang.String getFullImagePath()
public java.lang.String getFullImagePathAbsolute()
public java.awt.image.BufferedImage getFullImage()
public java.awt.image.BufferedImage getThumbnailImage()
public void setThumbnailImagePath(java.lang.String thumbnailImagePath)
thumbnailImagePath
- The relative path to thumbnail image for this Character, what would appear in a menu or dialog, setting this reloads the actual image.public java.lang.String getThumbnailImagePath()
public java.lang.String getThumbnailImagePathAbsolute()
public AttributeCollection getAttributes()
public void setAttributes(AttributeCollection attributes)
public ItemCollection getItems()
public void setItems(ItemCollection items)
items
- The new Items for this Character.public SkillCollection getSkills()
public void setSkills(SkillCollection skills)
skills
- The new Skills for this Character.public StringTable getProfile()
public void setProfile(StringTable profile)
profile
- The new profile (i.e. name, class, or race) for this Character.public java.lang.String getSpritePath()
public java.lang.String getSpritePathAbsolute()
public void setSpritePath(java.lang.String spritePath, Formatter formatter)
spritePath
- The relative path to the Sprite's underlying file, setting this reloads the Sprite.formatter
- The formatter used to deserialize this Sprite.public Sprite getSprite()
public void setAbsoluteDir(java.lang.String absoluteDir)
absoluteDir
- The full path to the working directory.public void onDeserialize(Formatter formatter, java.lang.String absoluteDir)
onDeserialize
in interface Storable
formatter
- the formatter to use to load any storable membersabsoluteDir
- the working directory since all paths stored in the object should be relative
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |