MiningStation Class Reference

#include <containerbase-functions.h>

Inheritance diagram for MiningStation:

Inheritance graph
[legend]
List of all members.

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)

Detailed Description

Definition at line 110 of file containerbase-functions.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:04 2012 for Advanced Strategic Command by  doxygen 1.5.1