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

Public Member Functions

override void UpdateMachine ()
 Called by MachineManager update coroutine. More...
 
void OnDestroy ()
 Used to remove the connection line renderer when the block is destroyed. More...
 

Public Attributes

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

Private Member Functions

void Start ()
 Called by unity engine on start up to initialize variables. More...
 
bool IsValidObject (GameObject obj)
 The object exists, is active and is not a standard building block. More...
 
void FindDarkMatter ()
 Finds a dark matter source node to harvest. More...
 
void UpdatePowerReceiver ()
 Gets power values from power receiver. More...
 

Private Attributes

LineRenderer connectionLine
 
LineRenderer inputLine
 
int machineTimer
 
GameObject builtObjects
 
StateManager stateManager
 

Member Function Documentation

◆ FindDarkMatter()

void DarkMatterCollector.FindDarkMatter ( )
inlineprivate

Finds a dark matter source node to harvest.

◆ IsValidObject()

bool DarkMatterCollector.IsValidObject ( GameObject  obj)
inlineprivate

The object exists, is active and is not a standard building block.

◆ OnDestroy()

void DarkMatterCollector.OnDestroy ( )
inline

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

◆ Start()

void DarkMatterCollector.Start ( )
inlineprivate

Called by unity engine on start up to initialize variables.

◆ UpdateMachine()

override void DarkMatterCollector.UpdateMachine ( )
inlinevirtual

Called by MachineManager update coroutine.

Reimplemented from Machine.

◆ UpdatePowerReceiver()

void DarkMatterCollector.UpdatePowerReceiver ( )
inlineprivate

Gets power values from power receiver.

Member Data Documentation

◆ address

int DarkMatterCollector.address

◆ builtObjects

GameObject DarkMatterCollector.builtObjects
private

◆ conduitItem

ConduitItem DarkMatterCollector.conduitItem

◆ connectionAttempts

int DarkMatterCollector.connectionAttempts

◆ connectionFailed

bool DarkMatterCollector.connectionFailed

◆ connectionLine

LineRenderer DarkMatterCollector.connectionLine
private

◆ cooling

int DarkMatterCollector.cooling

◆ creationMethod

string DarkMatterCollector.creationMethod = "built"

◆ darkMatterAmount

float DarkMatterCollector.darkMatterAmount

◆ foundDarkMatter

bool DarkMatterCollector.foundDarkMatter

◆ hasHeatExchanger

bool DarkMatterCollector.hasHeatExchanger

◆ heat

int DarkMatterCollector.heat

◆ ID

string DarkMatterCollector.ID = "unassigned"

◆ inputLine

LineRenderer DarkMatterCollector.inputLine
private

◆ lineMat

Material DarkMatterCollector.lineMat

◆ machineTimer

int DarkMatterCollector.machineTimer
private

◆ outputObject

GameObject DarkMatterCollector.outputObject

◆ power

int DarkMatterCollector.power

◆ powerObject

GameObject DarkMatterCollector.powerObject

◆ powerON

bool DarkMatterCollector.powerON

◆ powerReceiver

PowerReceiver DarkMatterCollector.powerReceiver

◆ speed

int DarkMatterCollector.speed = 1

◆ stateManager

StateManager DarkMatterCollector.stateManager
private

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