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

Public Member Functions

void Start ()
 Called by unity engine on start up to initialize variables. More...
 
void OnDestroy ()
 Used to remove the connection line renderer when the block is destroyed. More...
 
override void UpdateMachine ()
 Called by MachineManager update coroutine. More...
 

Public Attributes

float amount
 
int speed = 1
 
int heat
 
int cooling
 
bool hasHeatExchanger
 
int power
 
string type
 
GameObject outputObject
 
GameObject powerObject
 
ConduitItem conduitItem
 
Material lineMat
 
string ID = "unassigned"
 
string creationMethod = "built"
 
int address
 
bool powerON
 
int connectionAttempts
 
bool connectionFailed
 
PowerReceiver powerReceiver
 

Private Member Functions

bool IsValidResource (GameObject obj)
 The object exists, is active and is a resource node. More...
 
void UpdatePowerReceiver ()
 Gets power values from power receiver. More...
 

Private Attributes

int machineTimer
 
int warmup
 
GameObject inputObject
 
LineRenderer connectionLine
 
LineRenderer inputLine
 
bool extractingIce
 
bool hasResource
 
StateManager stateManager
 
GameObject builtObjects
 

Member Function Documentation

◆ IsValidResource()

bool UniversalExtractor.IsValidResource ( GameObject  obj)
inlineprivate

The object exists, is active and is a resource node.

◆ OnDestroy()

void UniversalExtractor.OnDestroy ( )
inline

Used to remove the connection line renderer when the block is destroyed.

◆ Start()

void UniversalExtractor.Start ( )
inline

Called by unity engine on start up to initialize variables.

◆ UpdateMachine()

override void UniversalExtractor.UpdateMachine ( )
inlinevirtual

Called by MachineManager update coroutine.

Reimplemented from Machine.

◆ UpdatePowerReceiver()

void UniversalExtractor.UpdatePowerReceiver ( )
inlineprivate

Gets power values from power receiver.

Member Data Documentation

◆ address

int UniversalExtractor.address

◆ amount

float UniversalExtractor.amount

◆ builtObjects

GameObject UniversalExtractor.builtObjects
private

◆ conduitItem

ConduitItem UniversalExtractor.conduitItem

◆ connectionAttempts

int UniversalExtractor.connectionAttempts

◆ connectionFailed

bool UniversalExtractor.connectionFailed

◆ connectionLine

LineRenderer UniversalExtractor.connectionLine
private

◆ cooling

int UniversalExtractor.cooling

◆ creationMethod

string UniversalExtractor.creationMethod = "built"

◆ extractingIce

bool UniversalExtractor.extractingIce
private

◆ hasHeatExchanger

bool UniversalExtractor.hasHeatExchanger

◆ hasResource

bool UniversalExtractor.hasResource
private

◆ heat

int UniversalExtractor.heat

◆ ID

string UniversalExtractor.ID = "unassigned"

◆ inputLine

LineRenderer UniversalExtractor.inputLine
private

◆ inputObject

GameObject UniversalExtractor.inputObject
private

◆ lineMat

Material UniversalExtractor.lineMat

◆ machineTimer

int UniversalExtractor.machineTimer
private

◆ outputObject

GameObject UniversalExtractor.outputObject

◆ power

int UniversalExtractor.power

◆ powerObject

GameObject UniversalExtractor.powerObject

◆ powerON

bool UniversalExtractor.powerON

◆ powerReceiver

PowerReceiver UniversalExtractor.powerReceiver

◆ speed

int UniversalExtractor.speed = 1

◆ stateManager

StateManager UniversalExtractor.stateManager
private

◆ type

string UniversalExtractor.type

◆ warmup

int UniversalExtractor.warmup
private

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