Unity and Flutter apps Home Page
Work to create apps for generating revenue
Loading...
Searching...
No Matches
Managers.GamePlayManager Class Reference

Creates a single instance GamePlayManager controlling GameStatus. More...

Inheritance diagram for Managers.GamePlayManager:

Public Member Functions

GameStatus GetGameStatus ()
 Returns the GameStatus.
void Start ()
 Start the GamePlayManager in the GameStatus.Started = false state.
void InitGame (GameDifficulty pGameDifficulty)
 Initializes the GameStatus of the game according to GameDifficulty parameter And informs subscribers of the state change.
int RemoveLife ()
 Removes a life from GameStatus and returns the number of lives remaining.
int GetLives ()
 Get the number of lives left.
bool AnyLivesLeft ()
 Are any lives remaining.
void UpdateTimers ()
 Updates the time remaining Tells subscribers if the GameStatus has changed If out of time it causes the WinLoseMenu to be displayed.
GameDifficulty GetGameDifficulty ()
 Get GameDifficulty.

Public Attributes

GameStatus GameStatus

Properties

static GamePlayManager Singleton [get, set]
 Returns the Singleton instance of GamePlayManager.

Detailed Description

Creates a single instance GamePlayManager controlling GameStatus.

Member Function Documentation

◆ AnyLivesLeft()

bool Managers.GamePlayManager.AnyLivesLeft ( )

Are any lives remaining.

Returns
bool

◆ GetGameDifficulty()

GameDifficulty Managers.GamePlayManager.GetGameDifficulty ( )

◆ GetGameStatus()

GameStatus Managers.GamePlayManager.GetGameStatus ( )

Returns the GameStatus.

Returns
GameStatus

◆ GetLives()

int Managers.GamePlayManager.GetLives ( )

Get the number of lives left.

Returns
int

◆ InitGame()

void Managers.GamePlayManager.InitGame ( GameDifficulty pGameDifficulty)

Initializes the GameStatus of the game according to GameDifficulty parameter And informs subscribers of the state change.

Parameters
pGameDifficultyGameDifficulty

◆ RemoveLife()

int Managers.GamePlayManager.RemoveLife ( )

Removes a life from GameStatus and returns the number of lives remaining.

Returns
int

◆ Start()

void Managers.GamePlayManager.Start ( )

Start the GamePlayManager in the GameStatus.Started = false state.

◆ UpdateTimers()

void Managers.GamePlayManager.UpdateTimers ( )

Updates the time remaining Tells subscribers if the GameStatus has changed If out of time it causes the WinLoseMenu to be displayed.

Member Data Documentation

◆ GameStatus

GameStatus Managers.GamePlayManager.GameStatus

Property Documentation

◆ Singleton

GamePlayManager Managers.GamePlayManager.Singleton
staticgetset

Returns the Singleton instance of GamePlayManager.

Returns
GamePlayManager

The documentation for this class was generated from the following file: