Корабът Радецки - Eight ball pool v 1.0
The documnetation for our physics-themed project.
GameManager Namespace Reference

Classes

struct  GameState
 

Enumerations

enum  Scene { MAIN_MENU = 0 , SETTINGS_MENU = 1 , IN_GAME = 2 }
 
enum  Turn { SMALL_BALL = 0 , BIG_BALL = 1 }
 

Functions

void DrawColliders ()
 
void ReinitializeScene ()
 
void Initialize ()
 Initializes the program. More...
 
void ChangeScene (Scene scene)
 An API function, which changes the current scene. More...
 
void Quit ()
 An API function, which triggers a boolean telling the program it should quit;. More...
 
void Update ()
 Steps or updates the program. More...
 
void Deinitialize ()
 Deinitializes the program. More...
 
bool ShouldQuit ()
 Similar to the WindowShouldClose() function in raylib.h. More...
 
void ToggleAudio ()
 An API function, which turns audio on or off. More...
 
bool IsAudioOn ()
 An API function which checks the game manager's last stored master volume and tells if the audio is on or not. More...
 

Variables

GameState state
 

Enumeration Type Documentation

◆ Scene

Enumerator
MAIN_MENU 
SETTINGS_MENU 
IN_GAME 

◆ Turn

Enumerator
SMALL_BALL 
BIG_BALL 

Function Documentation

◆ ChangeScene()

void GameManager::ChangeScene ( Scene  scene)

An API function, which changes the current scene.

Parameters
sceneThis describes the current scene
Note
Meant to be used at any point in the code

◆ Deinitialize()

void GameManager::Deinitialize ( )

Deinitializes the program.

Note
Meant to be used in main.cpp

◆ DrawColliders()

void GameManager::DrawColliders ( )

◆ Initialize()

void GameManager::Initialize ( )

Initializes the program.

Note
Meant to be used in main.cpp

◆ IsAudioOn()

bool GameManager::IsAudioOn ( )

An API function which checks the game manager's last stored master volume and tells if the audio is on or not.

Returns
bool

◆ Quit()

void GameManager::Quit ( )

An API function, which triggers a boolean telling the program it should quit;.

Attention
Meant to be used at any point in the code (unlike functions like initialize and deinitialize)

◆ ReinitializeScene()

void GameManager::ReinitializeScene ( )

◆ ShouldQuit()

bool GameManager::ShouldQuit ( )

Similar to the WindowShouldClose() function in raylib.h.

Note
Meant to be used in main.cpp
Returns
bool

◆ ToggleAudio()

void GameManager::ToggleAudio ( )

An API function, which turns audio on or off.

◆ Update()

void GameManager::Update ( )

Steps or updates the program.

Note
Meant to be used in main.cpp

Variable Documentation

◆ state

GameState GameManager::state