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

Public Member Functions

void Start ()
 Called by unity engine on start up to initialize variables. More...
 
override void UpdateMachine ()
 Called by MachineManager update coroutine. More...
 
void OnDestroy ()
 Used to notify attached machines when the heat exchanger is destroyed. More...
 

Public Attributes

string ID = "unassigned"
 
string inputID
 
string inputType
 
int speed = 1
 
float amount
 
bool providingCooling
 
GameObject inputObject
 
Material lineMat
 
string creationMethod = "built"
 
GameObject outputObject
 
string outputID
 
int address
 
int connectionAttempts
 
bool connectionFailed
 

Private Member Functions

void AttemptConnection (GameObject obj)
 Connects to the nearest compatible object. More...
 
void SetOutputID ()
 Sets the heat exchanger's output ID to the output object's ID. More...
 
void DoWork ()
 Overall operation of the heat exchanger. More...
 

Private Attributes

LineRenderer connectionLine
 
int machineTimer
 
GameObject builtObjects
 
StateManager stateManager
 

Member Function Documentation

◆ AttemptConnection()

void HeatExchanger.AttemptConnection ( GameObject  obj)
inlineprivate

Connects to the nearest compatible object.

◆ DoWork()

void HeatExchanger.DoWork ( )
inlineprivate

Overall operation of the heat exchanger.

◆ OnDestroy()

void HeatExchanger.OnDestroy ( )
inline

Used to notify attached machines when the heat exchanger is destroyed.

◆ SetOutputID()

void HeatExchanger.SetOutputID ( )
inlineprivate

Sets the heat exchanger's output ID to the output object's ID.

◆ Start()

void HeatExchanger.Start ( )
inline

Called by unity engine on start up to initialize variables.

◆ UpdateMachine()

override void HeatExchanger.UpdateMachine ( )
inlinevirtual

Called by MachineManager update coroutine.

Reimplemented from Machine.

Member Data Documentation

◆ address

int HeatExchanger.address

◆ amount

float HeatExchanger.amount

◆ builtObjects

GameObject HeatExchanger.builtObjects
private

◆ connectionAttempts

int HeatExchanger.connectionAttempts

◆ connectionFailed

bool HeatExchanger.connectionFailed

◆ connectionLine

LineRenderer HeatExchanger.connectionLine
private

◆ creationMethod

string HeatExchanger.creationMethod = "built"

◆ ID

string HeatExchanger.ID = "unassigned"

◆ inputID

string HeatExchanger.inputID

◆ inputObject

GameObject HeatExchanger.inputObject

◆ inputType

string HeatExchanger.inputType

◆ lineMat

Material HeatExchanger.lineMat

◆ machineTimer

int HeatExchanger.machineTimer
private

◆ outputID

string HeatExchanger.outputID

◆ outputObject

GameObject HeatExchanger.outputObject

◆ providingCooling

bool HeatExchanger.providingCooling

◆ speed

int HeatExchanger.speed = 1

◆ stateManager

StateManager HeatExchanger.stateManager
private

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