Quantum Engineering
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
AlloySmelter Class Reference
Inheritance diagram for AlloySmelter:
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...
 

Public Attributes

int speed = 1
 
string ID = "unassigned"
 
string creationMethod = "built"
 
int power
 
int heat
 
int cooling
 
float amount
 
float amount2
 
float outputAmount
 
string inputType1
 
string inputType2
 
string outputType
 
string inputID1
 
string inputID2
 
string outputID
 
PowerReceiver powerReceiver
 
GameObject fireObject
 
GameObject inputObject1
 
GameObject inputObject2
 
GameObject outputObject
 
GameObject powerObject
 
ConduitItem conduitItem
 
Material lineMat
 
bool hasHeatExchanger
 
bool powerON
 
bool connectionFailed
 
int address
 
int connectionAttempts
 

Private Member Functions

bool IsValidOutputObject (GameObject obj)
 The object is a potential output connection. More...
 
void GetOutputConduit ()
 Finds a universal conduit to use as an output. More...
 
void SmeltAlloy ()
 Consumes input items and produces an item for output. More...
 
void OutputToConduit ()
 Items are moved to output conduit, sounds and special effects are created. More...
 
void UpdatePowerReceiver ()
 Gets power values from power receiver. More...
 

Private Attributes

LineRenderer connectionLine
 
int machineTimer
 
int warmup
 
GameObject builtObjects
 
StateManager stateManager
 

Member Function Documentation

◆ GetOutputConduit()

void AlloySmelter.GetOutputConduit ( )
inlineprivate

Finds a universal conduit to use as an output.

◆ IsValidOutputObject()

bool AlloySmelter.IsValidOutputObject ( GameObject  obj)
inlineprivate

The object is a potential output connection.

◆ OutputToConduit()

void AlloySmelter.OutputToConduit ( )
inlineprivate

Items are moved to output conduit, sounds and special effects are created.

◆ SmeltAlloy()

void AlloySmelter.SmeltAlloy ( )
inlineprivate

Consumes input items and produces an item for output.

◆ Start()

void AlloySmelter.Start ( )
inline

Called by unity engine on start up to initialize variables.

◆ UpdateMachine()

override void AlloySmelter.UpdateMachine ( )
inlinevirtual

Called by MachineManager update coroutine.

Reimplemented from Machine.

◆ UpdatePowerReceiver()

void AlloySmelter.UpdatePowerReceiver ( )
inlineprivate

Gets power values from power receiver.

Member Data Documentation

◆ address

int AlloySmelter.address

◆ amount

float AlloySmelter.amount

◆ amount2

float AlloySmelter.amount2

◆ builtObjects

GameObject AlloySmelter.builtObjects
private

◆ conduitItem

ConduitItem AlloySmelter.conduitItem

◆ connectionAttempts

int AlloySmelter.connectionAttempts

◆ connectionFailed

bool AlloySmelter.connectionFailed

◆ connectionLine

LineRenderer AlloySmelter.connectionLine
private

◆ cooling

int AlloySmelter.cooling

◆ creationMethod

string AlloySmelter.creationMethod = "built"

◆ fireObject

GameObject AlloySmelter.fireObject

◆ hasHeatExchanger

bool AlloySmelter.hasHeatExchanger

◆ heat

int AlloySmelter.heat

◆ ID

string AlloySmelter.ID = "unassigned"

◆ inputID1

string AlloySmelter.inputID1

◆ inputID2

string AlloySmelter.inputID2

◆ inputObject1

GameObject AlloySmelter.inputObject1

◆ inputObject2

GameObject AlloySmelter.inputObject2

◆ inputType1

string AlloySmelter.inputType1

◆ inputType2

string AlloySmelter.inputType2

◆ lineMat

Material AlloySmelter.lineMat

◆ machineTimer

int AlloySmelter.machineTimer
private

◆ outputAmount

float AlloySmelter.outputAmount

◆ outputID

string AlloySmelter.outputID

◆ outputObject

GameObject AlloySmelter.outputObject

◆ outputType

string AlloySmelter.outputType

◆ power

int AlloySmelter.power

◆ powerObject

GameObject AlloySmelter.powerObject

◆ powerON

bool AlloySmelter.powerON

◆ powerReceiver

PowerReceiver AlloySmelter.powerReceiver

◆ speed

int AlloySmelter.speed = 1

◆ stateManager

StateManager AlloySmelter.stateManager
private

◆ warmup

int AlloySmelter.warmup
private

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