com.huguesjohnson.tiamat
Class Character

java.lang.Object
  extended bycom.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
 
Method Summary
 AttributeCollection getAttributes()
           
 java.awt.image.BufferedImage getFullImage()
           
 java.lang.String getFullImagePath()
           
 java.lang.String getFullImagePathAbsolute()
           
 ItemCollection getItems()
           
 StringTable getProfile()
           
 SkillCollection getSkills()
           
 Sprite getSprite()
           
 java.lang.String getSpritePath()
           
 java.lang.String getSpritePathAbsolute()
           
 java.awt.image.BufferedImage getThumbnailImage()
           
 java.lang.String getThumbnailImagePath()
           
 java.lang.String getThumbnailImagePathAbsolute()
           
 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)
           
 void setAttributes(AttributeCollection attributes)
           
 void setFullImagePath(java.lang.String fullImagePath)
           
 void setItems(ItemCollection items)
           
 void setProfile(StringTable profile)
           
 void setSkills(SkillCollection skills)
           
 void setSpritePath(java.lang.String spritePath, Formatter formatter)
           
 void setThumbnailImagePath(java.lang.String thumbnailImagePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Character

public Character()
creates an empty Character

Method Detail

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 members
absoluteDir - the working directory since all paths stored in the object should be relative