|
WorldSim
inDev
2D tile-based sandbox RPG with procedurally generated fantasy world simulator 🌏
|
#include <Stockpile.hpp>


Public Member Functions | |
| Stockpile () | |
| void | add (enumResource type, int amount) |
| int | get (enumResource type) |
| bool | take (enumResource type, int amount) |
| bool | hasEnough (enumResource type, int amount) |
| void | add (enumIntermediate type, int amount) |
| int | get (enumIntermediate type) |
| bool | take (enumIntermediate type, int amount) |
| bool | hasEnough (enumIntermediate type, int amount) |
| bool | hasEnough (IntermediateRequirement requirement) |
| bool | hasEnough (Intermediate resource) |
| bool | canMake (IntermediateRequirement requirement) |
| bool | hasEnough (Resource resource) |
| bool | hasEnough (ResourceRequirement requirement) |
| bool | canMake (ResourceRequirement requirement) |
| bool | canMake (StockpileRequirement requirement) |
| bool | deduct (IntermediateRequirement requirement) |
| bool | deduct (ResourceRequirement requirement) |
| bool | deduct (StockpileRequirement requirement) |
| void | add (Item *item) |
| void | take (Item *item) |
| int | getNumOfType (ItemType type) |
| Item * | getBestItemFor (Job job) |
| Item * | getBestItemFor (Job *job) |
| int | getNumberOfItems (ItemType type) |
| void | print () |
Public Member Functions inherited from HasMoney | |
| HasMoney () | |
| virtual void | addMoney (int _money) |
| virtual void | giveMoney (int _money) |
| virtual int | getMoney () |
| virtual bool | takeMoney (int _amount) |
| virtual int | takeMoneyUpTo (int _amount) |
Public Attributes | |
| Vector< Item * > | vItem |
| Stockpile::Stockpile | ( | ) |
| void Stockpile::add | ( | enumResource | type, |
| int | amount | ||
| ) |
| void Stockpile::add | ( | enumIntermediate | type, |
| int | amount | ||
| ) |
| void Stockpile::add | ( | Item * | item | ) |
| bool Stockpile::canMake | ( | IntermediateRequirement | requirement | ) |
| bool Stockpile::canMake | ( | ResourceRequirement | requirement | ) |
| bool Stockpile::canMake | ( | StockpileRequirement | requirement | ) |
| bool Stockpile::deduct | ( | IntermediateRequirement | requirement | ) |
| bool Stockpile::deduct | ( | ResourceRequirement | requirement | ) |
| bool Stockpile::deduct | ( | StockpileRequirement | requirement | ) |
| int Stockpile::get | ( | enumResource | type | ) |
| int Stockpile::get | ( | enumIntermediate | type | ) |
| int Stockpile::getNumberOfItems | ( | ItemType | type | ) |
| int Stockpile::getNumOfType | ( | ItemType | type | ) |
| bool Stockpile::hasEnough | ( | enumResource | type, |
| int | amount | ||
| ) |
| bool Stockpile::hasEnough | ( | enumIntermediate | type, |
| int | amount | ||
| ) |
| bool Stockpile::hasEnough | ( | IntermediateRequirement | requirement | ) |
| bool Stockpile::hasEnough | ( | Intermediate | resource | ) |
| bool Stockpile::hasEnough | ( | Resource | resource | ) |
| bool Stockpile::hasEnough | ( | ResourceRequirement | requirement | ) |
| void Stockpile::print | ( | ) |
| bool Stockpile::take | ( | enumResource | type, |
| int | amount | ||
| ) |
| bool Stockpile::take | ( | enumIntermediate | type, |
| int | amount | ||
| ) |
| void Stockpile::take | ( | Item * | item | ) |
| Vector<Item*> Stockpile::vItem |
1.8.13