C# Class Game.Minigames

List of properties of all minigames.
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: BrainProject/UnityTemp

Méthodes publiques

Méthode Description
GetMinigame ( string minigameName ) : MinigameProperties
GetMinigamesWithHelp ( ) : List
GetPlayed ( string minigameName ) : bool
IsWithHelp ( string minigameName ) : bool
ResetStatistics ( ) : void
SetPlayed ( string minigameName, int diff ) : void

Sets the minigame status to "played". Should be called from individual mini-games when gameProps itself starts...

SetPlayedWithHelp ( string minigameName ) : void

Sets the "played" flag to true in order the minigame help doesn't show up on startup anymore.

SetSuccessfullyPlayed ( string minigameName, int diff ) : void
Start ( ) : void
add ( MinigameProperties newgame ) : void
printStatisticsToFile ( ) : void

Private Methods

Méthode Description
loadConfigurationsfromFile ( ) : void

Method Details

GetMinigame() public méthode

public GetMinigame ( string minigameName ) : MinigameProperties
minigameName string
Résultat MinigameProperties

GetMinigamesWithHelp() public méthode

public GetMinigamesWithHelp ( ) : List
Résultat List

GetPlayed() public méthode

public GetPlayed ( string minigameName ) : bool
minigameName string
Résultat bool

IsWithHelp() public méthode

public IsWithHelp ( string minigameName ) : bool
minigameName string
Résultat bool

ResetStatistics() public méthode

public ResetStatistics ( ) : void
Résultat void

SetPlayed() public méthode

Sets the minigame status to "played". Should be called from individual mini-games when gameProps itself starts...
public SetPlayed ( string minigameName, int diff ) : void
minigameName string name of minigame
diff int difficulty
Résultat void

SetPlayedWithHelp() public méthode

Sets the "played" flag to true in order the minigame help doesn't show up on startup anymore.
public SetPlayedWithHelp ( string minigameName ) : void
minigameName string Minigame name.
Résultat void

SetSuccessfullyPlayed() public méthode

public SetSuccessfullyPlayed ( string minigameName, int diff ) : void
minigameName string
diff int
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

add() public méthode

public add ( MinigameProperties newgame ) : void
newgame MinigameProperties
Résultat void

printStatisticsToFile() public méthode

public printStatisticsToFile ( ) : void
Résultat void