Packages

object LevelFileManager extends FileManager

Defines operation on levels files

Linear Supertypes
FileManager, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LevelFileManager
  2. FileManager
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. def createDirectoriesTree(file: File): Boolean

    Creates directories tree for a new file.

    Creates directories tree for a new file.

    file

    File

    returns

    true if no Exceptions occurs

    Attributes
    protected
    Definition Classes
    FileManager
  7. def deleteCustomLevel(levelName: String): Try[Unit]

    Delete a custom level file.

    Delete a custom level file.

    levelName

    the name of the file

    returns

    Try[Unit]

  8. def deleteFile(filePath: Path): Try[Unit]

    Delete file by path.

    Delete file by path.

    filePath

    Path

    returns

    Try[Unit]

    Attributes
    protected
    Definition Classes
    FileManager
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getCustomLevel(implicit fileName: String): Option[Level]

    Load level from file saved into user home directory

    Load level from file saved into user home directory

    fileName

    the name of the file

    returns

    an Option with the required Level if it doesn't fail

  14. def getCustomLevelsInfo: Try[List[LevelInfo]]

    Read from file the custom levels info

    Read from file the custom levels info

    returns

    if exists a list of LevelInfo

  15. def getLevelFromResource(chosenLevel: String, isMultiPlayer: Boolean = false): Option[Level]

    Reads a file from the resources folder.

    Reads a file from the resources folder.

    chosenLevel

    levels name

    returns

    content of file as Level wrapped into an Option

  16. def getLevelsConfigResourcesPath(multiPlayer: Boolean = false): Option[List[String]]

    Get a list of file names who contain single player or multiPlayer levels

    Get a list of file names who contain single player or multiPlayer levels

    multiPlayer

    true if is required multiPlayer level files name

    returns

    an Option of List[String]

  17. def getResourceLevelInfo(filePath: String): Option[LevelInfo]

    Read from file into resources the levels info

    Read from file into resources the levels info

    returns

    Option[LevelInfo]

  18. def getResourcesFileText(resourcePath: String): String

    Get resource file content as text.

    Get resource file content as text.

    resourcePath

    file path referred to resource dir

    returns

    String

    Attributes
    protected
    Definition Classes
    FileManager
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. val jsonExtension: String
    Definition Classes
    FileManager
  22. def loadFile(filePath: String): Option[String]

    Get the file content.

    Get the file content.

    filePath

    file path to String

    returns

    An Option with the text if the operation is terminated with success

    Attributes
    protected
    Definition Classes
    FileManager
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def saveCustomLevel(level: Level): Boolean

    Save a custom level into user home.

    Save a custom level into user home.

    level

    Level

    returns

    true if the operation is completed with success

  27. def saveToFile(file: File, text: String): Boolean

    Create a new file or overwrite its content if exists.

    Create a new file or overwrite its content if exists.

    file

    File

    text

    text to write into file

    returns

    true if the operation is terminated with success

    Attributes
    protected
    Definition Classes
    FileManager
  28. implicit def stringPathToFile(path: String): File
    Attributes
    protected
    Definition Classes
    FileManager
  29. implicit def stringPathToPath(path: String): Path
    Attributes
    protected
    Definition Classes
    FileManager
  30. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  35. implicit val who: String
    Definition Classes
    LevelFileManagerFileManager

Inherited from FileManager

Inherited from AnyRef

Inherited from Any

Ungrouped