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

Public Member Functions

override void UpdateMachine ()
 Called by MachineManager update coroutine. More...
 

Public Attributes

float amount
 
int speed = 1
 
int power
 
int heat
 
int cooling
 
bool powerON
 
List< string > type
 
string ID = "unassigned"
 
string currentType
 
string inputID
 
string outputID
 
string creationMethod = "built"
 
GameObject inputObject
 
GameObject outputObject
 
GameObject powerObject
 
ConduitItem conduitItem
 
Material lineMat
 
int address
 
bool hasHeatExchanger
 
GameObject connectionObject
 
int connectionAttempts
 
bool connectionFailed
 
int multipleItemIteration
 
GameObject storageComputerConduitItemObject
 
ConduitItem storageComputerConduitItem
 
PowerReceiver powerReceiver
 

Private Member Functions

void Start ()
 Called by unity engine on start up to initialize variables. More...
 
void OnDestroy ()
 Used to remove line renderers and conduit item sprites when the machine is destroyed. More...
 
void UpdatePowerReceiver ()
 Gets power values from power receiver. More...
 
bool IsValidOutputConduit (GameObject obj)
 The object is a potential output connection. More...
 
bool IsStorageContainer (GameObject obj)
 Returns true if the object in question is a storage container. More...
 
void FindInputObject ()
 Connects the retriever to an inventory manager for input and a conduit for output. More...
 
void FindOutputObject ()
 Connects the retriever to an inventory manager for input and a conduit for output. More...
 
void RetrieveItems ()
 Retrieves items. More...
 
void RetrieveFromStorageContainer ()
 Retrieves items from storage containers. More...
 
void CheckForRailCart ()
 Checks if there is a rail cart near the retreiver. More...
 
void RetrieveFromStorageComputer ()
 Retrieves items from storage computers. More...
 

Private Attributes

LineRenderer connectionLine
 
LineRenderer inputLine
 
bool retrievingIce
 
int warmup
 
GameObject spawnedConnection
 
InventoryManager storageComputerInventoryManager
 
GameObject builtObjects
 
StateManager stateManager
 
int findRailCartsInterval
 

Member Function Documentation

◆ CheckForRailCart()

void Retriever.CheckForRailCart ( )
inlineprivate

Checks if there is a rail cart near the retreiver.

◆ FindInputObject()

void Retriever.FindInputObject ( )
inlineprivate

Connects the retriever to an inventory manager for input and a conduit for output.

◆ FindOutputObject()

void Retriever.FindOutputObject ( )
inlineprivate

Connects the retriever to an inventory manager for input and a conduit for output.

◆ IsStorageContainer()

bool Retriever.IsStorageContainer ( GameObject  obj)
inlineprivate

Returns true if the object in question is a storage container.

◆ IsValidOutputConduit()

bool Retriever.IsValidOutputConduit ( GameObject  obj)
inlineprivate

The object is a potential output connection.

◆ OnDestroy()

void Retriever.OnDestroy ( )
inlineprivate

Used to remove line renderers and conduit item sprites when the machine is destroyed.

◆ RetrieveFromStorageComputer()

void Retriever.RetrieveFromStorageComputer ( )
inlineprivate

Retrieves items from storage computers.

◆ RetrieveFromStorageContainer()

void Retriever.RetrieveFromStorageContainer ( )
inlineprivate

Retrieves items from storage containers.

◆ RetrieveItems()

void Retriever.RetrieveItems ( )
inlineprivate

Retrieves items.

◆ Start()

void Retriever.Start ( )
inlineprivate

Called by unity engine on start up to initialize variables.

◆ UpdateMachine()

override void Retriever.UpdateMachine ( )
inlinevirtual

Called by MachineManager update coroutine.

Reimplemented from Machine.

◆ UpdatePowerReceiver()

void Retriever.UpdatePowerReceiver ( )
inlineprivate

Gets power values from power receiver.

Member Data Documentation

◆ address

int Retriever.address

◆ amount

float Retriever.amount

◆ builtObjects

GameObject Retriever.builtObjects
private

◆ conduitItem

ConduitItem Retriever.conduitItem

◆ connectionAttempts

int Retriever.connectionAttempts

◆ connectionFailed

bool Retriever.connectionFailed

◆ connectionLine

LineRenderer Retriever.connectionLine
private

◆ connectionObject

GameObject Retriever.connectionObject

◆ cooling

int Retriever.cooling

◆ creationMethod

string Retriever.creationMethod = "built"

◆ currentType

string Retriever.currentType

◆ findRailCartsInterval

int Retriever.findRailCartsInterval
private

◆ hasHeatExchanger

bool Retriever.hasHeatExchanger

◆ heat

int Retriever.heat

◆ ID

string Retriever.ID = "unassigned"

◆ inputID

string Retriever.inputID

◆ inputLine

LineRenderer Retriever.inputLine
private

◆ inputObject

GameObject Retriever.inputObject

◆ lineMat

Material Retriever.lineMat

◆ multipleItemIteration

int Retriever.multipleItemIteration

◆ outputID

string Retriever.outputID

◆ outputObject

GameObject Retriever.outputObject

◆ power

int Retriever.power

◆ powerObject

GameObject Retriever.powerObject

◆ powerON

bool Retriever.powerON

◆ powerReceiver

PowerReceiver Retriever.powerReceiver

◆ retrievingIce

bool Retriever.retrievingIce
private

◆ spawnedConnection

GameObject Retriever.spawnedConnection
private

◆ speed

int Retriever.speed = 1

◆ stateManager

StateManager Retriever.stateManager
private

◆ storageComputerConduitItem

ConduitItem Retriever.storageComputerConduitItem

◆ storageComputerConduitItemObject

GameObject Retriever.storageComputerConduitItemObject

◆ storageComputerInventoryManager

InventoryManager Retriever.storageComputerInventoryManager
private

◆ type

List<string> Retriever.type

◆ warmup

int Retriever.warmup
private

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