object UserProgressFileManager extends FileManager
Defines operation on user progress files.
- Alphabetic
- By Inheritance
- UserProgressFileManager
- FileManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
def
deleteFile(filePath: Path): Try[Unit]
Delete file by path.
-
def
deleteUserProgress(): Try[Unit]
Delete user progress file
Delete user progress file
- returns
Try[Unit]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
jsonExtension: String
- Definition Classes
- FileManager
-
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
-
def
loadUserProgress(): List[CampaignLevel]
Loads user progress from file.
Loads user progress from file.
- returns
List[CampaignLevel]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
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
-
def
saveUserProgress(userProgress: List[CampaignLevel]): Boolean
Saves user progress.
Saves user progress.
- userProgress
List[CampaignLevel]
- returns
true if the function is completed with success
-
implicit
def
stringPathToFile(path: String): File
- Attributes
- protected
- Definition Classes
- FileManager
-
implicit
def
stringPathToPath(path: String): Path
- Attributes
- protected
- Definition Classes
- FileManager
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
implicit
val
who: String
- Definition Classes
- UserProgressFileManager → FileManager