#include <containerbase-functions.h>
Inheritance diagram for MiningStation:

Public Member Functions | |
| MiningStation (ContainerBase *_bld, bool justQuery_) | |
| virtual bool | finished () |
| virtual bool | run () |
| virtual Resources | getPlus () |
| virtual Resources | getUsage () |
Protected Member Functions | |
| void | testfield (const MapCoordinate &mc) |
Definition at line 110 of file containerbase-functions.h.
| MiningStation::MiningStation | ( | ContainerBase * | _bld, | |
| bool | justQuery_ | |||
| ) |
Definition at line 602 of file containerbase-functions.cpp.
References ContainerBase::baseType, fatalError(), ContainerBaseType::id, ContainerBase::plus, Resources::resource(), run(), and strrr().
| void MiningStation::testfield | ( | const MapCoordinate & | mc | ) | [protected, virtual] |
Implements SearchFields.
Definition at line 681 of file containerbase-functions.cpp.
References SearchFields::cancelSearch, SearchFields::dist, MapField::fuel, SearchFields::gamemap, GameMap::getField(), getminingstationeficency(), ContainerBase::getOwner(), MapField::material, min(), Resources::resource(), resource_fuel_factor, resource_material_factor, MapField::resourceview, and warningMessage().
| bool MiningStation::finished | ( | ) | [virtual] |
Implements ContainerBase::Work.
Definition at line 763 of file containerbase-functions.cpp.
References Resources::resource().
| bool MiningStation::run | ( | ) | [virtual] |
Implements ContainerBase::Work.
Definition at line 629 of file containerbase-functions.cpp.
References ContainerBase::getOwner(), ContainerBase::getPosition(), ContainerBase::getResource(), SearchFields::initsearch(), maxminingrange, ContainerBase::plus, ContainerBase::putResource(), Resources::resource(), resourceNames, SearchFields::startsearch(), and warningMessage().
Referenced by MiningStation().
| Resources MiningStation::getPlus | ( | ) | [virtual] |
Implements ContainerBase::Work.
Definition at line 771 of file containerbase-functions.cpp.
Referenced by MiningWindow::getOutput(), and viewMiningPower().
| Resources MiningStation::getUsage | ( | ) | [virtual] |
Implements ContainerBase::Work.
Definition at line 776 of file containerbase-functions.cpp.
References Resources::resource().
Referenced by MiningWindow::getOutput().
1.5.1