Class FileBasedCharacterHandle

java.lang.Object
de.rpgframework.character.CharacterHandle
de.rpgframework.character.FileBasedCharacterHandle

public class FileBasedCharacterHandle extends CharacterHandle
  • Field Details

  • Constructor Details

    • FileBasedCharacterHandle

      public FileBasedCharacterHandle()
    • FileBasedCharacterHandle

      public FileBasedCharacterHandle(Path path, de.rpgframework.core.RoleplayingSystem rules)
    • FileBasedCharacterHandle

      public FileBasedCharacterHandle(Path path, de.rpgframework.core.RoleplayingSystem rules, UUID uuid)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getPath

      public Path getPath()
      Specified by:
      getPath in class CharacterHandle
      Returns:
      the path
    • setPath

      public void setPath(Path path)
      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

      public Properties getProperties()
    • toProperties

      public static Properties toProperties(CharacterHandle handle, Supplier<List<Attachment>> getAttachments) throws IOException
      Throws:
      IOException
    • fromProperties

      public static void fromProperties(CharacterHandle handle, Properties pro)
    • setProperties

      public void setProperties(Properties pro)
    • isLoadAttemptMade

      public boolean isLoadAttemptMade()
      Returns:
      the loadAttemptMade
    • setLoadAttemptMade

      public void setLoadAttemptMade(boolean loadAttemptMade)
      Parameters:
      loadAttemptMade - the loadAttemptMade to set