Class CharacterHandle
java.lang.Object
de.rpgframework.character.CharacterHandle
- Direct Known Subclasses:
FileBasedCharacterHandle
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Attachment> protected booleanprotected Stringprotected Dateprotected Stringprotected RuleSpecificCharacterObject<?, ?, ?, ?> protected RoleplayingSystemprotected booleanprotected UUID -
Constructor Summary
ConstructorsConstructorDescriptionCharacterHandle(UUID uuid, RoleplayingSystem rules, String name, String desc, Date lastModified) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachment(Attachment att) Add a cached attachmentgetName()abstract PathgetPath()getUUID()booleanbooleanisShared()voidvoidvoidsetDeleted(boolean deleted) voidsetLastModified(Date lastModified) voidvoidvoidsetShared(boolean shared) voidsetShortDescription(String desc) void
-
Field Details
-
uuid
-
rules
-
name
-
desc
-
lastModified
-
deleted
protected boolean deleted -
parsedCharac
-
attachments
-
-
Constructor Details
-
CharacterHandle
public CharacterHandle() -
CharacterHandle
public CharacterHandle(UUID uuid, RoleplayingSystem rules, String name, String desc, Date lastModified)
-
-
Method Details
-
getName
-
getShortDescription
-
setShortDescription
-
getRuleIdentifier
-
getLastModified
-
getUUID
-
setUUID
-
setName
-
setRuleIdentifier
-
setLastModified
-
getCharacter
-
setCharacter
- Throws:
IOException
-
getPath
-
isDeleted
public boolean isDeleted()- Returns:
- the deleted
-
setDeleted
public void setDeleted(boolean deleted) - Parameters:
deleted- the deleted to set
-
addAttachment
Add a cached attachment -
removeAttachment
-
getAttachments
-