Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
List of all members
cqsp::common::components::ResourceStockpile Struct Reference

#include <resource.h>

Inheritance diagram for cqsp::common::components::ResourceStockpile:
cqsp::common::components::ResourceLedger

Additional Inherited Members

- Public Member Functions inherited from cqsp::common::components::ResourceLedger
 ResourceLedger ()=default
 
 ~ResourceLedger ()=default
 
double operator[] (const entt::entity) const
 
bool EnoughToTransfer (const ResourceLedger &amount)
 This resource ledger has enough resources inside to transfer "amount" amount of resources away More...
 
void operator-= (const ResourceLedger &)
 
void operator+= (const ResourceLedger &)
 
void operator*= (const ResourceLedger &)
 
void operator/= (const ResourceLedger &)
 
void operator-= (const double value)
 
void operator+= (const double value)
 
void operator*= (const double value)
 
void operator/= (const double value)
 
ResourceLedger operator- (const ResourceLedger &) const
 
ResourceLedger operator+ (const ResourceLedger &) const
 
ResourceLedger operator* (const ResourceLedger &) const
 
ResourceLedger operator/ (const ResourceLedger &) const
 
ResourceLedger operator- (const double value) const
 
ResourceLedger operator+ (const double value) const
 
ResourceLedger operator* (const double value) const
 
ResourceLedger operator/ (const double value) const
 
bool operator< (const ResourceLedger &)
 All resources in this ledger are smaller than than the other ledger More...
 
bool operator> (const ResourceLedger &)
 All resources in this ledger are greater than the other ledger More...
 
bool operator<= (const ResourceLedger &)
 All resources in this ledger are smaller than or equal to than the other ledger More...
 
bool operator>= (const ResourceLedger &)
 All resources in this ledger are greater than or equal to the other ledger More...
 
bool LedgerEquals (const ResourceLedger &)
 
bool operator> (const double &)
 All resources in this ledger are greater than the number More...
 
bool operator< (const double &)
 All resources in this ledger are less than than the number More...
 
bool operator== (const double &)
 
bool operator<= (const double &)
 
bool operator>= (const double &)
 
void AssignFrom (const ResourceLedger &)
 
void TransferTo (ResourceLedger &, const ResourceLedger &)
 
void MultiplyAdd (const ResourceLedger &, double)
 
void RemoveResourcesLimited (const ResourceLedger &)
 Removes the resources, and if the amount of resources removed are more than the resources inside the stockpile, it will set that resource to zero. More...
 
ResourceLedger LimitedRemoveResources (const ResourceLedger &)
 Same as RemoveResourcesLimited, except that it returns how much resources it took out. More...
 
ResourceLedger UnitLeger (const double)
 Returns a copy of the vector with the values set to indicated value More...
 
ResourceLedger Clamp (const double, const double)
 Returns a copy of the vector with the values clamped between the min and max indicated More...
 
ResourceLedger SafeDivision (const ResourceLedger &)
 Returns a copy of the vector divided by the indicated vector, with division by zero resulting in infiniy More...
 
double Average ()
 Returns a copy of the vector divided by the indicated vector, with division by zero resulting in infiniy More...
 
double Min ()
 Finds the smallest value in the Ledger. More...
 
double Max ()
 Finds the largest value in the Ledger. More...
 
bool HasAllResources (const ResourceLedger &)
 Checks if this current resource ledger has any resources in this list More...
 
bool HasGood (entt::entity good)
 
double GetSum ()
 
double MultiplyAndGetSum (ResourceLedger &other)
 Multiplies the numbers stated in the resource ledger. Used for calculating the price, becuase usually the resource ledger will be the price. More...
 
std::string to_string ()
 

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