model

package model

Type members

Classlikes

object Answer

Object for an answer

Object for an answer

trait Course

Trait for a course

Trait for a course

Companion:
object
object Course

Object used for managing a Course

Object used for managing a Course

Companion:
class

Object used for managing a course identifier

Object used for managing a course identifier

class GameStage(var coursesInGame: List[SavedCourse], var quizInGame: QuizInGame, var review: Review, var gameSettings: GameSettings, var playerStatsInGame: PlayerStats)

Game Stage with the list of the full-courses selected, a QuizInGame current, a Review of the quizzes played, and some settings

Game Stage with the list of the full-courses selected, a QuizInGame current, a Review of the quizzes played, and some settings

Value parameters:
coursesInGame

a list of the curses selected to play in this game, sublist of all courses

gameSettings

settings like maximum number question, time

playerStatsInGame

the stats of the game currently playing

quizInGame

a quiz to play, with a sub list of answers selected and the relative course

review

a list of quizzes played

object Quiz

Object for a quiz

Object for a quiz

case class QuizAnswered(quizInGame: QuizInGame, answerPlayer: Option[Answer], var score: Int, var timeToAnswer: Double)

A quiz answered is a quiz in game, accompanied with an optional answer that the player gave

A quiz answered is a quiz in game, accompanied with an optional answer that the player gave

case class QuizInGame(course: Course, quiz: Quiz, answers: List[Answer])

Case class for a quiz used during the game

Case class for a quiz used during the game

Value parameters:
answers

a list of answers of the quiz

course

the course of the quiz

quiz

a quiz used during the game

case class Review(var quizAnsweredList: List[QuizAnswered])

A review is list of quiz answered by the player during a game

A review is list of quiz answered by the player during a game

Object used for managing a saved course

Object used for managing a saved course

object Session

Object for the game session model

Object for the game session model