Quantum Engineering
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
Rocket Class Reference
Inheritance diagram for Rocket:

Public Member Functions

void Start ()
 Called by unity engine on start up to initialize variables. More...
 
void Update ()
 Called once per frame by unity engine. More...
 

Public Attributes

GameObject exhaust
 
int payloadRequired = 25
 
int day = 1
 
bool landed
 
float gameTime
 
bool rocketRequested
 

Private Member Functions

void Init ()
 Initializes variables when the world is loaded. More...
 
void CheckCargo ()
 Checks the cargo of the rocket for the required amount of dark matter. More...
 
void EndOfDay ()
 Called at the end of a day to increase the payload required for the next day. More...
 
void Reset ()
 Resets the rocket when it leaves the area, disabling all sounds and rendering and clearing the inventory. More...
 
void Ascend ()
 Moves the rocket in the positive Y direction. More...
 
void Descend ()
 Moves the rocket in the negative Y direction. More...
 
void ClearInventory ()
 Empty the rocket's inventory. More...
 
void DisableRenderers ()
 Disable all renderers attached to the rocket, so it is no longer visible. More...
 
void EnableRenderers ()
 Enabled all renderers attached to the rocket, making it visible. More...
 

Private Attributes

bool ascending
 
bool visible
 
float liftOffTimer
 
PlayerController player
 
bool initialized
 

Member Function Documentation

◆ Ascend()

void Rocket.Ascend ( )
inlineprivate

Moves the rocket in the positive Y direction.

◆ CheckCargo()

void Rocket.CheckCargo ( )
inlineprivate

Checks the cargo of the rocket for the required amount of dark matter.

◆ ClearInventory()

void Rocket.ClearInventory ( )
inlineprivate

Empty the rocket's inventory.

◆ Descend()

void Rocket.Descend ( )
inlineprivate

Moves the rocket in the negative Y direction.

◆ DisableRenderers()

void Rocket.DisableRenderers ( )
inlineprivate

Disable all renderers attached to the rocket, so it is no longer visible.

◆ EnableRenderers()

void Rocket.EnableRenderers ( )
inlineprivate

Enabled all renderers attached to the rocket, making it visible.

◆ EndOfDay()

void Rocket.EndOfDay ( )
inlineprivate

Called at the end of a day to increase the payload required for the next day.

◆ Init()

void Rocket.Init ( )
inlineprivate

Initializes variables when the world is loaded.

◆ Reset()

void Rocket.Reset ( )
inlineprivate

Resets the rocket when it leaves the area, disabling all sounds and rendering and clearing the inventory.

◆ Start()

void Rocket.Start ( )
inline

Called by unity engine on start up to initialize variables.

◆ Update()

void Rocket.Update ( )
inline

Called once per frame by unity engine.

Member Data Documentation

◆ ascending

bool Rocket.ascending
private

◆ day

int Rocket.day = 1

◆ exhaust

GameObject Rocket.exhaust

◆ gameTime

float Rocket.gameTime

◆ initialized

bool Rocket.initialized
private

◆ landed

bool Rocket.landed

◆ liftOffTimer

float Rocket.liftOffTimer
private

◆ payloadRequired

int Rocket.payloadRequired = 25

◆ player

PlayerController Rocket.player
private

◆ rocketRequested

bool Rocket.rocketRequested

◆ visible

bool Rocket.visible
private

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