Class FileBasedCharacterHandle
java.lang.Object
de.rpgframework.character.CharacterHandle
de.rpgframework.character.FileBasedCharacterHandle
-
Field Summary
FieldsFields inherited from class de.rpgframework.character.CharacterHandle
attachments, deleted, desc, lastModified, name, parsedCharac, rules, shared, uuid -
Constructor Summary
ConstructorsConstructorDescriptionFileBasedCharacterHandle(Path path, de.rpgframework.core.RoleplayingSystem rules) FileBasedCharacterHandle(Path path, de.rpgframework.core.RoleplayingSystem rules, UUID uuid) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic voidfromProperties(CharacterHandle handle, Properties pro) getPath()booleanbooleanvoidsetLoadAttemptMade(boolean loadAttemptMade) voidvoidsetProperties(Properties pro) voidsetSyncFlag(boolean sync) static PropertiestoProperties(CharacterHandle handle, Supplier<List<Attachment>> getAttachments) toString()Methods inherited from class de.rpgframework.character.CharacterHandle
addAttachment, getAttachments, getCharacter, getLastModified, getName, getRuleIdentifier, getShortDescription, getUUID, isDeleted, isShared, removeAttachment, setCharacter, setDeleted, setLastModified, setName, setRuleIdentifier, setShared, setShortDescription, setUUID
-
Field Details
-
logger
-
-
Constructor Details
-
FileBasedCharacterHandle
public FileBasedCharacterHandle() -
FileBasedCharacterHandle
-
FileBasedCharacterHandle
-
-
Method Details
-
toString
-
equals
-
getPath
- Specified by:
getPathin classCharacterHandle- Returns:
- the path
-
setPath
- Parameters:
path- the path to set
-
hasSyncFlag
public boolean hasSyncFlag()- Returns:
- the sync
-
setSyncFlag
public void setSyncFlag(boolean sync) - Parameters:
sync- the sync to set
-
getProperties
-
toProperties
public static Properties toProperties(CharacterHandle handle, Supplier<List<Attachment>> getAttachments) throws IOException - Throws:
IOException
-
fromProperties
-
setProperties
-
isLoadAttemptMade
public boolean isLoadAttemptMade()- Returns:
- the loadAttemptMade
-
setLoadAttemptMade
public void setLoadAttemptMade(boolean loadAttemptMade) - Parameters:
loadAttemptMade- the loadAttemptMade to set
-