Session

object Session

Object for the game session model

class Object
trait Matchable
class Any
Session.type

Type members

Classlikes

case class Session(savedCourses: List[SavedCourse], playerStats: PlayerStats)

Case class for session model

Case class for session model

Value parameters:
savedCourses

list of saved course in session

Value members

Concrete methods

def changePlayerStats(session: Session, playerStats: PlayerStats): Session

Change player stats in session

Change player stats in session

Value parameters:
playerStats

the new player stats

Returns:

a Session

def changeSavedCourses(session: Session, savedCourses: List[SavedCourse]): Session

Change the saved course list in session

Change the saved course list in session

Value parameters:
savedCourses

the new saved course list

Returns:

a Session