|
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.
|
#include <resource.h>
Additional Inherited Members | |
Public Member Functions inherited from cqsp::core::components::ResourceMap | |
| ResourceMap ()=default | |
| ~ResourceMap ()=default | |
| double | operator[] (const GoodEntity) const |
| bool | EnoughToTransfer (const ResourceMap &amount) |
| This resource ledger has enough resources inside to transfer "amount" amount of resources away More... | |
| void | operator-= (const ResourceMap &) |
| void | operator+= (const ResourceMap &) |
| void | operator*= (const ResourceMap &) |
| void | operator/= (const ResourceMap &) |
| 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) |
| ResourceMap | operator- (const ResourceMap &) const |
| ResourceMap | operator+ (const ResourceMap &) const |
| ResourceMap | operator* (const ResourceMap &) const |
| ResourceMap | operator/ (const ResourceMap &) const |
| ResourceMap | operator- (const double value) const |
| ResourceMap | operator+ (const double value) const |
| ResourceMap | operator* (const double value) const |
| ResourceMap | operator/ (const double value) const |
| bool | operator< (const ResourceMap &) |
| All resources in this ledger are smaller than than the other ledger More... | |
| bool | operator> (const ResourceMap &) |
| All resources in this ledger are greater than the other ledger More... | |
| bool | operator<= (const ResourceMap &) |
| All resources in this ledger are smaller than or equal to than the other ledger More... | |
| bool | operator>= (const ResourceMap &) |
| All resources in this ledger are greater than or equal to the other ledger More... | |
| bool | LedgerEquals (const ResourceMap &) |
| 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 ResourceMap &) |
| void | TransferTo (ResourceMap &, const ResourceMap &) |
| void | MultiplyAdd (const ResourceMap &, double) |
| void | RemoveResourcesLimited (const ResourceMap &) |
| 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... | |
| ResourceMap | LimitedRemoveResources (const ResourceMap &) |
| Same as RemoveResourcesLimited, except that it returns how much resources it took out. More... | |
| ResourceMap | UnitLedger (const double) |
| Returns a copy of the vector with the values set to indicated value More... | |
| void | AddPositive (const ResourceMap &) |
| void | AddNegative (const ResourceMap &) |
| ResourceMap | Clamp (const double, const double) |
| Returns a copy of the vector with the values clamped between the min and max indicated More... | |
| ResourceMap | SafeDivision (const ResourceMap &) |
| Returns a copy of the vector divided by the indicated vector, with division by zero resulting in infiniy More... | |
| ResourceMap | SafeDivision (const ResourceMap &, double) |
| Returns a copy of the vector divided by the indicated vector, with division by zero resulting in the specified value 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 ResourceMap &) |
| Checks if this current resource ledger has any resources in this list More... | |
| bool | HasGood (GoodEntity good) |
| double | GetSum () |
| double | MultiplyAndGetSum (ResourceMap &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 () |