uLua v3.1.0
A Lua Modding Framework for Unity.
uLua.PaddleGame.GameSettings Class Reference

Class which keeps track of various game settings. More...

Public Member Functions

void AddScore (int Number)
 Increments player score. More...
 
void AddLevel (int Number=1)
 Increments the game level. More...
 
void AddLife (int Number=1)
 Increments player lives. More...
 
void Reset ()
 Resets the settings and updates the high score. More...
 

Public Attributes

int Level = 0
 Keeps track of the current level.
 
int Lives = 0
 Keeps track of remaining lives.
 
int Score = 0
 Keeps track of the player score.
 
int HighScore = 0
 Keeps track of the player high score.
 
int MaximumLevel = 0
 Indicates the maximum game level.
 
float Delay = 0f
 Delay before the ball is set in motion (in seconds).
 
float SpeedIncrement = 0f
 Ball/Paddle speed increment per level.
 
float ColorMultiplier = 0f
 Multiplier to adjust the brick color intensity.
 

Properties

float TotalSpeedIncrement [get]
 The total speed increment based on the current level. More...
 

Detailed Description

Class which keeps track of various game settings.

All public members of this class are exposed to Lua. Inherits from uLua.ExposedClass.

Member Function Documentation

◆ AddLevel()

void uLua.PaddleGame.GameSettings.AddLevel ( int  Number = 1)
inline

Increments the game level.

This method is exposed to the API. Invokes a UIUpdate event.

Parameters
Number(Optional) The number of levels to add. Defaults to 1.

◆ AddLife()

void uLua.PaddleGame.GameSettings.AddLife ( int  Number = 1)
inline

Increments player lives.

This method is exposed to the API. Invokes a UIUpdate event.

Parameters
Number(Optional) The number of lives to add. Defaults to 1.

◆ AddScore()

void uLua.PaddleGame.GameSettings.AddScore ( int  Number)
inline

Increments player score.

This method is exposed to the API. Invokes a UIUpdate event.

Parameters
NumberThe number to be added to the score.

◆ Reset()

void uLua.PaddleGame.GameSettings.Reset ( )
inline

Resets the settings and updates the high score.

This method is exposed to the API. Invokes a UIUpdate event.

Property Documentation

◆ TotalSpeedIncrement

float uLua.PaddleGame.GameSettings.TotalSpeedIncrement
get

The total speed increment based on the current level.

This property is exposed to the API.